From 1b2ebd807cc987239265df1d6a6b2c6e517d0e73 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 19 Feb 2026 17:03:39 +0200 Subject: [PATCH] chore: update fonts, Tauri config, and reduced-motion support - Switch font deps from Sora/Manrope/IBM Plex Mono to Fraunces/Inter/Space Mono (Cold Open theme) - Add Tauri window permissions for custom titlebar controls - Disable native decorations and drag-drop in Tauri config - Add prefers-reduced-motion media query for WCAG compliance --- package-lock.json | 32 ++++++++++++------------- package.json | 6 ++--- src-tauri/capabilities/default.json | 10 +++++++- src-tauri/gen/schemas/capabilities.json | 2 +- src-tauri/tauri.conf.json | 4 +++- src/styles/animations.css | 10 +++++++- 6 files changed, 41 insertions(+), 23 deletions(-) diff --git a/package-lock.json b/package-lock.json index 940ff79..2cb5236 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { - "name": "tutorialdock", + "name": "tutorialvault", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "tutorialdock", + "name": "tutorialvault", "version": "0.1.0", "dependencies": { - "@fontsource/ibm-plex-mono": "^5.2.7", - "@fontsource/manrope": "^5.2.8", - "@fontsource/sora": "^5.2.8", + "@fontsource/fraunces": "^5.2.9", + "@fontsource/inter": "^5.2.8", + "@fontsource/space-mono": "^5.2.9", "@fortawesome/fontawesome-free": "^7.2.0", "@tauri-apps/api": "^2.0.0" }, @@ -411,28 +411,28 @@ "node": ">=12" } }, - "node_modules/@fontsource/ibm-plex-mono": { - "version": "5.2.7", - "resolved": "https://registry.npmjs.org/@fontsource/ibm-plex-mono/-/ibm-plex-mono-5.2.7.tgz", - "integrity": "sha512-MKAb8qV+CaiMQn2B0dIi1OV3565NYzp3WN5b4oT6LTkk+F0jR6j0ZN+5BKJiIhffDC3rtBULsYZE65+0018z9w==", + "node_modules/@fontsource/fraunces": { + "version": "5.2.9", + "resolved": "https://registry.npmjs.org/@fontsource/fraunces/-/fraunces-5.2.9.tgz", + "integrity": "sha512-XDzuddBtoC7BZgZdBn6b7hsFZY2+V1hgN7yca5fBTKuHjb/lOd45a0Ji8dTUgFhPoL7RdGupo+bC2BFSt6UH8Q==", "license": "OFL-1.1", "funding": { "url": "https://github.com/sponsors/ayuhito" } }, - "node_modules/@fontsource/manrope": { + "node_modules/@fontsource/inter": { "version": "5.2.8", - "resolved": "https://registry.npmjs.org/@fontsource/manrope/-/manrope-5.2.8.tgz", - "integrity": "sha512-gJHJmcuUk7qWcNCfcAri/DJQtXtBYqi9yKratr4jXhSo0I3xUtNNKI+igQIcw5c+m95g0vounk8ZnX/kb8o0TA==", + "resolved": "https://registry.npmjs.org/@fontsource/inter/-/inter-5.2.8.tgz", + "integrity": "sha512-P6r5WnJoKiNVV+zvW2xM13gNdFhAEpQ9dQJHt3naLvfg+LkF2ldgSLiF4T41lf1SQCM9QmkqPTn4TH568IRagg==", "license": "OFL-1.1", "funding": { "url": "https://github.com/sponsors/ayuhito" } }, - "node_modules/@fontsource/sora": { - "version": "5.2.8", - "resolved": "https://registry.npmjs.org/@fontsource/sora/-/sora-5.2.8.tgz", - "integrity": "sha512-1G6iTXUx8rcCKzi3mjaTQ1DE8PQz0OmW3Qnku+64S+bqRr1o/gGeiw8fxIQhhBU9ZP8ZofIqai7o00DNOPnlDw==", + "node_modules/@fontsource/space-mono": { + "version": "5.2.9", + "resolved": "https://registry.npmjs.org/@fontsource/space-mono/-/space-mono-5.2.9.tgz", + "integrity": "sha512-b61faFOHEISQ/pD25G+cfGY9o/WW6lRv6hBQQfpWvEJ4y1V+S4gmth95EVyBE2VL3qDYHeVQ8nBzrplzdXTDDg==", "license": "OFL-1.1", "funding": { "url": "https://github.com/sponsors/ayuhito" diff --git a/package.json b/package.json index cca2be1..711e61b 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,9 @@ "tauri": "tauri" }, "dependencies": { - "@fontsource/ibm-plex-mono": "^5.2.7", - "@fontsource/manrope": "^5.2.8", - "@fontsource/sora": "^5.2.8", + "@fontsource/fraunces": "^5.2.9", + "@fontsource/inter": "^5.2.8", + "@fontsource/space-mono": "^5.2.9", "@fortawesome/fontawesome-free": "^7.2.0", "@tauri-apps/api": "^2.0.0" }, diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index 8cca69a..72cbf1c 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -5,6 +5,14 @@ "windows": ["main"], "permissions": [ "core:default", - "dialog:default" + "dialog:default", + "core:window:allow-minimize", + "core:window:allow-toggle-maximize", + "core:window:allow-is-maximized", + "core:window:allow-close", + "core:window:allow-start-dragging", + "core:window:allow-set-size", + "core:window:allow-set-position", + "core:window:allow-set-always-on-top" ] } diff --git a/src-tauri/gen/schemas/capabilities.json b/src-tauri/gen/schemas/capabilities.json index 5b39e36..53ca70d 100644 --- a/src-tauri/gen/schemas/capabilities.json +++ b/src-tauri/gen/schemas/capabilities.json @@ -1 +1 @@ -{"default":{"identifier":"default","description":"Default capabilities for TutorialVault","local":true,"windows":["main"],"permissions":["core:default","dialog:default"]}} \ No newline at end of file +{"default":{"identifier":"default","description":"Default capabilities for TutorialVault","local":true,"windows":["main"],"permissions":["core:default","dialog:default","core:window:allow-minimize","core:window:allow-toggle-maximize","core:window:allow-is-maximized","core:window:allow-close","core:window:allow-start-dragging","core:window:allow-set-size","core:window:allow-set-position","core:window:allow-set-always-on-top"]}} \ No newline at end of file diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 36357e8..9b5f93f 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -16,7 +16,9 @@ "width": 1320, "height": 860, "minWidth": 640, - "minHeight": 480 + "minHeight": 480, + "decorations": false, + "dragDropEnabled": false } ], "security": { diff --git a/src/styles/animations.css b/src/styles/animations.css index a552292..627bf88 100644 --- a/src/styles/animations.css +++ b/src/styles/animations.css @@ -1 +1,9 @@ -/* No standalone animations — included in main.css */ +/* Reduced motion — respect user preference */ +@media (prefers-reduced-motion: reduce) { + *, *::before, *::after { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; + scroll-behavior: auto !important; + } +}