@@ -12,6 +12,7 @@ import {
1212 type QueryaMotionLevel ,
1313} from " ./motion" ;
1414import QueryaGlass from " ./ui/QueryaGlass.vue" ;
15+ import TitleBar from " ./ui/TitleBar.vue" ;
1516
1617const shell = useShellStore ();
1718const motion = provideQueryaMotion ();
@@ -59,104 +60,128 @@ function setMotion(level: QueryaMotionLevel) {
5960 </script >
6061
6162<template >
62- <div class =" shell" >
63- <header class =" brand" >Querya</header >
64- <p class =" tagline" >Tauri 2 + Vue 3 — tokens + Fluid Motion</p >
65- <p class =" meta" data-testid =" backend-info" >{{ backend }}</p >
66- <p class =" meta" >
67- springs: {{ springsOn ? "on" : "off" }} · level: {{ motionLevel }}
68- </p >
69-
70- <div class =" swatches" aria-label =" Querya token swatches" >
71- <div v-for =" s in swatches" :key =" s.name" class =" swatch" >
72- <span class =" chip" :style =" { background: `var(${s.varName})` }" />
73- <span class =" label" >{{ s.name }}</span >
63+ <div class =" app-frame" >
64+ <TitleBar />
65+ <main class =" workspace" >
66+ <div class =" hero" >
67+ <header class =" brand" >Querya</header >
68+ <p class =" tagline" >Tauri 2 + Vue 3 — tokens + Fluid + custom title bar</p >
69+ <p class =" meta" data-testid =" backend-info" >{{ backend }}</p >
70+ <p class =" meta" >
71+ springs: {{ springsOn ? "on" : "off" }} · level: {{ motionLevel }}
72+ </p >
73+
74+ <div class =" swatches" aria-label =" Querya token swatches" >
75+ <div v-for =" s in swatches" :key =" s.name" class =" swatch" >
76+ <span class =" chip" :style =" { background: `var(${s.varName})` }" />
77+ <span class =" label" >{{ s.name }}</span >
78+ </div >
79+ </div >
80+
81+ <div class =" theme-row" role =" group" aria-label =" Theme" >
82+ <button
83+ type =" button"
84+ class =" btn"
85+ :class =" { active: theme === 'system' }"
86+ @click =" setTheme('system')"
87+ >
88+ System
89+ </button >
90+ <button
91+ type =" button"
92+ class =" btn"
93+ :class =" { active: theme === 'light' }"
94+ @click =" setTheme('light')"
95+ >
96+ Light
97+ </button >
98+ <button
99+ type =" button"
100+ class =" btn"
101+ :class =" { active: theme === 'dark' }"
102+ @click =" setTheme('dark')"
103+ >
104+ Dark
105+ </button >
106+ </div >
107+
108+ <div class =" theme-row" role =" group" aria-label =" Motion" >
109+ <button
110+ type =" button"
111+ class =" btn"
112+ :class =" { active: !motionManual }"
113+ @click =" motion.followSystem()"
114+ >
115+ System
116+ </button >
117+ <button
118+ type =" button"
119+ class =" btn"
120+ :class =" { active: motionManual && motionLevel === 'full' }"
121+ @click =" setMotion('full')"
122+ >
123+ Full
124+ </button >
125+ <button
126+ type =" button"
127+ class =" btn"
128+ :class =" { active: motionManual && motionLevel === 'reduced' }"
129+ @click =" setMotion('reduced')"
130+ >
131+ Reduced
132+ </button >
133+ <button
134+ type =" button"
135+ class =" btn"
136+ :class =" { active: motionManual && motionLevel === 'off' }"
137+ @click =" setMotion('off')"
138+ >
139+ Off
140+ </button >
141+ </div >
142+
143+ <button
144+ type =" button"
145+ class =" btn demo-toggle"
146+ @click =" panelOpen = !panelOpen"
147+ >
148+ Toggle demo panel
149+ </button >
150+ <div
151+ class =" demo-panel"
152+ :class =" { open: panelOpen }"
153+ :style =" panelStyle"
154+ data-testid =" motion-demo-panel"
155+ />
156+
157+ <QueryaGlass class="glass-demo" data-testid="glass-demo">
158+ <p class =" glass-title" >Liquid Glass</p >
159+ <p class =" glass-copy" >
160+ Drag the title bar · minimize / maximize / close on the chrome
161+ </p >
162+ </QueryaGlass >
74163 </div >
75- </div >
76-
77- <div class =" theme-row" role =" group" aria-label =" Theme" >
78- <button
79- type =" button"
80- class =" btn"
81- :class =" { active: theme === 'system' }"
82- @click =" setTheme('system')"
83- >
84- System
85- </button >
86- <button
87- type =" button"
88- class =" btn"
89- :class =" { active: theme === 'light' }"
90- @click =" setTheme('light')"
91- >
92- Light
93- </button >
94- <button
95- type =" button"
96- class =" btn"
97- :class =" { active: theme === 'dark' }"
98- @click =" setTheme('dark')"
99- >
100- Dark
101- </button >
102- </div >
103-
104- <div class =" theme-row" role =" group" aria-label =" Motion" >
105- <button
106- type =" button"
107- class =" btn"
108- :class =" { active: !motionManual }"
109- @click =" motion.followSystem()"
110- >
111- System
112- </button >
113- <button
114- type =" button"
115- class =" btn"
116- :class =" { active: motionManual && motionLevel === 'full' }"
117- @click =" setMotion('full')"
118- >
119- Full
120- </button >
121- <button
122- type =" button"
123- class =" btn"
124- :class =" { active: motionManual && motionLevel === 'reduced' }"
125- @click =" setMotion('reduced')"
126- >
127- Reduced
128- </button >
129- <button
130- type =" button"
131- class =" btn"
132- :class =" { active: motionManual && motionLevel === 'off' }"
133- @click =" setMotion('off')"
134- >
135- Off
136- </button >
137- </div >
138-
139- <button type =" button" class =" btn demo-toggle" @click =" panelOpen = !panelOpen" >
140- Toggle demo panel
141- </button >
142- <div
143- class =" demo-panel"
144- :class =" { open: panelOpen }"
145- :style =" panelStyle"
146- data-testid =" motion-demo-panel"
147- />
148-
149- <QueryaGlass class="glass-demo" data-testid="glass-demo">
150- <p class =" glass-title" >Liquid Glass</p >
151- <p class =" glass-copy" >
152- backdrop-filter material · softer on Win/Linux · solid when blur is off
153- </p >
154- </QueryaGlass >
164+ </main >
155165 </div >
156166</template >
157167
158168<style scoped>
159- .shell {
169+ .app-frame {
170+ height : 100% ;
171+ min-height : 100% ;
172+ display : flex ;
173+ flex-direction : column ;
174+ background : var (--q-background );
175+ color : var (--q-foreground );
176+ }
177+
178+ .workspace {
179+ flex : 1 ;
180+ min-height : 0 ;
181+ overflow : auto ;
182+ }
183+
184+ .hero {
160185 min-height : 100% ;
161186 display : grid ;
162187 place-content : center ;
0 commit comments