diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index 0565d33..cb92213 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -9,7 +9,6 @@ "core:window:allow-start-dragging", "core:window:allow-close", "core:window:allow-minimize", - "core:window:allow-toggle-maximize", "opener:default", "store:default" ] diff --git a/src/App.vue b/src/App.vue index 4f1e407..77eea61 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,36 +1,15 @@ diff --git a/src/components/PlayerBar.vue b/src/components/PlayerBar.vue index c18414a..37185da 100644 --- a/src/components/PlayerBar.vue +++ b/src/components/PlayerBar.vue @@ -310,7 +310,7 @@ onUnmounted(() => { display: flex; align-items: center; gap: clamp(12px, 2vw, 20px); - height: clamp(72px, 9vh, 88px); + height: 100%; padding: 0 clamp(14px, 2vw, 22px); flex-shrink: 0; background: rgba(255, 250, 240, 0.94); diff --git a/src/components/WindowTitlebar.vue b/src/components/WindowTitlebar.vue new file mode 100644 index 0000000..76133f3 --- /dev/null +++ b/src/components/WindowTitlebar.vue @@ -0,0 +1,134 @@ + + + + + diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 273847c..61e50bd 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -38,11 +38,15 @@ - -
- -
-
+
+ + + +
+ +
+
+
@@ -61,6 +65,7 @@ import { NIcon } from "naive-ui" import { MusicalNotesOutline, SearchOutline, SettingsOutline, TrophyOutline } from "@vicons/ionicons5" import { Playlist } from "@vicons/tabler" import PlayerBar from "@/components/PlayerBar.vue" +import WindowTitlebar from "@/components/WindowTitlebar.vue" const route = useRoute() const router = useRouter() @@ -135,19 +140,35 @@ watch( diff --git a/src/styles/global.css b/src/styles/global.css index 3f0e502..fb8a9cd 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -1,5 +1,6 @@ :root { --titlebar-height: 34px; + --playerbar-height: clamp(72px, 9vh, 88px); --app-bg: #f4eddf; --app-bg-elevated: #eee2d1; --app-card: #fffaf0; diff --git a/src/views/DiscoverView.vue b/src/views/DiscoverView.vue index 88fb118..2003ea1 100644 --- a/src/views/DiscoverView.vue +++ b/src/views/DiscoverView.vue @@ -1,10 +1,10 @@