Feature: theme support? #129
drew-512
started this conversation in
Feature Requests
Replies: 1 comment 2 replies
-
I'm marking this as a "duplicate" of Theme/Styles. Even though that original request is currently on hold, it's the work item we're using to track the feature. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
In making UIs and again and again and again setting things like colors, corner radii, and shadows over and over to all be the same values, I'm seeing a tweak to UIBlock that would offer a ton a value that I suspect everyone here would totally cheer on. In short, theme support...
Suppose a UIBlock optionally a set of immutable tags it responds to (think
HashSet<int>
orList<UIBlockTag>
). At runtime, a UIBlock having a given theme tag ID is implicitly linked to a, say,UIBlockTheme
. A UIBlockTheme is characterized as a "visitor pattern" to its linked UIBlocks where it performs a prescribed set of property alterations / additions to the linked UIBlock (e.g. body color, shadow) or the block's parent (e.g. parent margin). Also, a theme property could be altered even at runtime and it could auto-push live -- that's huge.This "small" feature would be a massive aid and game-changer that allows entire UI trees to be massively simplified into these theme applicators. Naturally, this is one of the strongest ways to leverage the value props of Nova and would offer another compelling selling point and value-add for Nova.
Would love to hear from everyone -- please chime in with your thoughts. I think this would be a huge value add.
Beta Was this translation helpful? Give feedback.
All reactions