mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 00:02:23 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user