diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.json
index 0fc2bc4d..328de643 100644
--- a/apps/desktop/src-tauri/tauri.conf.json
+++ b/apps/desktop/src-tauri/tauri.conf.json
@@ -22,6 +22,10 @@
"width": 800,
"visible": false,
"height": 600,
+ "transparent": true,
+ "windowEffects": {
+ "effects": ["sidebar", "micaDark"]
+ },
"decorations": true,
"center": true
},
diff --git a/apps/desktop/src/app.css b/apps/desktop/src/app.css
index 704625e7..99d2bd9e 100644
--- a/apps/desktop/src/app.css
+++ b/apps/desktop/src/app.css
@@ -36,21 +36,21 @@
}
.dark {
- --background: 0 0% 3.9%;
+ --background: 0 0% 15%;
--foreground: 0 0% 98%;
--muted: 0 0% 14.9%;
--muted-foreground: 0 0% 63.9%;
- --popover: 0 0% 3.9%;
+ --popover: 0 0% 12%;
--popover-foreground: 0 0% 98%;
- --card: 0 0% 3.9%;
+ --card: 0 0% 10%;
--card-foreground: 0 0% 98%;
--border: 0 0% 14.9%;
- --input: 0 0% 14.9%;
+ --input: 0 0% 30%;
--primary: 0 0% 98%;
--primary-foreground: 0 0% 9%;
--secondary: 0 0% 14.9%;
--secondary-foreground: 0 0% 98%;
- --accent: 0 0% 14.9%;
+ --accent: 0 0% 24.9%;
--accent-foreground: 0 0% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 0% 98%;
@@ -79,3 +79,7 @@
html {
overscroll-behavior: none;
}
+
+body {
+ background-color: transparent;
+}
diff --git a/apps/desktop/src/lib/components/standalone/general-settings.svelte b/apps/desktop/src/lib/components/standalone/general-settings.svelte
index 52ebc46b..c08c62f8 100644
--- a/apps/desktop/src/lib/components/standalone/general-settings.svelte
+++ b/apps/desktop/src/lib/components/standalone/general-settings.svelte
@@ -29,7 +29,7 @@
const triggerContent = $derived(languages.find((f) => f.value === language)?.label ?? "Language")
-
+
-
{m.settings_general_launch_at_login()}
li {
- @apply flex items-center justify-between border-b px-3 py-3;
+ @apply border-accent flex items-center justify-between border-b px-3 py-3;
}
ul li:last-child {
@apply border-b-0;
diff --git a/apps/desktop/src/lib/stores/appConfig.ts b/apps/desktop/src/lib/stores/appConfig.ts
index eccaad03..e485238c 100644
--- a/apps/desktop/src/lib/stores/appConfig.ts
+++ b/apps/desktop/src/lib/stores/appConfig.ts
@@ -73,7 +73,12 @@ function createAppConfig(): WithSyncStore & Ap
store.subscribe(async (config) => {
console.log("Saving app config", config)
await persistStore.set("config", config)
- updateTheme(config.theme)
+ updateTheme({
+ theme: "neutral",
+ radius: 0.5,
+ lightMode: "dark"
+ })
+ // updateTheme(config.theme)
})
}
diff --git a/apps/desktop/src/routes/app/+page.svelte b/apps/desktop/src/routes/app/+page.svelte
index 93da6363..f0853c5c 100644
--- a/apps/desktop/src/routes/app/+page.svelte
+++ b/apps/desktop/src/routes/app/+page.svelte
@@ -41,6 +41,7 @@
import { ArrowBigUpIcon, CircleXIcon, EllipsisVerticalIcon, RefreshCcwIcon } from "lucide-svelte"
import { onMount } from "svelte"
+ const _platform = platform()
const win = getCurrentWindow()
let inputEle: HTMLInputElement | null = $state(null)
function onKeyDown(event: KeyboardEvent) {
@@ -95,7 +96,10 @@
}}
/>
-
+
@@ -173,7 +177,7 @@
{m.home_command_input_dropdown_open_preference()}
- {#if platform() === "macos"}
+ {#if _platform === "macos"}
⌘+Comma
{:else}
Ctrl+Comma
diff --git a/apps/desktop/src/routes/app/extension/store/+page.svelte b/apps/desktop/src/routes/app/extension/store/+page.svelte
index ca08cf11..78b889b6 100644
--- a/apps/desktop/src/routes/app/extension/store/+page.svelte
+++ b/apps/desktop/src/routes/app/extension/store/+page.svelte
@@ -14,6 +14,7 @@
import { Constants } from "@kksh/ui"
import { ExtListItem } from "@kksh/ui/extension"
import { CustomCommandInput, GlobalCommandPaletteFooter } from "@kksh/ui/main"
+ import { cn } from "@kksh/ui/utils"
import { platform } from "@tauri-apps/plugin-os"
import { goto } from "$app/navigation"
import { ArrowLeft } from "lucide-svelte"
@@ -21,6 +22,7 @@
import { toast } from "svelte-sonner"
import { getInstallExtras } from "./[identifier]/helper.js"
+ const _platform = platform()
let { data } = $props()
const { storeExtList, installedExtsMap, upgradableExpsMap } = data
const _platform = platform()
@@ -132,13 +134,22 @@
variant="outline"
size="icon"
onclick={goHome}
- class={Constants.CLASSNAMES.BACK_BUTTON}
+ class={cn(Constants.CLASSNAMES.BACK_BUTTON, {
+ "bg-background/50": _platform === "windows",
+ "bg-transparent": _platform === "macos"
+ })}
data-flip-id={Constants.CLASSNAMES.BACK_BUTTON}
>
{/snippet}
-
+
-
+
diff --git a/packages/ui/src/components/extension/StoreExtDetail.svelte b/packages/ui/src/components/extension/StoreExtDetail.svelte
index a59edbbf..bae6f75e 100644
--- a/packages/ui/src/components/extension/StoreExtDetail.svelte
+++ b/packages/ui/src/components/extension/StoreExtDetail.svelte
@@ -311,7 +311,7 @@
README
{#if extPublish?.readme}
-
+
{/if}
diff --git a/packages/ui/src/components/extension/templates/Markdown.svelte b/packages/ui/src/components/extension/templates/Markdown.svelte
index 29c09a79..bdc4eedd 100644
--- a/packages/ui/src/components/extension/templates/Markdown.svelte
+++ b/packages/ui/src/components/extension/templates/Markdown.svelte
@@ -5,6 +5,6 @@
const { markdown, class: className }: { markdown: string; class?: string } = $props()
-