How do I set different primary/secondary colors and specific brushes for Light and Dark themes? #247
-
I'm on Avalonia How can I achieve: Or: I looked into Do I have to change these values in code everytime I switch themes? I tried to work with the "Advanced Theming" page, but honestly I got stuck. Also how would I change the values of certain brushes (at runtime or pre-defined)? Any help or pointer in the right direction would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello. There is 2 ways:
|
Beta Was this translation helpful? Give feedback.
Hello. There is 2 ways:
Theme.Create
as described here or just usector
ofTheme
class. After all replaceMaterialTheme
withMaterialThemeBase
in youApp.axaml
,…