Skip to content

Commit

Permalink
Partially Revert "[Desktop] Set window action buttons style (#2214)"
Browse files Browse the repository at this point in the history
This reverts commit 04c2300.
- No change to BaseViewTemplate
- No change to mock electronAPI
  • Loading branch information
webfiltered committed Jan 11, 2025
1 parent 104c0a5 commit eb01fa6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
10 changes: 1 addition & 9 deletions src/components/topbar/TopMenubar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import WorkflowTabs from '@/components/topbar/WorkflowTabs.vue'
import { app } from '@/scripts/app'
import { useSettingStore } from '@/stores/settingStore'
import { useWorkspaceStore } from '@/stores/workspaceStore'
import { electronAPI, isElectron, showNativeMenu } from '@/utils/envUtil'
import { showNativeMenu } from '@/utils/envUtil'
const workspaceState = useWorkspaceStore()
const settingStore = useSettingStore()
Expand Down Expand Up @@ -77,14 +77,6 @@ eventBus.on((event: string, payload: any) => {
isDroppable.value = payload.isOverlapping && payload.isDragging
}
})
onMounted(() => {
if (isElectron()) {
electronAPI().changeTheme({
height: topMenuRef.value.getBoundingClientRect().height
})
}
})
</script>

<style scoped>
Expand Down
8 changes: 0 additions & 8 deletions src/views/GraphView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ 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()
Expand All @@ -65,13 +64,6 @@ 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 }
)
Expand Down

0 comments on commit eb01fa6

Please sign in to comment.