Compare commits

...

2 Commits

Author SHA1 Message Date
Austin Mroz
395aa46c9a Add test 2026-06-08 09:40:34 -07:00
Austin Mroz
9651a1f35f Fix themeing of nodes 2026-06-08 09:17:33 -07:00
2 changed files with 12 additions and 2 deletions

View File

@@ -190,6 +190,16 @@ test.describe('Color Palette', { tag: ['@screenshot', '@settings'] }, () => {
'custom-color-palette-obsidian-dark.png'
)
})
test('Palette can modify @vue-nodes color', async ({ comfyPage }) => {
const node = await comfyPage.vueNodes.getFixtureByTitle('KSampler')
const getColor = () =>
node.body.evaluate((el) => getComputedStyle(el).backgroundColor)
const initialColor = await getColor()
await comfyPage.settings.setSetting('Comfy.ColorPalette', 'solarized')
await expect.poll(getColor).not.toEqual(initialColor)
})
})
test.describe(

View File

@@ -128,9 +128,9 @@ watch(
(newTheme) => {
const DARK_THEME_CLASS = 'dark-theme'
if (newTheme.light_theme) {
document.body.classList.remove(DARK_THEME_CLASS)
document.documentElement.classList.remove(DARK_THEME_CLASS)
} else {
document.body.classList.add(DARK_THEME_CLASS)
document.documentElement.classList.add(DARK_THEME_CLASS)
}
if (isDesktop) {
electronAPI().changeTheme({