[Desktop] Set window action buttons style (#2214)

This commit is contained in:
Chenlei Hu
2025-01-09 19:35:22 -05:00
committed by GitHub
parent cb265fb0bf
commit 04c23001fc
4 changed files with 39 additions and 2 deletions

View File

@@ -46,6 +46,7 @@ import { useColorPaletteStore } from '@/stores/workspace/colorPaletteStore'
import { useSidebarTabStore } from '@/stores/workspace/sidebarTabStore'
import { useWorkspaceStore } from '@/stores/workspaceStore'
import { StatusWsMessageStatus } from '@/types/apiTypes'
import { electronAPI, isElectron } from '@/utils/envUtil'
setupAutoQueueHandler()
@@ -64,6 +65,13 @@ watch(
} else {
document.body.classList.add(DARK_THEME_CLASS)
}
if (isElectron()) {
electronAPI().changeTheme({
color: 'rgba(0, 0, 0, 0)',
symbolColor: newTheme.colors.comfy_base['input-text']
})
}
},
{ immediate: true }
)