mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
[Theme] Fallback secondary menu bg to menu bg if not set (#2052)
This commit is contained in:
@@ -53,6 +53,15 @@ export const useColorPaletteStore = defineStore('colorPalette', () => {
|
||||
* @returns The completed palette.
|
||||
*/
|
||||
const completePalette = (palette: Palette): CompletedPalette => {
|
||||
// Set comfy-menu-secondary-bg to comfy-menu-bg if not set
|
||||
if (
|
||||
palette.colors.comfy_base['comfy-menu-bg'] &&
|
||||
!palette.colors.comfy_base['comfy-menu-secondary-bg']
|
||||
) {
|
||||
palette.colors.comfy_base['comfy-menu-secondary-bg'] =
|
||||
palette.colors.comfy_base['comfy-menu-bg']
|
||||
}
|
||||
|
||||
return {
|
||||
...palette,
|
||||
colors: {
|
||||
|
||||
Reference in New Issue
Block a user