mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 02:02:08 +00:00
Partially Revert "[Desktop] Set window action buttons style (#2214)"
This reverts commit 04c23001fc.
- No change to BaseViewTemplate
- No change to mock electronAPI
This commit is contained in:
@@ -42,7 +42,7 @@ import WorkflowTabs from '@/components/topbar/WorkflowTabs.vue'
|
|||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { useSettingStore } from '@/stores/settingStore'
|
import { useSettingStore } from '@/stores/settingStore'
|
||||||
import { useWorkspaceStore } from '@/stores/workspaceStore'
|
import { useWorkspaceStore } from '@/stores/workspaceStore'
|
||||||
import { electronAPI, isElectron, showNativeMenu } from '@/utils/envUtil'
|
import { showNativeMenu } from '@/utils/envUtil'
|
||||||
|
|
||||||
const workspaceState = useWorkspaceStore()
|
const workspaceState = useWorkspaceStore()
|
||||||
const settingStore = useSettingStore()
|
const settingStore = useSettingStore()
|
||||||
@@ -77,14 +77,6 @@ eventBus.on((event: string, payload: any) => {
|
|||||||
isDroppable.value = payload.isOverlapping && payload.isDragging
|
isDroppable.value = payload.isOverlapping && payload.isDragging
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
if (isElectron()) {
|
|
||||||
electronAPI().changeTheme({
|
|
||||||
height: topMenuRef.value.getBoundingClientRect().height
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ import { useColorPaletteStore } from '@/stores/workspace/colorPaletteStore'
|
|||||||
import { useSidebarTabStore } from '@/stores/workspace/sidebarTabStore'
|
import { useSidebarTabStore } from '@/stores/workspace/sidebarTabStore'
|
||||||
import { useWorkspaceStore } from '@/stores/workspaceStore'
|
import { useWorkspaceStore } from '@/stores/workspaceStore'
|
||||||
import { StatusWsMessageStatus } from '@/types/apiTypes'
|
import { StatusWsMessageStatus } from '@/types/apiTypes'
|
||||||
import { electronAPI, isElectron } from '@/utils/envUtil'
|
|
||||||
|
|
||||||
setupAutoQueueHandler()
|
setupAutoQueueHandler()
|
||||||
|
|
||||||
@@ -65,13 +64,6 @@ watch(
|
|||||||
} else {
|
} else {
|
||||||
document.body.classList.add(DARK_THEME_CLASS)
|
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 }
|
{ immediate: true }
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user