Implement Client-Side Decorations (CSD) with custom title bar
- Disable native window decorations in tauri.conf.json - Create TitleBar component with minimize/maximize/close controls - Add drag region for window movement - Integrate TitleBar into main layout and LoginView - Adjust content heights to account for 36px title bar - Prepare for future mini player implementation
This commit is contained in:
1 parent
57bfc0eb48
commit
96dc524c92
5 files changed
+155
-11
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { invoke } from '@tauri-apps/api/core';
|
||||
import TitleBar from '../TitleBar.svelte';
|
||||
|
||||
interface UserInfo {
|
||||
userName: string;
|
||||
@@ -129,8 +130,10 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="login-view">
|
||||
<div class="login-card">
|
||||
<div class="login-wrapper">
|
||||
<TitleBar />
|
||||
<div class="login-view">
|
||||
<div class="login-card">
|
||||
<!-- Logo -->
|
||||
<div class="logo">
|
||||
<img src="/logo.png" alt="QBZ Logo" class="logo-img" />
|
||||
@@ -201,16 +204,20 @@
|
||||
Your credentials are sent directly to Qobuz and stored securely in your system's keyring.
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.login-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
background-color: var(--bg-primary);
|
||||
}
|
||||
|
||||
.login-view {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
Reference in new issue
Block a user