feat(desktop) semi-transparent background for mac

This commit is contained in:
Huakun Shen 2025-02-18 04:27:22 -05:00
parent ba36b6226a
commit cfaded3a6e
No known key found for this signature in database
5 changed files with 15 additions and 1 deletions

View File

@ -22,6 +22,10 @@
"width": 800,
"visible": false,
"height": 600,
"transparent": true,
"windowEffects": {
"effects": ["sidebar"]
},
"decorations": true
},
{

View File

@ -79,3 +79,7 @@
html {
overscroll-behavior: none;
}
body {
background-color: transparent;
}

View File

@ -95,7 +95,7 @@
}}
/>
<Command.Root
class={cn("h-screen rounded-lg border shadow-md")}
class={cn("h-screen rounded-lg border shadow-md bg-transparent")}
bind:value={$appState.highlightedCmd}
shouldFilter={true}
loop

View File

@ -1,8 +1,12 @@
import type { WindowConfig } from "@kksh/api/models"
import { WebviewWindow } from "@tauri-apps/api/webviewWindow"
import { Effect } from "@tauri-apps/api/window"
export function launchNewExtWindow(windowLabel: string, url: string, windowConfig?: WindowConfig) {
return new WebviewWindow(windowLabel, {
windowEffects: {
effects: [Effect.Sidebar]
},
center: windowConfig?.center ?? undefined,
x: windowConfig?.x ?? undefined,
y: windowConfig?.y ?? undefined,

View File

@ -1,3 +1,4 @@
## Permission Table
<table>
@ -6,6 +7,7 @@
<th>Description</th>
</tr>
<tr>
<td>