jdolan/ObjectivelyMVC

Introduce a Theme class to provide user-defined theming

Closed this issue · 1 comments

There is currently no easy way for users to customize the look and feel of MVC components. Their options are:

  • Subclass - This feels like overkill for padding, font and other "cosmetic" changes.
  • Post-process - This is highly repetitive, and while it can be organized into helpers, is still a smell.

What would be better is if a Theme class existed to provide UI hints around colors, padding, fonts, etc. View classes would then be modified to pull this configuration from a Theme instance (singleton?) in their own initialization.

This was addressed with #25