feat(settings): add title bar configuration
Phase 1 implementation: - Add titleBarStore.ts for managing title bar visibility - "Use QBZ title bar" toggle (default ON) - switches between custom and system decorations - "Remove title bar" toggle (default OFF) - hides title bar completely for tiling WM users - Dynamically adjust layout heights when title bar is hidden - Add i18n translations (en/es) - Settings integrate with Tauri window.setDecorations() API
This commit is contained in:
1 parent
921639041c
commit
3ac957ddda
6 files changed
+237
-7
No files matched your search
@@ -49,6 +49,7 @@
|
||||
subscription?: string;
|
||||
isExpanded?: boolean;
|
||||
onToggle?: () => void;
|
||||
showTitleBar?: boolean;
|
||||
}
|
||||
|
||||
let {
|
||||
@@ -65,7 +66,8 @@
|
||||
userName = 'User',
|
||||
subscription = 'Qobuz™',
|
||||
isExpanded = true,
|
||||
onToggle
|
||||
onToggle,
|
||||
showTitleBar = true
|
||||
}: Props = $props();
|
||||
|
||||
let userPlaylists = $state<Playlist[]>([]);
|
||||
@@ -543,7 +545,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<aside class="sidebar" class:collapsed={!isExpanded}>
|
||||
<aside class="sidebar" class:collapsed={!isExpanded} class:no-titlebar={!showTitleBar}>
|
||||
<!-- Scrollable Content Area -->
|
||||
<div class="content">
|
||||
<!-- Search Bar -->
|
||||
@@ -797,6 +799,10 @@
|
||||
min-width: 64px;
|
||||
}
|
||||
|
||||
.sidebar.no-titlebar {
|
||||
height: calc(100vh - 104px); /* Only 104px NowPlayingBar, no title bar */
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
|
||||
Reference in new issue
Block a user