mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-25 23:43:25 +03:00
theme signal editor bg
This commit is contained in:
parent
65f970a638
commit
2378da9731
@ -682,10 +682,11 @@ fn make_side_panel(
|
||||
stage_btn,
|
||||
]),
|
||||
])
|
||||
.padding(10);
|
||||
.padding(10)
|
||||
.bg(app.cs.inner_panel_bg);
|
||||
|
||||
if idx == selected {
|
||||
col.push(stage_controls.bg(Color::hex("#2A2A2A")));
|
||||
col.push(stage_controls.outline(2.0, ctx.style().outline_color));
|
||||
} else {
|
||||
col.push(stage_controls);
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ impl Style {
|
||||
field_bg: hex("#F2F2F2"),
|
||||
dropdown_border: hex("#4C4C4C"),
|
||||
outline_thickness: 2.0,
|
||||
outline_color: Color::WHITE,
|
||||
outline_color: hex("#4C4C4C"),
|
||||
loading_tips: Text::new(),
|
||||
icon_fg: hex("#4C4C4C"),
|
||||
text_fg_color: hex("#4C4C4C"),
|
||||
@ -206,6 +206,7 @@ impl Style {
|
||||
|
||||
pub fn dark_bg() -> Style {
|
||||
let mut style = Self::light_bg();
|
||||
style.outline_color = Color::WHITE;
|
||||
style.panel_bg = hex("#003046").alpha(0.9);
|
||||
style.field_bg = style.panel_bg.shade(0.2);
|
||||
style.btn_outline = ButtonStyle::outline_light_fg();
|
||||
|
Loading…
Reference in New Issue
Block a user