Mahapps.metro: Badge must have a different look when disabled

Created on 25 May 2017  路  5Comments  路  Source: MahApps/MahApps.Metro

What steps will reproduce this issue?

The Badge has no diffent appearance if the object itself or any parent visual element are disabled:

Expected outcome

Badge should look different if disabled

|current|proposed|
|---|---|
|badge-currentbehavior|badge-newbehavior|

Implementation

https://github.com/xxMUROxx/MahApps.Metro/tree/feature/Badge-Disabled-Style

If desired I will create a PR with the above linked branch.

Feature Request

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.

badgebackgroundgray

All 5 comments

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.

badgebackgroundgray

@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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StickNitro picture StickNitro  路  11Comments

feinstein picture feinstein  路  18Comments

kayone picture kayone  路  10Comments

AndrzejKl picture AndrzejKl  路  12Comments

webprofusion-chrisc picture webprofusion-chrisc  路  11Comments