Skip to content

Commit f1163ee

Browse files
author
Ritik Ranjan
committed
feature/auto-hide-tab-bar using all smaller for settings key
1 parent 9c00889 commit f1163ee

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

frontend/app/tab/tabbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const TabBar = memo(({ workspace }: TabBarProps) => {
174174
const isFullScreen = useAtomValue(atoms.isFullScreen);
175175

176176
const settings = useAtomValue(atoms.settingsAtom);
177-
const autoHideTabsBar = useRef<boolean>(settings["window:autoHideTabsBar"]);
177+
const autoHideTabsBar = useRef<boolean>(settings["window:autohidetabsbar"]);
178178

179179
let prevDelta: number;
180180
let prevDragDirection: string;

frontend/types/gotypes.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ declare global {
649649
"window:reducedmotion"?: boolean;
650650
"window:tilegapsize"?: number;
651651
"window:showmenubar"?: boolean;
652-
"window:autoHideTabsBar"?: boolean;
652+
"window:autohidetabsbar"?: boolean;
653653
"window:nativetitlebar"?: boolean;
654654
"window:disablehardwareacceleration"?: boolean;
655655
"window:maxtabcachesize"?: number;

pkg/wconfig/metaconsts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const (
6161
ConfigKey_WindowReducedMotion = "window:reducedmotion"
6262
ConfigKey_WindowTileGapSize = "window:tilegapsize"
6363
ConfigKey_WindowShowMenuBar = "window:showmenubar"
64-
ConfigKey_WindowAutoHideTabsBar = "window:autoHideTabsBar"
64+
ConfigKey_WindowAutoHideTabsBar = "window:autohidetabsbar"
6565
ConfigKey_WindowNativeTitleBar = "window:nativetitlebar"
6666
ConfigKey_WindowDisableHardwareAcceleration = "window:disablehardwareacceleration"
6767
ConfigKey_WindowMaxTabCacheSize = "window:maxtabcachesize"

pkg/wconfig/settingsconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ type SettingsType struct {
8888
WindowReducedMotion bool `json:"window:reducedmotion,omitempty"`
8989
WindowTileGapSize *int64 `json:"window:tilegapsize,omitempty"`
9090
WindowShowMenuBar bool `json:"window:showmenubar,omitempty"`
91-
WindowAutoHideTabsBar bool `json:"window:autoHideTabsBar,omitempty"`
91+
WindowAutoHideTabsBar bool `json:"window:autohidetabsbar,omitempty"`
9292
WindowNativeTitleBar bool `json:"window:nativetitlebar,omitempty"`
9393
WindowDisableHardwareAcceleration bool `json:"window:disablehardwareacceleration,omitempty"`
9494
WindowMaxTabCacheSize int `json:"window:maxtabcachesize,omitempty"`

0 commit comments

Comments
 (0)