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:
Ashley Harrison 2022-12-19 10:59:28 +00:00 committed by GitHub
parent 9941dfc2b6
commit bc3d1fdd2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;