Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting theme/colors from code is not consistent in rc 3.0

See original GitHub issue

Steps 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:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

Al-Dyachkovcommented, Mar 20, 2022

Yep, throttling works.

SKProCHcommented, Sep 27, 2022

Fixed in 3.0.0-avalonia10-preview2

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found