feat: add setting for static window title (#2183)

This commit is contained in:
Tarulia
2026-06-29 03:35:42 +02:00
committed by GitHub
parent 9806d2f553
commit c875146779
4 changed files with 45 additions and 1 deletions
+5
View File
@@ -678,6 +678,7 @@ const WindowSettingsSchema = z.object({
startMinimized: z.boolean(),
tray: z.boolean(),
windowBarStyle: z.nativeEnum(Platform),
windowBarTrackinfo: z.boolean(),
});
const QueryValueInputTypeSchema = z.enum([
@@ -2014,6 +2015,7 @@ const initialState: SettingsState = {
startMinimized: false,
tray: true,
windowBarStyle: platformDefaultWindowBarStyle,
windowBarTrackinfo: true,
},
};
@@ -2560,6 +2562,9 @@ export const useWindowSettings = () => useSettingsStore((state) => state.window,
export const useWindowBarStyle = () =>
useSettingsStore((state) => state.window.windowBarStyle, shallow);
export const useWindowBarTrackinfo = () =>
useSettingsStore((state) => state.window.windowBarTrackinfo, shallow);
export const useHotkeySettings = () => useSettingsStore((state) => state.hotkeys, shallow);
export const useHotkeyBindings = () => useSettingsStore((state) => state.hotkeys.bindings, shallow);