From 34d7e8b17d47160e8c582b73a4fca2d573158187 Mon Sep 17 00:00:00 2001 From: Tristan Michael Date: Tue, 14 Apr 2026 05:58:17 -0700 Subject: [PATCH] Add Linux system window decorations setting Expose a per-user setting to toggle system window decorations on Linux and apply it to the UI and window behavior. - Add a SettingsScreen option (Linux-only) to toggle "System window decorations" and bind it to the app store. - Track the preference in app store with persistent localStorage key and getter/setter (setSystemDecorations) that updates the Tauri window decorations via getCurrentWindow().setDecorations(). - Respect the setting when rendering the main App.svelte by disabling rounded corners and custom Linux window border when system decorations are enabled. This change is needed to let Linux users choose native title bar/window chrome for better integration with their desktop environment. --- apps/tauri/src/App.svelte | 6 +++--- .../src/lib/screens/SettingsScreen.svelte | 21 +++++++++++++++++++ apps/tauri/src/lib/stores/app.svelte.ts | 14 +++++++++++++ 3 files changed, 38 insertions(+), 3 deletions(-) diff --git a/apps/tauri/src/App.svelte b/apps/tauri/src/App.svelte index 5e29705..cf89b8d 100644 --- a/apps/tauri/src/App.svelte +++ b/apps/tauri/src/App.svelte @@ -14,11 +14,11 @@
-
+
{#if app.error} diff --git a/apps/tauri/src/lib/screens/SettingsScreen.svelte b/apps/tauri/src/lib/screens/SettingsScreen.svelte index ba56c69..2518cae 100644 --- a/apps/tauri/src/lib/screens/SettingsScreen.svelte +++ b/apps/tauri/src/lib/screens/SettingsScreen.svelte @@ -1,8 +1,11 @@