question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Checkbox checkmark accent is hard to see against dark flyout

See original GitHub issue

My WPF application using MahApps.Metro uses a Flyout for the app’s Settings UI. Most of the users use the default “Light” theme with the “Blue” accent color. The Flyout is Modal="True" and configured with the defaults). Under these conditions checkboxes in the flyout have checkmarks that don’t stand-out very well:

image

A quickfix is to change the checkmark brush to use a lighter shade of accent, if not white, when a checkbox is displayed in a flyout.

Environment

  • MahApps.Metro v1.5.0
  • Windows 10
  • Visual Studio 2015
  • .NET Framework 4.6.1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
punker76commented, Apr 18, 2017

@Jehoel The CheckBox and RadioBox uses the HighlightBrush brush for the check mark and pressed status. You can override these in your Flyout resources like this

<Style TargetType="{x:Type CheckBox}"
        BasedOn="{StaticResource MetroCheckBox}">
    <Style.Resources>
        <SolidColorBrush x:Key="HighlightBrush" Color="{DynamicResource AccentColor}" />
    </Style.Resources>
</Style>

(or whatever color you need)

Hope this helps.

0reactions
daipluspluscommented, Jan 25, 2021

@timunie Ah, I’m using MahApps.Metro 2.1.1. I see the latest is 2.4.3 - so yeah, I’m a bit out of date.

Read more comments on GitHub >

github_iconTop Results From Across the Web

To do check boxes , check mark now hard to see
for several weeks now, I find the check marks in to do boxes are hard to see. The color is much lighter. Not...
Read more >
javascript - Change checkbox tickmark color
I've implemented a function to change the background color of my checkbox , but it makes the tickmark turns to color black which...
Read more >
Inside checkbox colors
black background, but you can't see the check sign since it's also black. ... window, a bit hard to see against the page's...
Read more >
Untitled
Explore and more museum, Job offer rescinded due to background check. Is home loan possible on mhada flats, Old art about melancholy, Forgiveness...
Read more >
accent-color
This demo on Glitch shows a series of checkbox controls with various accent colors. View it in a browser that supports accent-color to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found