commit e6c8231579b262a797ac366958adb3750b30bdbc
parent 6812a0e6ae1ec237236b174295b28d2324393be3
Author: Fernando LoĢpez Guevara <fernando.lguevara@gmail.com>
Date: Fri, 6 Jun 2025 13:40:02 -0300
fix(search): make input background gray in light mode
Diffstat:
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
@@ -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