Complex Color Themes #4056
YourRobotOverlord
started this conversation in
Ideas
Replies: 1 comment
-
That's epic. I'm going to add some comments to relative to this. I'd appreciate continuing the discussion there. |
Beta Was this translation helpful? Give feedback.
0 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.
-
From: #4035
I use the built-it
Terminal.Gui.Colors.ColorSchemes
to hold the app theme, which includes almost 30 total scheme colors.ColorSchemes
is then JSON-serialize/de-serialized with the rest of the user's preferences for cloud persistence.When building this, I remember thinking that I wished that all views checked
ColorSchemes
for a scheme to use the same way that Dialog or Menu, for example, do.I.e.
If I set the "Dialog" scheme
Terminal.Gui.Colors.ColorSchemes["Dialog"] = new ColorScheme();
, it is automatically used for all new dialogs.But if I set the "ListView" scheme, it is not used by default, I must use
listView.ColorScheme = Terminal.Gui.Colors.ColorSchemes["ListView"]
Not claiming this is good code, but it's what I got working easily:
Beta Was this translation helpful? Give feedback.
All reactions