From 0be7d16a8f64a9f083b56c8b6c26d23690ce6e20 Mon Sep 17 00:00:00 2001 From: Kevin Boos <1139460+kevinaboos@users.noreply.github.com> Date: Tue, 7 May 2024 16:56:47 +0200 Subject: [PATCH] Fix search bar colors to be the same as the message input box. (#73) --- src/shared/search_bar.rs | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/shared/search_bar.rs b/src/shared/search_bar.rs index d72ceac3..53f6143a 100644 --- a/src/shared/search_bar.rs +++ b/src/shared/search_bar.rs @@ -11,7 +11,7 @@ live_design! { width: Fill, height: Fit show_bg: true draw_bg: { - color: #EDEDED; + color: #EEEEEE, } input = { @@ -21,13 +21,26 @@ live_design! { align: {y: 0.5} empty_message: "Search..." draw_bg: { - color: #fff + color: #F9F9F9 } draw_text: { - text_style:{}, + color: (MESSAGE_TEXT_COLOR), + text_style: {}, fn get_color(self) -> vec4 { - return #ccc + return mix( + mix( + mix( + #xFFFFFF55, + #xFFFFFF88, + self.hover + ), + self.color, + self.focus + ), + #BBBBBB, + self.is_empty + ) } }