From 79b9d9f9615b7966ed3417b2ef5f39ec43ad5166 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Thu, 21 Jan 2021 15:17:51 -0600 Subject: [PATCH] fix checkbox color for Info > Traffic > "Show before {}" --- widgetry/src/widgets/checkbox.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/widgetry/src/widgets/checkbox.rs b/widgetry/src/widgets/checkbox.rs index 0e2c8b05f2..9c6b985f0d 100644 --- a/widgetry/src/widgets/checkbox.rs +++ b/widgetry/src/widgets/checkbox.rs @@ -103,7 +103,18 @@ impl Checkbox { let mut buttons = ctx .style() .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) .padding(4.0);