Commit ffc87c3a7 for llama.cpp
commit ffc87c3a7989cb657641a6459a186f303e176af8
Author: Aleksander Grygier <aleksander.grygier@gmail.com>
Date: Wed Nov 18 13:46:25 2026 +0100
ui: soften the action card border and show the split-button divider in dark mode (#32538)
The tool permission card took the fields' border (white 30% in dark), which
outweighed everything else on the page; it now has its own token, white 18%
in dark, the focused chat form's edge. The split-button divider had the
keys' own rim colour (white 12% over a white 9% fill) and vanished between
them; it now has its own token, white 20% in dark. Light mode is unchanged.
Assisted-by: Claude (Opus 5.5 Medium)
diff --git a/ui/apps/chat/src/lib/components/app/chat/ChatMessages/ChatMessageActions/ChatMessageActionCard/ChatMessageActionCard.svelte b/ui/apps/chat/src/lib/components/app/chat/ChatMessages/ChatMessageActions/ChatMessageActionCard/ChatMessageActionCard.svelte
index fd851186c..b2937b2cc 100644
--- a/ui/apps/chat/src/lib/components/app/chat/ChatMessages/ChatMessageActions/ChatMessageActionCard/ChatMessageActionCard.svelte
+++ b/ui/apps/chat/src/lib/components/app/chat/ChatMessages/ChatMessageActions/ChatMessageActionCard/ChatMessageActionCard.svelte
@@ -11,7 +11,7 @@
let { actions, icon: IconComponent, message }: Props = $props();
</script>
-<div class="my-2 rounded-lg border border-border bg-card p-3">
+<div class="my-2 rounded-lg border border-(--action-card-border) bg-card p-3">
<div class="mb-3 flex items-center gap-2 text-sm">
<IconComponent class="{ICON_CLASS_DEFAULT} shrink-0 text-muted-foreground" />
diff --git a/ui/lib/ui/src/lib/components/ui/button-group/button-group-separator.svelte b/ui/lib/ui/src/lib/components/ui/button-group/button-group-separator.svelte
index 62e5163da..604356fc2 100644
--- a/ui/lib/ui/src/lib/components/ui/button-group/button-group-separator.svelte
+++ b/ui/lib/ui/src/lib/components/ui/button-group/button-group-separator.svelte
@@ -6,7 +6,7 @@
</script>
<div
- class={cn('w-px shrink-0 self-stretch bg-(--button-outline-border)', className)}
+ class={cn('w-px shrink-0 self-stretch bg-(--button-group-separator)', className)}
data-slot="button-group-separator"
{...restProps}
></div>
diff --git a/ui/lib/ui/src/lib/styles/tokens/components.css b/ui/lib/ui/src/lib/styles/tokens/components.css
index 4e62c76bb..94c1ad699 100644
--- a/ui/lib/ui/src/lib/styles/tokens/components.css
+++ b/ui/lib/ui/src/lib/styles/tokens/components.css
@@ -89,6 +89,10 @@
--button-ghost-background-hover: var(--action-ghost-hover);
--button-outline-background: var(--field-background);
--button-outline-border: var(--line-control);
+ /* the line between the two halves of a split button; dark mode makes it stronger than the keys' rim */
+ --button-group-separator: var(--line-control);
+ /* the action card (a tool permission or continue request in the chat) */
+ --action-card-border: var(--line-default);
--button-text: var(--fg-default);
--button-shadow: var(--elevation-control);
/* the matte finish: a fill barely lighter at the top; solid fills also get an even hairline in a shade of the fill.
@@ -201,6 +205,10 @@
--button-primary-edge: color-mix(in oklab, var(--button-primary-background), black 10%);
--button-danger-sheen: transparent;
--button-danger-edge: color-mix(in oklch, var(--line-danger) 40%, transparent);
+ /* the keys' rim is white 12% over a white 9% fill, so a divider of the same shade vanishes between them */
+ --button-group-separator: var(--white-a20);
+ /* lighter than the fields' white 30%, yet still the strongest edge resting on the page: the focused chat form's */
+ --action-card-border: var(--white-a18);
}
/* the user bubble is a card with an even, fainter edge, no inner ring and a barely noticeable shadow */