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.

Themes.xaml --> Sould it be Gray or Grey?

See original GitHub issue

Describe the bug I really like the way the theme resources are called now, because it is more intuitive. But what i don’t understand is, the Name of the Gray Brushes.

Have a look in the file Theme.xaml:

    <SolidColorBrush x:Key="MahApps.Brushes.SemiTransparentGrey" Color="#40808080" options:Freeze="True" />

[....]

    <SolidColorBrush x:Key="MahApps.Brushes.Gray1" Color="{StaticResource MahApps.Colors.Gray1}" options:Freeze="True" />

To Reproduce Just have a look here: https://github.com/MahApps/MahApps.Metro/blob/develop/src/MahApps.Metro/Styles/Themes/Theme.Template.xaml

Expected behavior I am not a native english speaker, so I cannot tell you which spelling for gray or grey is the correct version. But we should use only one version imo.

Screenshots If applicable, add screenshots to help explain your problem.

Environment(please complete the following information):

  • MahApps.Metro version 2.0.0 latest alpha

Happy coding Tim

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
daipluspluscommented, Jun 17, 2020

(I’ll preface my answer by saying I’m British myself, albeit living in Microsoft’s back-yard in Redmond)

Putting national-pride aside - the official .NET Framework Style Guidelines do make it clear that en-US spelling should always be preferred, and because it’s consistent with the main .NET class libraries which use en-US spelling, especially in System.Drawing.Colors where it’s Gray, not Grey, sorry: https://docs.microsoft.com/en-us/dotnet/api/system.drawing.color.gray?view=netcore-3.1

I feel a small insignificant cringe in my head whenever I review Unity (game-engine) code because they named one their main interfaces Behaviour rather than Behavior - not at all because it’s not en-GB (or en-AU, en-CA etc), but because of the fact it’s inconsistent - and I’d rather not feel the same way when I’m using the otherwise wonderful MahApps.Metro library.

I can imagine a non-native English speaker who might be completely oblivious to the differences between Grey and Gray who is converting WinForms+GDI code to WPF+MahApps.Metro at 3am and just pounding their head on the keyboard because their code won’t compile because they didn’t expect something as simple as colour names to be arbitrarily different compared to the rest of the .NET library ecosystem.

I vote for grey being a British English speaker 😃 too much Americanisation of our language going on lol 😉

If we want MahApps.Metro to counter Americanism (I won’t go as far as saying “cultural imperialism”[1]) in the software industry it should be by embodying the best parts of British values, not something as patently silly as spelling. Pink Floyd said it best in 1973:

Hanging on in quiet desperation is the English way

…but I’ll also settle for the MahApps.Metro library including an animated GIF of Queen Liz and her corgis as an easter-egg hidden inside the main assembly.

[1] And that would be inexcusable coming from me as someone who directly-indirectly benefited from the spoils of the days of Empire…

1reaction
makingblokecommented, Aug 27, 2019

Hey we’ve got to give them some concession 😃 Us Brits invented the language - the Americans bastardised a dialect lol 😃

On Tue, 27 Aug 2019 at 14:26, Amaury Levé notifications@github.com wrote:

Usually in IT american english wins over british 😉

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MahApps/MahApps.Metro/issues/3575?email_source=notifications&email_token=ABPMCPNY364WBSCIIYU46NTQGUTQXA5CNFSM4IMYPFNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5HXEJQ#issuecomment-525300262, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPMCPLQR7EC35URZHY7R3DQGUTQXANCNFSM4IMYPFNA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

WPF color definitions confusion
Why is in WPF the color "Gray" darker then the color "DarkGray". My logic says that "DarkGray" shoud be darker. Should it not...
Read more >
Contrast themes - Windows apps
Contrast themes use a small palette of colors (with a contrast ratio of ... In App.xaml, create a ThemeDictionaries collection with both a ......
Read more >
XAML theme resources - Windows apps
There are 3 themes that the XAML framework supports: "Light", "Dark", and "HighContrast". Prerequisites: This topic assumes that you have read ...
Read more >
Material Theme - Telerik UI for WPF - Documentation
The article shows the Telerik WPF Material theme and its features and colors. ... for the background color to pass through since it...
Read more >
10 Visual Studio 2022 Themes you Should Try (Free ...
This is a free theme pack created by Microsoft and has more than 10 different themes (black/dark, white/light, red and more). These themes...
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