question-mark
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.

Synched Accent transparent at startup

See original GitHub issue

I’m using both Fluent.Ribbon and MahApps in a small project. In appsettings.json i have a set of settings to determine both if i will sync the theme with the OS or use a specific theme.

This is what my MetroWindow_Loaded looks like:

        private void MetroWindow_Loaded(object sender, RoutedEventArgs e)
        {
            TitleBar = this.FindChild<RibbonTitleBar>("RibbonTitleBar");
            TitleBar.InvalidateArrange();
            TitleBar.UpdateLayout();
            ThemeManager.Current.ChangeTheme(this, ThemeManager.Current.DetectTheme(Application.Current));
            if (_config.CurrentValue.Theme.SyncWithWindows)
            {
                ThemeManager.Current.ThemeSyncMode = ThemeSyncMode.SyncAll;
                ThemeManager.Current.SyncTheme();
            }
            else
            {
                ThemeManager.Current.ChangeTheme(this, (_config.CurrentValue.Theme.DarkAppMode ? "Dark." : "Light.") + 
                    _config.CurrentValue.Theme.Accent + (_config.CurrentValue.Theme.IsColorful ? ".Colorful" : ""));
            }
            ThemeManager.Current.ThemeChanged += SyncThemes;
        }

When i have in my settings to sync with windows, any area that should have the accent is transparent (including the File button and the sidebar in the backstage.

image

When i Have in my settings to use a specific theme, it works fine

image

I have Managed to get it to work - but only until my next reboot of the machine - by going into Windows Customization Settings -> Color and making any change there, and then reverting it back to what it was before (like changing the color or from light to dark and back). For some reason after I do that, everytime I run the program it gets the accent from Windows with no issue, until I restart the PC again.


Environment

  • Fluent.Ribbon v8.0.3
  • MahApps 2.4.7
  • Windows 10 21H1
  • .NET Core 3.0 & above (including 6.0 preview)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
punker76commented, Jul 2, 2021

@batzen I’ll do this later today.

0reactions
batzencommented, Jul 4, 2021

Fixed by updating ControlzEx

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Enable and Disable Transparency Effects in Windows
For Windows 11 taskbar transparency, open “Make Start, taskbar, and Action Center transparent” option from the Start search option.
Read more >
Transparent Taskbar/No Blur + More | TranslucentTB - YouTube
Want even more customisation over your Windows taskbar? Want no background or colour? Well, this simple but powerful open-source software is ...
Read more >
Make Windows 10 Start Menu icons' & tiles' background ...
Although most of us not using this version, we can make Start Menu Tiles Transparent with this little trick: Open Notepad.
Read more >
Make only start screen background transparent
I like to have my start screen fullscreen. I also do like that it shows the desktop background when transparency effects are turned...
Read more >
Accent Color Synchronizer - Le matheux paresseux
Launch Accent Color Synchronizer.exe. Click on one of the following button: SYNC NOW: Sync the accent color right after the button is clicked....
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found