Upgrade SAO theming #43
|
@ -23,8 +23,8 @@ impl DialogResponse {
|
||||||
|
|
||||||
pub fn get_color(&self) -> Color {
|
pub fn get_color(&self) -> Color {
|
||||||
match self {
|
match self {
|
||||||
DialogResponse::Yes => Color::BLUE,
|
DialogResponse::Yes => THEME.palette.blue,
|
||||||
DialogResponse::No => Color::RED,
|
DialogResponse::No => THEME.palette.red,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -95,6 +95,7 @@ pub struct DialogFooterStyle {
|
||||||
pub icon_font: Font,
|
pub icon_font: Font,
|
||||||
pub button_radius: f32,
|
pub button_radius: f32,
|
||||||
pub color: Color,
|
pub color: Color,
|
||||||
|
pub button_fg: Color,
|
||||||
pub height: f32,
|
pub height: f32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,6 +105,7 @@ impl Default for DialogFooterStyle {
|
||||||
icon_font: Font::new(crate::ICON_FONT),
|
icon_font: Font::new(crate::ICON_FONT),
|
||||||
button_radius: 7.5,
|
button_radius: 7.5,
|
||||||
color: THEME.palette.surface,
|
color: THEME.palette.surface,
|
||||||
|
button_fg: THEME.palette.white,
|
||||||
height: 15.0,
|
height: 15.0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -136,7 +138,7 @@ impl Dialog {
|
||||||
thickness: radius * 0.05,
|
thickness: radius * 0.05,
|
||||||
body_color: color,
|
body_color: color,
|
||||||
ring_color: color,
|
ring_color: color,
|
||||||
icon_color: Color::WHITE,
|
icon_color: style.footer.button_fg,
|
||||||
};
|
};
|
||||||
|
|
||||||
let text = LabelText {
|
let text = LabelText {
|
||||||
|
|
Loading…
Reference in New Issue