Themes.xaml --> Sould it be Gray or Grey?
See original GitHub issueDescribe 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:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
(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 useen-US
spelling, especially inSystem.Drawing.Colors
where it’sGray
, notGrey
, sorry: https://docs.microsoft.com/en-us/dotnet/api/system.drawing.color.gray?view=netcore-3.1I feel a small insignificant cringe in my head whenever I review Unity (game-engine) code because they named one their main interfaces
Behaviour
rather thanBehavior
- not at all because it’s noten-GB
(oren-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 wonderfulMahApps.Metro
library.I can imagine a non-native English speaker who might be completely oblivious to the differences between
Grey
andGray
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.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:
…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…
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: