优化,贴图
This commit is contained in:
@@ -29,6 +29,8 @@ onMounted(() => {
|
||||
searchStore.registerAction('settings', 4, () => appStore.setEffect('mica'))
|
||||
searchStore.registerAction('settings', 5, () => appStore.setEffect('acrylic'))
|
||||
searchStore.registerAction('settings', 6, () => appStore.toggleAutoStart())
|
||||
// 主动刷新所有进程状态,确保内核 badge 显示当前真实状态(而非过期缓存)
|
||||
processStore.refreshAll().catch(() => { /* 忽略:后端可能未就绪 */ })
|
||||
})
|
||||
|
||||
const themes: Array<{ id: Theme; name: string; color: string; icon: typeof Sun }> = [
|
||||
@@ -132,7 +134,7 @@ const onDragEnd = () => {
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle class="flex items-center gap-2">
|
||||
<Sparkles class="h-5 w-5 text-primary" />
|
||||
<Sparkles class="size-5 text-primary" />
|
||||
常规设置
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
@@ -153,7 +155,7 @@ const onDragEnd = () => {
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle class="flex items-center gap-2">
|
||||
<Layers class="h-5 w-5 text-primary" />
|
||||
<Layers class="size-5 text-primary" />
|
||||
主题切换
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
@@ -175,7 +177,7 @@ const onDragEnd = () => {
|
||||
>
|
||||
<component
|
||||
:is="theme.icon"
|
||||
class="h-8 w-8 transition-colors duration-300"
|
||||
class="size-8 transition-colors duration-300"
|
||||
:class="theme.id === 'dark' || (theme.id === 'system' && systemDark) ? 'text-white' : 'text-gray-800'"
|
||||
/>
|
||||
</div>
|
||||
@@ -198,7 +200,7 @@ const onDragEnd = () => {
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle class="flex items-center gap-2">
|
||||
<Sparkles class="h-5 w-5 text-primary" />
|
||||
<Sparkles class="size-5 text-primary" />
|
||||
效果切换
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
@@ -244,7 +246,7 @@ const onDragEnd = () => {
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle class="flex items-center gap-2">
|
||||
<Package class="h-5 w-5 text-primary" />
|
||||
<Package class="size-5 text-primary" />
|
||||
模块管理
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
@@ -271,7 +273,7 @@ const onDragEnd = () => {
|
||||
<div
|
||||
class="drag-handle cursor-grab active:cursor-grabbing text-muted-foreground/40 hover:text-muted-foreground transition-colors"
|
||||
>
|
||||
<GripVertical class="h-4 w-4 no-native-drag" />
|
||||
<GripVertical class="size-4 no-native-drag" />
|
||||
</div>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>拖拽排序</TooltipContent>
|
||||
@@ -280,7 +282,7 @@ const onDragEnd = () => {
|
||||
class="w-9 h-9 rounded-lg flex items-center justify-center"
|
||||
:class="module.enabled ? 'bg-primary/10 text-primary' : 'bg-muted text-muted-foreground'"
|
||||
>
|
||||
<component :is="getModuleIcon(module.icon)" class="h-5 w-5" />
|
||||
<component :is="getModuleIcon(module.icon)" class="size-5" />
|
||||
</div>
|
||||
<div>
|
||||
<div class="font-medium text-sm flex items-center gap-2">
|
||||
@@ -314,7 +316,7 @@ const onDragEnd = () => {
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle class="flex items-center gap-2">
|
||||
<LogOut class="h-5 w-5 text-destructive" />
|
||||
<LogOut class="size-5 text-destructive" />
|
||||
退出程序
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
@@ -324,7 +326,7 @@ const onDragEnd = () => {
|
||||
class="text-destructive border-destructive/20 hover:bg-destructive/10"
|
||||
@click="quitApp"
|
||||
>
|
||||
<LogOut class="h-4 w-4 mr-2" />
|
||||
<LogOut class="size-4 mr-2" />
|
||||
彻底退出
|
||||
</Button>
|
||||
</CardContent>
|
||||
|
||||
Reference in New Issue
Block a user