fix: theme switcher current colors (#198)
* fix border color * match bg color closer to border * fix tooltip bg color
This commit is contained in:
parent
3778a51feb
commit
c38624cb50
|
|
@ -98,14 +98,14 @@ watch(radius, (radius) => {
|
||||||
class="flex h-9 w-9 items-center justify-center rounded-full border-2 border-border text-xs"
|
class="flex h-9 w-9 items-center justify-center rounded-full border-2 border-border text-xs"
|
||||||
:class="
|
:class="
|
||||||
color === theme
|
color === theme
|
||||||
? 'border-foreground'
|
? 'border-primary'
|
||||||
: 'border-transparent'
|
: 'border-transparent'
|
||||||
"
|
"
|
||||||
@click="setTheme(color)"
|
@click="setTheme(color)"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="flex h-6 w-6 items-center justify-center rounded-full"
|
class="flex h-6 w-6 items-center justify-center rounded-full"
|
||||||
:style="{ backgroundColor: colors[color][7].rgb }"
|
:style="{ backgroundColor: colors[color][6].rgb }"
|
||||||
>
|
>
|
||||||
<RadixIconsCheck
|
<RadixIconsCheck
|
||||||
v-if="color === theme"
|
v-if="color === theme"
|
||||||
|
|
@ -117,7 +117,7 @@ watch(radius, (radius) => {
|
||||||
<TooltipContent
|
<TooltipContent
|
||||||
align="center"
|
align="center"
|
||||||
:side-offset="1"
|
:side-offset="1"
|
||||||
class="capitalize"
|
class="capitalize bg-zinc-900"
|
||||||
>
|
>
|
||||||
{{ allColors[index] }}
|
{{ allColors[index] }}
|
||||||
</TooltipContent>
|
</TooltipContent>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user