Skip to content

Commit

Permalink
Fix search bar colors to be the same as the message input box.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinaboos committed May 7, 2024
1 parent 8c16e66 commit e2265b9
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/shared/search_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ live_design! {
width: Fill, height: Fit
show_bg: true
draw_bg: {
color: #EDEDED;
color: #EEEEEE,
}

input = <TextInput> {
Expand All @@ -21,13 +21,26 @@ live_design! {
align: {y: 0.5}
empty_message: "Search..."
draw_bg: {
color: #fff
color: #F9F9F9
}
draw_text: {
text_style:<REGULAR_TEXT>{},
color: (MESSAGE_TEXT_COLOR),
text_style: <MESSAGE_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
)
}
}

Expand Down

0 comments on commit e2265b9

Please sign in to comment.