mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-27 15:40:36 +08:00
Improve delegate badge colors
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
| "negative"
|
||||
| "positive"
|
||||
| "primary"
|
||||
| "delegate"
|
||||
| "secondary";
|
||||
export let round: boolean = false;
|
||||
export let style: string | undefined = undefined;
|
||||
@@ -38,6 +39,10 @@
|
||||
color: var(--color-foreground-match-background);
|
||||
background: var(--color-fill-gray);
|
||||
}
|
||||
.delegate {
|
||||
color: var(--color-foreground-primary);
|
||||
background: var(--color-fill-delegate);
|
||||
}
|
||||
.neutral {
|
||||
color: var(--color-foreground-contrast);
|
||||
background: var(--color-fill-ghost);
|
||||
@@ -112,6 +117,7 @@
|
||||
class:medium={size === "medium"}
|
||||
class:caution={variant === "caution"}
|
||||
class:yellow={variant === "yellow"}
|
||||
class:delegate={variant === "delegate"}
|
||||
class:outline={variant === "outline"}
|
||||
class:background={variant === "background"}
|
||||
class:foreground={variant === "foreground"}
|
||||
|
||||
@@ -89,12 +89,10 @@
|
||||
{item.remote.alias || formatNodeId(item.remote.id)}
|
||||
</span>
|
||||
{#if item.remote.delegate}
|
||||
<div style:color="var(--color-fill-secondary)">
|
||||
<Badge size="tiny" variant="primary">
|
||||
<IconSmall name="badge" />
|
||||
Delegate
|
||||
</Badge>
|
||||
</div>
|
||||
<Badge size="tiny" variant="delegate">
|
||||
<IconSmall name="badge" />
|
||||
Delegate
|
||||
</Badge>
|
||||
{/if}
|
||||
</DropdownListItem>
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user