mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-29 17:34:58 +03:00
fix checkbox color for Info > Traffic > "Show before {}"
This commit is contained in:
parent
882de86661
commit
79b9d9f961
@ -103,7 +103,18 @@ impl Checkbox {
|
|||||||
let mut buttons = ctx
|
let mut buttons = ctx
|
||||||
.style()
|
.style()
|
||||||
.btn_plain_light()
|
.btn_plain_light()
|
||||||
.image_color(RewriteColor::NoOp, ControlState::Default)
|
.image_color(
|
||||||
|
RewriteColor::Change(Color::BLACK, ctx.style().btn_primary_light.bg),
|
||||||
|
ControlState::Default,
|
||||||
|
)
|
||||||
|
.image_color(
|
||||||
|
RewriteColor::Change(Color::BLACK, ctx.style().btn_primary_light.bg_hover),
|
||||||
|
ControlState::Hovered,
|
||||||
|
)
|
||||||
|
.image_color(
|
||||||
|
RewriteColor::Change(Color::BLACK, ctx.style().btn_primary_light.bg_disabled),
|
||||||
|
ControlState::Disabled,
|
||||||
|
)
|
||||||
.label_styled_text(Text::from_all(spans), ControlState::Default)
|
.label_styled_text(Text::from_all(spans), ControlState::Default)
|
||||||
.padding(4.0);
|
.padding(4.0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user