mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-07-03 14:51:30 +00:00
feat(desktop) semi-transparent background for mac
This commit is contained in:
parent
ba36b6226a
commit
cfaded3a6e
@ -22,6 +22,10 @@
|
|||||||
"width": 800,
|
"width": 800,
|
||||||
"visible": false,
|
"visible": false,
|
||||||
"height": 600,
|
"height": 600,
|
||||||
|
"transparent": true,
|
||||||
|
"windowEffects": {
|
||||||
|
"effects": ["sidebar"]
|
||||||
|
},
|
||||||
"decorations": true
|
"decorations": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -79,3 +79,7 @@
|
|||||||
html {
|
html {
|
||||||
overscroll-behavior: none;
|
overscroll-behavior: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
@ -95,7 +95,7 @@
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Command.Root
|
<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}
|
bind:value={$appState.highlightedCmd}
|
||||||
shouldFilter={true}
|
shouldFilter={true}
|
||||||
loop
|
loop
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
import type { WindowConfig } from "@kksh/api/models"
|
import type { WindowConfig } from "@kksh/api/models"
|
||||||
import { WebviewWindow } from "@tauri-apps/api/webviewWindow"
|
import { WebviewWindow } from "@tauri-apps/api/webviewWindow"
|
||||||
|
import { Effect } from "@tauri-apps/api/window"
|
||||||
|
|
||||||
export function launchNewExtWindow(windowLabel: string, url: string, windowConfig?: WindowConfig) {
|
export function launchNewExtWindow(windowLabel: string, url: string, windowConfig?: WindowConfig) {
|
||||||
return new WebviewWindow(windowLabel, {
|
return new WebviewWindow(windowLabel, {
|
||||||
|
windowEffects: {
|
||||||
|
effects: [Effect.Sidebar]
|
||||||
|
},
|
||||||
center: windowConfig?.center ?? undefined,
|
center: windowConfig?.center ?? undefined,
|
||||||
x: windowConfig?.x ?? undefined,
|
x: windowConfig?.x ?? undefined,
|
||||||
y: windowConfig?.y ?? undefined,
|
y: windowConfig?.y ?? undefined,
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
## Permission Table
|
## Permission Table
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
@ -6,6 +7,7 @@
|
|||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user