fix(theme): light the splitters up in the theme's accent

drag_border was never set, so the sidebar and panel splitters, the pane
divider and the drop target for a dragged-in file all lit up in
gpui-component's stock blue — the same blue under all nine presets.
Measured on Rose Pine Dawn: the handle went from #656361 to #907aa9, the
preset's own accent, which is already what the focus ring and an on
switch use.
This commit is contained in:
l0ng-ai
2026-08-08 09:57:22 +07:00
parent afd84a53fd
commit 63a4f0da6e
+6
View File
@@ -493,6 +493,12 @@ pub(crate) fn apply_theme(mut window: Option<&mut Window>, cx: &mut App) {
t.tokens.button_secondary_active = button_active.into();
t.ring = rgb(m.accent).into();
// Every splitter and panel edge lights up with this while you drag it, and
// the drop target for a dragged-in file tints with it. Unset it is a fixed
// blue from gpui-component's stock theme — the same blue under all nine
// presets. It is an interaction highlight, so it belongs with the focus
// ring and the on-switch.
t.drag_border = rgb(m.accent).into();
#[cfg(target_os = "macos")]
if let Some(window) = window.as_deref_mut() {