From e6c8231579b262a797ac366958adb3750b30bdbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Lo=CC=81pez=20Guevara?= Date: Fri, 6 Jun 2025 13:40:02 -0300 Subject: [PATCH] fix(search): make input background gray in light mode --- crates/notedeck_columns/src/ui/search/mod.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/crates/notedeck_columns/src/ui/search/mod.rs b/crates/notedeck_columns/src/ui/search/mod.rs index 8e0a053..a68136d 100644 --- a/crates/notedeck_columns/src/ui/search/mod.rs +++ b/crates/notedeck_columns/src/ui/search/mod.rs @@ -260,8 +260,16 @@ fn search_box( outer_margin: egui::Margin::ZERO, corner_radius: CornerRadius::same(18), // More rounded corners shadow: Default::default(), - fill: Color32::from_rgb(30, 30, 30), // Darker background to match screenshot - stroke: Stroke::new(1.0, Color32::from_rgb(60, 60, 60)), + fill: if ui.visuals().dark_mode { + Color32::from_rgb(30, 30, 30) + } else { + Color32::from_rgb(240, 240, 240) + }, + stroke: if ui.visuals().dark_mode { + Stroke::new(1.0, Color32::from_rgb(60, 60, 60)) + } else { + Stroke::new(1.0, Color32::from_rgb(200, 200, 200)) + }, }; search_container