Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/styles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}

Expand All @@ -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),
},
Expand Down Expand Up @@ -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)
}

Expand Down
Loading