mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
[style] complete semantic token migration for vueNodes widgets
Complete the semantic token migration by updating final hard-coded colors in widget components to use design system tokens: - FormSelectButton.vue: use text-primary/text-secondary consistently - FormDropdownMenuFilter.vue: use text-secondary for default text - FormDropdownMenuItem.vue: use text-secondary for metadata - AudioPreviewPlayer.vue: use text-secondary for icons - Remove hard-coded zinc, neutral, and other color values from vueNodes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
Christian Byrne
parent
cd15b659ae
commit
20015ccd81
@@ -29,26 +29,19 @@
|
|||||||
>
|
>
|
||||||
<i
|
<i
|
||||||
v-if="!isPlaying"
|
v-if="!isPlaying"
|
||||||
class="icon-[lucide--play] size-4 text-secondary"
|
class="text-secondary icon-[lucide--play] size-4"
|
||||||
/>
|
|
||||||
<i
|
|
||||||
v-else
|
|
||||||
class="icon-[lucide--pause] size-4 text-secondary"
|
|
||||||
/>
|
/>
|
||||||
|
<i v-else class="text-secondary icon-[lucide--pause] size-4" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Time Display -->
|
<!-- Time Display -->
|
||||||
<div
|
<div class="text-sm font-normal text-nowrap text-primary">
|
||||||
class="text-sm font-normal text-nowrap text-primary"
|
|
||||||
>
|
|
||||||
{{ formatTime(currentTime) }} / {{ formatTime(duration) }}
|
{{ formatTime(currentTime) }} / {{ formatTime(duration) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Progress Bar -->
|
<!-- Progress Bar -->
|
||||||
<div
|
<div class="relative h-0.5 flex-1 rounded-full bg-interface-stroke">
|
||||||
class="relative h-0.5 flex-1 rounded-full bg-interface-stroke"
|
|
||||||
>
|
|
||||||
<div
|
<div
|
||||||
class="absolute top-0 left-0 h-full rounded-full bg-button-icon transition-all"
|
class="absolute top-0 left-0 h-full rounded-full bg-button-icon transition-all"
|
||||||
:style="{ width: `${progressPercentage}%` }"
|
:style="{ width: `${progressPercentage}%` }"
|
||||||
@@ -77,16 +70,13 @@
|
|||||||
>
|
>
|
||||||
<i
|
<i
|
||||||
v-if="showVolumeTwo"
|
v-if="showVolumeTwo"
|
||||||
class="icon-[lucide--volume-2] size-4 text-secondary"
|
class="text-secondary icon-[lucide--volume-2] size-4"
|
||||||
/>
|
/>
|
||||||
<i
|
<i
|
||||||
v-else-if="showVolumeOne"
|
v-else-if="showVolumeOne"
|
||||||
class="icon-[lucide--volume-1] size-4 text-secondary"
|
class="text-secondary icon-[lucide--volume-1] size-4"
|
||||||
/>
|
|
||||||
<i
|
|
||||||
v-else
|
|
||||||
class="icon-[lucide--volume-x] size-4 text-secondary"
|
|
||||||
/>
|
/>
|
||||||
|
<i v-else class="text-secondary icon-[lucide--volume-x] size-4" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Options Button -->
|
<!-- Options Button -->
|
||||||
@@ -99,9 +89,7 @@
|
|||||||
class="flex size-6 cursor-pointer items-center justify-center rounded hover:bg-interface-menu-component-surface-hovered"
|
class="flex size-6 cursor-pointer items-center justify-center rounded hover:bg-interface-menu-component-surface-hovered"
|
||||||
@click="toggleOptionsMenu"
|
@click="toggleOptionsMenu"
|
||||||
>
|
>
|
||||||
<i
|
<i class="text-secondary icon-[lucide--more-vertical] size-4" />
|
||||||
class="icon-[lucide--more-vertical] size-4 text-secondary"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -16,14 +16,14 @@
|
|||||||
'bg-transparent border-none',
|
'bg-transparent border-none',
|
||||||
'text-center text-xs font-normal',
|
'text-center text-xs font-normal',
|
||||||
{
|
{
|
||||||
'bg-interface-menu-component-surface-selected': isSelected(option) && !disabled,
|
'bg-interface-menu-component-surface-selected':
|
||||||
'hover:bg-interface-menu-component-surface-hovered': !isSelected(option) && !disabled,
|
isSelected(option) && !disabled,
|
||||||
|
'hover:bg-interface-menu-component-surface-hovered':
|
||||||
|
!isSelected(option) && !disabled,
|
||||||
'opacity-50 cursor-not-allowed': disabled,
|
'opacity-50 cursor-not-allowed': disabled,
|
||||||
'cursor-pointer': !disabled
|
'cursor-pointer': !disabled
|
||||||
},
|
},
|
||||||
isSelected(option) && !disabled
|
isSelected(option) && !disabled ? 'text-primary' : 'text-secondary'
|
||||||
? 'text-primary'
|
|
||||||
: 'text-secondary'
|
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ const filterSelected = defineModel<OptionId>('filterSelected')
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="mb-4 flex gap-1 px-4 text-secondary">
|
<div class="text-secondary mb-4 flex gap-1 px-4">
|
||||||
<div
|
<div
|
||||||
v-for="option in filterOptions"
|
v-for="option in filterOptions"
|
||||||
:key="option.id"
|
:key="option.id"
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ function handleVideoLoad(event: Event) {
|
|||||||
{{ name }}
|
{{ name }}
|
||||||
</span>
|
</span>
|
||||||
<!-- Meta Data -->
|
<!-- Meta Data -->
|
||||||
<span class="block text-xs text-secondary">{{
|
<span class="text-secondary block text-xs">{{
|
||||||
metadata || actualDimensions
|
metadata || actualDimensions
|
||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user