From a32daea7b1d890455f73f1fd51caf6484c077af6 Mon Sep 17 00:00:00 2001 From: JannisX11 Date: Sun, 10 Jan 2021 21:05:30 +0100 Subject: [PATCH] Make start mode hide status bar --- js/modes.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/js/modes.js b/js/modes.js index f8127164..64422239 100644 --- a/js/modes.js +++ b/js/modes.js @@ -15,6 +15,7 @@ class Mode extends KeybindItem { this.center_windows = data.center_windows||[]; this.hide_toolbars = data.hide_toolbars this.hide_sidebars = data.hide_sidebars + this.hide_status_bar = data.hide_status_bar this.condition = data.condition; this.onSelect = data.onSelect; @@ -61,11 +62,8 @@ class Mode extends KeybindItem { $(obj).toggle(this.center_windows.includes(obj.id)); }) - if (this.hide_toolbars) { - $('#main_toolbar .toolbar_wrapper').css('visibility', 'hidden') - } else { - $('#main_toolbar .toolbar_wrapper').css('visibility', 'visible') - } + $('#main_toolbar .toolbar_wrapper').css('visibility', this.hide_toolbars ? 'hidden' : 'visible'); + $('#status_bar').css('display', this.hide_status_bar ? 'none' : 'flex'); if (typeof this.onSelect === 'function') { this.onSelect() @@ -119,6 +117,7 @@ BARS.defineActions(function() { category: 'navigate', hide_toolbars: true, hide_sidebars: true, + hide_status_bar: true, component: { data: { formats: Formats,