From 5789c1c7d8e5b56dd2babaca9d06ca84a923cd4d Mon Sep 17 00:00:00 2001 From: pravdomil <2387356+pravdomil@users.noreply.github.com> Date: Mon, 12 Oct 2026 21:49:05 +0200 Subject: [PATCH] Scroll bars: a handle you can see [skip ci] The handle was filled with the colour of its own track (both the field background), so it only showed while hovered or dragged. It now takes the text colour, in every scroll area. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/theme.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ui-egui/src/theme.rs b/crates/ui-egui/src/theme.rs index abc6f576..c8a4e361 100644 --- a/crates/ui-egui/src/theme.rs +++ b/crates/ui-egui/src/theme.rs @@ -507,6 +507,9 @@ pub fn apply_visuals(ctx: &egui::Context, t: &Tokens) { // Scroll bars always show (egui's float in only over the list), so long menus and lists // can be dragged without a mouse wheel or touchpad (#269). s.spacing.scroll = egui::style::ScrollStyle::solid(); + // The handle takes the text colour: the fill it would otherwise get is the colour of its + // track (both are the field background), which left it invisible until hovered. + s.spacing.scroll.foreground_color = true; s.text_styles.insert(TextStyle::Body, FontId::new(12.0, FontFamily::Proportional)); s.text_styles.insert(TextStyle::Button, FontId::new(12.0, FontFamily::Proportional)); s.text_styles.insert(TextStyle::Small, FontId::new(11.0, FontFamily::Proportional));