From bc3d1fdd2a794cd13bc90bb666d0e480771ec175 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Mon, 19 Dec 2022 10:59:28 +0000 Subject: [PATCH] Command Palette: Correctly clear button styles when changing theme (#60511) add topnav feature toggle to new theme created when using 'c t' --- public/app/core/services/theme.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/core/services/theme.ts b/public/app/core/services/theme.ts index 98d91b3837d..a1286f7948b 100644 --- a/public/app/core/services/theme.ts +++ b/public/app/core/services/theme.ts @@ -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;