Styling of labels and panels #1855
Replies: 11 comments
-
To add some context to the above : the big white areas below are where I'm still having issues locating the right approach : |
Beta Was this translation helpful? Give feedback.
-
@philstopford sorry I don't have a ton of time to look into this, but to help point you in the right direction it could either be the Form or the Splitter that is causing the background to be white there. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
@philstopford I hope to devote some time to this soonish, and add support to Eto for themes. See #1896 |
Beta Was this translation helpful? Give feedback.
-
@cwensley : just wondered if you'd been able to look at this yet :) |
Beta Was this translation helpful? Give feedback.
-
@philstopford try adding this line to Startup.cs:
Eto sets the background color of the window's content to |
Beta Was this translation helpful? Give feedback.
-
@cwensley : that makes a huge difference. Thanks! Remaining issues:
|
Beta Was this translation helpful? Give feedback.
-
Interesting, after playing with this a bit more it didn't make sense to me that the ControlBrush wasn't already overridden by the style.. It's quite annoying that However, if I change this (in WpfWindow.cs):
to this:
.. then it picks up the dark color automatically, and still gets the right color if no theme is set. So, anywhere in Eto using a system color should be changed to do the above, which would make things work better with custom WPF themes. |
Beta Was this translation helpful? Give feedback.
-
As for KitchenSink, it's the TabControl.. Your xaml is theming the TabControlHandler and TabPageHandler, which doesn't do anything as they are not a WPF control:
Changing it to this works:
|
Beta Was this translation helpful? Give feedback.
-
The label section changes everything as it modifies the color of the existing brush of the Label.. which probably will need to be changed in Eto to always create a new brush. |
Beta Was this translation helpful? Give feedback.
-
My XAML efforts are entirely throw-at-wall :D |
Beta Was this translation helpful? Give feedback.
-
Switching to the PropertyGrid also causes an instant crash. |
Beta Was this translation helpful? Give feedback.
-
I've been trying to make a stab at a dark WPF theme here :
https://github.com/philstopford/Eto/tree/dark_mode_experiment
using the test project to check validity. I have some lingering questions, particularly in terms of how panels and labels get styled. I tried digging down through the inheritance and couldn't see the right approach to use.
Beta Was this translation helpful? Give feedback.
All reactions