Skip to content

Commit 20015cc

Browse files
[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 <[email protected]>
1 parent cd15b65 commit 20015cc

File tree

4 files changed

+15
-27
lines changed

4 files changed

+15
-27
lines changed

src/renderer/extensions/vueNodes/widgets/components/audio/AudioPreviewPlayer.vue

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,19 @@
2929
>
3030
<i
3131
v-if="!isPlaying"
32-
class="icon-[lucide--play] size-4 text-secondary"
33-
/>
34-
<i
35-
v-else
36-
class="icon-[lucide--pause] size-4 text-secondary"
32+
class="text-secondary icon-[lucide--play] size-4"
3733
/>
34+
<i v-else class="text-secondary icon-[lucide--pause] size-4" />
3835
</div>
3936

4037
<!-- Time Display -->
41-
<div
42-
class="text-sm font-normal text-nowrap text-primary"
43-
>
38+
<div class="text-sm font-normal text-nowrap text-primary">
4439
{{ formatTime(currentTime) }} / {{ formatTime(duration) }}
4540
</div>
4641
</div>
4742

4843
<!-- Progress Bar -->
49-
<div
50-
class="relative h-0.5 flex-1 rounded-full bg-interface-stroke"
51-
>
44+
<div class="relative h-0.5 flex-1 rounded-full bg-interface-stroke">
5245
<div
5346
class="absolute top-0 left-0 h-full rounded-full bg-button-icon transition-all"
5447
:style="{ width: `${progressPercentage}%` }"
@@ -77,16 +70,13 @@
7770
>
7871
<i
7972
v-if="showVolumeTwo"
80-
class="icon-[lucide--volume-2] size-4 text-secondary"
73+
class="text-secondary icon-[lucide--volume-2] size-4"
8174
/>
8275
<i
8376
v-else-if="showVolumeOne"
84-
class="icon-[lucide--volume-1] size-4 text-secondary"
85-
/>
86-
<i
87-
v-else
88-
class="icon-[lucide--volume-x] size-4 text-secondary"
77+
class="text-secondary icon-[lucide--volume-1] size-4"
8978
/>
79+
<i v-else class="text-secondary icon-[lucide--volume-x] size-4" />
9080
</div>
9181

9282
<!-- Options Button -->
@@ -99,9 +89,7 @@
9989
class="flex size-6 cursor-pointer items-center justify-center rounded hover:bg-interface-menu-component-surface-hovered"
10090
@click="toggleOptionsMenu"
10191
>
102-
<i
103-
class="icon-[lucide--more-vertical] size-4 text-secondary"
104-
/>
92+
<i class="text-secondary icon-[lucide--more-vertical] size-4" />
10593
</div>
10694
</div>
10795

src/renderer/extensions/vueNodes/widgets/components/form/FormSelectButton.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
'bg-transparent border-none',
1717
'text-center text-xs font-normal',
1818
{
19-
'bg-interface-menu-component-surface-selected': isSelected(option) && !disabled,
20-
'hover:bg-interface-menu-component-surface-hovered': !isSelected(option) && !disabled,
19+
'bg-interface-menu-component-surface-selected':
20+
isSelected(option) && !disabled,
21+
'hover:bg-interface-menu-component-surface-hovered':
22+
!isSelected(option) && !disabled,
2123
'opacity-50 cursor-not-allowed': disabled,
2224
'cursor-pointer': !disabled
2325
},
24-
isSelected(option) && !disabled
25-
? 'text-primary'
26-
: 'text-secondary'
26+
isSelected(option) && !disabled ? 'text-primary' : 'text-secondary'
2727
)
2828
"
2929
:disabled="disabled"

src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenuFilter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const filterSelected = defineModel<OptionId>('filterSelected')
1111
</script>
1212

1313
<template>
14-
<div class="mb-4 flex gap-1 px-4 text-secondary">
14+
<div class="text-secondary mb-4 flex gap-1 px-4">
1515
<div
1616
v-for="option in filterOptions"
1717
:key="option.id"

src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenuItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function handleVideoLoad(event: Event) {
142142
{{ name }}
143143
</span>
144144
<!-- Meta Data -->
145-
<span class="block text-xs text-secondary">{{
145+
<span class="text-secondary block text-xs">{{
146146
metadata || actualDimensions
147147
}}</span>
148148
</div>

0 commit comments

Comments
 (0)