From 5a561f67b349d8216f5c1ea03221b8302b3902ae Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Sun, 13 Nov 2022 18:48:59 +0100 Subject: feat: Show stripped title bar on debug build (#48) * feat: Show stripped title bar on debug build Helps with differentiating which window is which when both developing FlightCore and is using release version at the same time. * fix: Only show striped menubar for debug builds --- src-vue/src/plugins/store.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src-vue/src/plugins') diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts index 8f1f9fe5..b97af2a7 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -200,6 +200,12 @@ async function _initializeApp(state: any) { // Enable dev mode directly if application is in debug mode if (await invoke("is_debug_mode")) { state.developer_mode = true; + + // Make menubar striped if debug build + let menu_bar_handle = document.querySelector('#fc__menu_bar'); + if (menu_bar_handle !== null) { + menu_bar_handle.classList.toggle('developer_build'); + } } // Grab Northstar release canal value from store if exists -- cgit v1.2.3