Setting theme/colors from code is not consistent in rc 3.0
See original GitHub issueSteps to reproduce : Add color changes to Material.Demo following way
public static void UseMaterialUIDarkTheme() {
MaterialThemeStyles.BaseTheme = BaseThemeMode.Dark;
MaterialThemeStyles.PrimaryColor = PrimaryColor.Green;
MaterialThemeStyles.SecondaryColor = SecondaryColor.Green;
}
public static void UseMaterialUILightTheme() {
MaterialThemeStyles.BaseTheme = BaseThemeMode.Light;
MaterialThemeStyles.PrimaryColor = PrimaryColor.Red;
MaterialThemeStyles.SecondaryColor = SecondaryColor.Red;
}
Run & switch themes several times. Color & theme are not applying consistently
Issue Analytics
- State:
- Created 2 years ago
- Comments:9
Top Results From Across the Web
[ColorModeProvider, ThemeProvider] Changing default ...
I have temporarily changed the default gray theme colors (which is where the dark components seems to take it's colors from) to match...
Read more >Bootstrap 5 - Custom theme-colors not updating classes
5 Answers. You need to add a "tertiary" var to the theme-colors map using map-merge if you want it to generate classes like...
Read more >Colour Theme not working properly
Hi VS-Code for the Mac team! I've been using the 'Monokai' Colour Theme, with the 'Dark' Interface Theme for coding C# for Unity....
Read more >Color theme changer not working - Site Design & Styles
For some reason I cannot change the color themes for my site from "lightest 1" to any of the other options on the...
Read more >barTintColor not working in iOS 15
Hi,. When I run the following code in application(_ :didFinishLaunchingWithOptions) in iOS 15, the bar color turns transparent (thus, showing the black ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, throttling works.
Fixed in
3.0.0-avalonia10-preview2