fix(settings): simplify title bar settings to hide-only option
Remove "Use QBZ title bar" toggle since switching to system decorations doesn't work reliably on Linux when the window was created without decorations. Keep only "Hide title bar" option for tiling WM users.
This commit is contained in:
1 parent
150513179d
commit
3fb597f3fb
5 files changed
+8
-87
No files matched your search
@@ -46,9 +46,7 @@
|
||||
import { showToast } from '$lib/stores/toastStore';
|
||||
import {
|
||||
subscribe as subscribeTitleBar,
|
||||
getUseCustomTitleBar,
|
||||
getHideTitleBar,
|
||||
setUseCustomTitleBar,
|
||||
setHideTitleBar
|
||||
} from '$lib/stores/titleBarStore';
|
||||
import {
|
||||
@@ -376,7 +374,6 @@
|
||||
let language = $state('Auto');
|
||||
|
||||
// Title bar settings
|
||||
let useCustomTitleBar = $state(getUseCustomTitleBar());
|
||||
let hideTitleBar = $state(getHideTitleBar());
|
||||
|
||||
// Library settings
|
||||
@@ -483,7 +480,6 @@
|
||||
|
||||
// Subscribe to title bar state changes
|
||||
const unsubscribeTitleBar = subscribeTitleBar(() => {
|
||||
useCustomTitleBar = getUseCustomTitleBar();
|
||||
hideTitleBar = getHideTitleBar();
|
||||
});
|
||||
|
||||
@@ -1682,17 +1678,6 @@
|
||||
<span class="setting-label">{$t('settings.appearance.systemNotifications')}</span>
|
||||
<Toggle enabled={systemNotificationsEnabled} onchange={(v) => { systemNotificationsEnabled = v; setSystemNotificationsEnabled(v); }} />
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">{$t('settings.appearance.useCustomTitleBar')}</span>
|
||||
<span class="setting-desc">{$t('settings.appearance.useCustomTitleBarDesc')}</span>
|
||||
</div>
|
||||
<Toggle
|
||||
enabled={useCustomTitleBar}
|
||||
disabled={hideTitleBar}
|
||||
onchange={(v) => setUseCustomTitleBar(v)}
|
||||
/>
|
||||
</div>
|
||||
<div class="setting-row last">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">{$t('settings.appearance.hideTitleBar')}</span>
|
||||
|
||||
Reference in new issue
Block a user