Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion apps/tauri/src-tauri/capabilities/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
"windows": ["main"],
"permissions": [
"core:default",
"opener:default"
"opener:default",
"core:window:allow-close",
"core:window:allow-minimize",
"core:window:allow-maximize",
"core:window:allow-unmaximize",
"core:window:allow-toggle-maximize",
"core:window:allow-is-maximized",
"core:window:allow-start-dragging",
"core:window:allow-set-focus",
"core:window:allow-is-fullscreen",
"core:window:allow-outer-position",
"core:window:allow-outer-size",
"core:window:allow-set-size",
"core:window:allow-cursor-position"
]
}
5 changes: 4 additions & 1 deletion apps/tauri/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
"width": 1280,
"height": 800,
"minWidth": 900,
"minHeight": 600
"minHeight": 600,
"decorations": false,
"resizable": true,
"fullscreen": false
}
],
"security": {
Expand Down
211 changes: 118 additions & 93 deletions apps/tauri/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
type QueryaMotionLevel,
} from "./motion";
import QueryaGlass from "./ui/QueryaGlass.vue";
import TitleBar from "./ui/TitleBar.vue";

const shell = useShellStore();
const motion = provideQueryaMotion();
Expand Down Expand Up @@ -59,104 +60,128 @@ function setMotion(level: QueryaMotionLevel) {
</script>

<template>
<div class="shell">
<header class="brand">Querya</header>
<p class="tagline">Tauri 2 + Vue 3 — tokens + Fluid Motion</p>
<p class="meta" data-testid="backend-info">{{ backend }}</p>
<p class="meta">
springs: {{ springsOn ? "on" : "off" }} · level: {{ motionLevel }}
</p>

<div class="swatches" aria-label="Querya token swatches">
<div v-for="s in swatches" :key="s.name" class="swatch">
<span class="chip" :style="{ background: `var(${s.varName})` }" />
<span class="label">{{ s.name }}</span>
<div class="app-frame">
<TitleBar />
<main class="workspace">
<div class="hero">
<header class="brand">Querya</header>
<p class="tagline">Tauri 2 + Vue 3 — tokens + Fluid + custom title bar</p>
<p class="meta" data-testid="backend-info">{{ backend }}</p>
<p class="meta">
springs: {{ springsOn ? "on" : "off" }} · level: {{ motionLevel }}
</p>

<div class="swatches" aria-label="Querya token swatches">
<div v-for="s in swatches" :key="s.name" class="swatch">
<span class="chip" :style="{ background: `var(${s.varName})` }" />
<span class="label">{{ s.name }}</span>
</div>
</div>

<div class="theme-row" role="group" aria-label="Theme">
<button
type="button"
class="btn"
:class="{ active: theme === 'system' }"
@click="setTheme('system')"
>
System
</button>
<button
type="button"
class="btn"
:class="{ active: theme === 'light' }"
@click="setTheme('light')"
>
Light
</button>
<button
type="button"
class="btn"
:class="{ active: theme === 'dark' }"
@click="setTheme('dark')"
>
Dark
</button>
</div>

<div class="theme-row" role="group" aria-label="Motion">
<button
type="button"
class="btn"
:class="{ active: !motionManual }"
@click="motion.followSystem()"
>
System
</button>
<button
type="button"
class="btn"
:class="{ active: motionManual && motionLevel === 'full' }"
@click="setMotion('full')"
>
Full
</button>
<button
type="button"
class="btn"
:class="{ active: motionManual && motionLevel === 'reduced' }"
@click="setMotion('reduced')"
>
Reduced
</button>
<button
type="button"
class="btn"
:class="{ active: motionManual && motionLevel === 'off' }"
@click="setMotion('off')"
>
Off
</button>
</div>

<button
type="button"
class="btn demo-toggle"
@click="panelOpen = !panelOpen"
>
Toggle demo panel
</button>
<div
class="demo-panel"
:class="{ open: panelOpen }"
:style="panelStyle"
data-testid="motion-demo-panel"
/>

<QueryaGlass class="glass-demo" data-testid="glass-demo">
<p class="glass-title">Liquid Glass</p>
<p class="glass-copy">
Drag the title bar · minimize / maximize / close on the chrome
</p>
</QueryaGlass>
</div>
</div>

<div class="theme-row" role="group" aria-label="Theme">
<button
type="button"
class="btn"
:class="{ active: theme === 'system' }"
@click="setTheme('system')"
>
System
</button>
<button
type="button"
class="btn"
:class="{ active: theme === 'light' }"
@click="setTheme('light')"
>
Light
</button>
<button
type="button"
class="btn"
:class="{ active: theme === 'dark' }"
@click="setTheme('dark')"
>
Dark
</button>
</div>

<div class="theme-row" role="group" aria-label="Motion">
<button
type="button"
class="btn"
:class="{ active: !motionManual }"
@click="motion.followSystem()"
>
System
</button>
<button
type="button"
class="btn"
:class="{ active: motionManual && motionLevel === 'full' }"
@click="setMotion('full')"
>
Full
</button>
<button
type="button"
class="btn"
:class="{ active: motionManual && motionLevel === 'reduced' }"
@click="setMotion('reduced')"
>
Reduced
</button>
<button
type="button"
class="btn"
:class="{ active: motionManual && motionLevel === 'off' }"
@click="setMotion('off')"
>
Off
</button>
</div>

<button type="button" class="btn demo-toggle" @click="panelOpen = !panelOpen">
Toggle demo panel
</button>
<div
class="demo-panel"
:class="{ open: panelOpen }"
:style="panelStyle"
data-testid="motion-demo-panel"
/>

<QueryaGlass class="glass-demo" data-testid="glass-demo">
<p class="glass-title">Liquid Glass</p>
<p class="glass-copy">
backdrop-filter material · softer on Win/Linux · solid when blur is off
</p>
</QueryaGlass>
</main>
</div>
</template>

<style scoped>
.shell {
.app-frame {
height: 100%;
min-height: 100%;
display: flex;
flex-direction: column;
background: var(--q-background);
color: var(--q-foreground);
}

.workspace {
flex: 1;
min-height: 0;
overflow: auto;
}

.hero {
min-height: 100%;
display: grid;
place-content: center;
Expand Down
Loading
Loading