mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Command Palette: Correctly clear button styles when changing theme (#60511)
add topnav feature toggle to new theme created when using 'c t'
This commit is contained in:
parent
9941dfc2b6
commit
bc3d1fdd2a
@ -13,6 +13,8 @@ export async function changeTheme(mode: 'dark' | 'light', runtimeOnly?: boolean)
|
||||
mode: mode,
|
||||
},
|
||||
});
|
||||
// Special feature toggle that impact theme/component looks
|
||||
newTheme.flags.topnav = config.featureToggles.topnav;
|
||||
|
||||
appEvents.publish(new ThemeChangedEvent(newTheme));
|
||||
config.theme2.isDark = newTheme.isDark;
|
||||
|
Loading…
Reference in New Issue
Block a user