In general, the code that deals with UI and presentation style should be in the widget layer, not in base enyo. Some of this stuff below deals with things that you should really use ilib for, but base enyo does not rely on ilib, as we decided that base enyo should be locale-agnostic and contain no localizable strings. Maybe this whole function should be moved into moonstone and/or onyx? We should probably ask @kevinpschaaf what he thinks.