The Badge has no diffent appearance if the object itself or any parent visual element are disabled:
Badge should look different if disabled
|current|proposed|
|---|---|
||
|
https://github.com/xxMUROxx/MahApps.Metro/tree/feature/Badge-Disabled-Style
If desired I will create a PR with the above linked branch.
Can a badge be disabled? It's not interactive anyway. The number shown on the badge is still relevant.
Anyway, if a different appearance is desired, I wouldn't change the opacity but the color. The button shining through the badge in your proposal looks strange. I would prefer a solid badge background, something gray-ish maybe.
I'm with @thoemmi (I'm glad I wasn't the only one who took issue with the button showing through). I think a grey would be awesome, but it would have to be a different grey than the control that the badge adorns
@thoemmi since a badge has no command, yes it is not interactive. But it looks strange if the parent control is disabled and the badge has the bright color (accented if default).
I like your and @amkuchta's idea.
@punker76 what do you think?
@xxMUROxx I've added your changes from your branch. thx! 馃憤 I only renamed the brush to MahApps.Metro.Brushes.Badged.DisabledBackgroundBrush
Most helpful comment
@thoemmi since a badge has no command, yes it is not interactive. But it looks strange if the parent control is disabled and the badge has the bright color (accented if default).
I like your and @amkuchta's idea.