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:
@@ -13,6 +13,8 @@ export async function changeTheme(mode: 'dark' | 'light', runtimeOnly?: boolean)
|
|||||||
mode: mode,
|
mode: mode,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
// Special feature toggle that impact theme/component looks
|
||||||
|
newTheme.flags.topnav = config.featureToggles.topnav;
|
||||||
|
|
||||||
appEvents.publish(new ThemeChangedEvent(newTheme));
|
appEvents.publish(new ThemeChangedEvent(newTheme));
|
||||||
config.theme2.isDark = newTheme.isDark;
|
config.theme2.isDark = newTheme.isDark;
|
||||||
|
|||||||
Reference in New Issue
Block a user