diff --git a/src/styles.rs b/src/styles.rs index 869a77d..dd0d386 100644 --- a/src/styles.rs +++ b/src/styles.rs @@ -27,14 +27,14 @@ pub fn rustcast_text_input_style(theme: &ConfigTheme) -> text_input::Style { text_input::Style { background: Background::Color(surface), border: Border { - color: glass_border(theme.text_color(1.0), focused), + color: glass_border(theme.text_color(0.), focused), width: 0., - radius: Radius::new(15.).bottom(0.), + radius: Radius::new(10.).bottom(0.), }, - icon: theme.text_color(0.75), - placeholder: theme.text_color(0.50), - value: theme.text_color(1.0), - selection: with_alpha(theme.text_color(1.0), 0.20), + icon: theme.text_color(0.), + placeholder: theme.text_color(0.2), + value: theme.text_color(0.9), + selection: theme.text_color(0.2), } } @@ -44,7 +44,7 @@ pub fn contents_style(theme: &ConfigTheme) -> container::Style { background: None, text_color: None, border: iced::Border { - color: theme.text_color(0.7), + color: theme.text_color(0.9), width: 0.4, radius: Radius::new(14.0), }, @@ -260,8 +260,8 @@ pub fn settings_slider_style(theme: &ConfigTheme) -> slider::Style { /// Helper fn for making a color look like its glassy pub fn glass_surface(base: Color, focused: bool) -> Color { - let t = if focused { 0.3 } else { 0.06 }; - let a = if focused { 0.3 } else { 0.22 }; + let t = if focused { 0.2 } else { 0.06 }; + let a = if focused { 0.9 } else { 0.58 }; with_alpha(tint(base, t), a) }