Merge pull request #10 from SteelDynamite/tauri-tweaks

chore(tauri): minor config and style updates
This commit is contained in:
SteelDynamite 2026-03-31 07:07:40 -07:00 committed by GitHub
commit 64015f2f5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 2 deletions

View file

@ -20,7 +20,7 @@
"minHeight": 500, "minHeight": 500,
"resizable": true, "resizable": true,
"decorations": false, "decorations": false,
"transparent": false "transparent": true
} }
], ],
"security": { "security": {

View file

@ -1,9 +1,11 @@
<script lang="ts"> <script lang="ts">
import { onMount } from "svelte"; import { onMount } from "svelte";
import { platform } from "@tauri-apps/plugin-os";
import { app } from "./lib/stores/app.svelte"; import { app } from "./lib/stores/app.svelte";
import SetupScreen from "./lib/screens/SetupScreen.svelte"; import SetupScreen from "./lib/screens/SetupScreen.svelte";
import TasksScreen from "./lib/screens/TasksScreen.svelte"; import TasksScreen from "./lib/screens/TasksScreen.svelte";
const isLinux = platform() === "linux";
onMount(() => { onMount(() => {
app.loadConfig(); app.loadConfig();
@ -11,9 +13,11 @@
</script> </script>
<div class={app.darkMode ? "dark" : ""}> <div class={app.darkMode ? "dark" : ""}>
<div class="h-screen w-screen"> <div class="h-screen w-screen" class:p-2={isLinux}>
<div <div
class="relative h-full w-full overflow-hidden bg-surface-light text-text-light dark:bg-surface-dark dark:text-text-dark" class="relative h-full w-full overflow-hidden bg-surface-light text-text-light dark:bg-surface-dark dark:text-text-dark"
class:rounded-xl={isLinux}
class:linux-window-border={isLinux}
style="container-type: inline-size" style="container-type: inline-size"
> >
{#if app.error} {#if app.error}

View file

@ -24,11 +24,24 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
html {
background: transparent;
}
body { body {
margin: 0; margin: 0;
overflow: hidden; overflow: hidden;
user-select: none; user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
background: transparent;
}
.linux-window-border {
border: 1px solid rgba(0, 0, 0, 0.15);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 2px rgba(0, 0, 0, 0.1);
}
.dark .linux-window-border {
border-color: rgba(255, 255, 255, 0.15);
} }
/* Scrollbar styling */ /* Scrollbar styling */