-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font Naming Convention #3584
Comments
@punker76 if you agree with this, I can create a PR to clean it up. |
/cc @Evangelink WDYT? |
Yeah :D |
Should I go ahead and create a PR, @punker76 & @Evangelink? And if so, would you like me to break out the namespace a bit more to make room for MUI, perhaps like so:
|
That's ok on my side @amkuchta! Regarding the |
I just think it would be nice to have all of the names go to the same depth, and |
- MA.M font namespacing was inconsistent between sizes and families - This commit places "MahApps.Fonts" first, followed by "Size" or "Family" - Further granularity is applied for specificity (e.g. "Content", "Header") - Items previously named "Default" are now "Base" - "Default" is added to the end of all items except Win10 ToggleSwitches to allow for future styles - Items such as "DialogTitle" and "FlyoutHeader" are separated (e.g. "Dialog.Title", "Flyout.Header") - Resolves MahApps#3584
- MA.M font namespacing was inconsistent between sizes and families - This commit places "MahApps.Fonts" first, followed by "Size" or "Family" - Further granularity is applied for specificity (e.g. "Content", "Header") - Items previously named "Default" are now "Base" - "Default" is added to the end of all items except Win10 ToggleSwitches to allow for future styles - Items such as "DialogTitle" and "FlyoutHeader" are separated (e.g. "Dialog.Title", "Flyout.Header") - Resolves MahApps#3584
- MA.M font namespacing was inconsistent between sizes and families - This commit places "MahApps.Fonts" first, followed by "Size" or "Family" - Further granularity is applied for specificity (e.g. "Content", "Header") - Items previously named "Default" are now "Base" - "Default" is added to the end of all items except Win10 ToggleSwitches to allow for future styles - Items such as "DialogTitle" and "FlyoutHeader" are separated (e.g. "Dialog.Title", "Flyout.Header") - Resolves MahApps#3584
- MA.M font namespacing was inconsistent between sizes and families - This commit places "MahApps.Fonts" first, followed by "Size" or "Family" - Further granularity is applied for specificity (e.g. "Content", "Header") - Items previously named "Default" are now "Base" - "Default" is added to the end of all items except Win10 ToggleSwitches to allow for future styles - Items such as "DialogTitle" and "FlyoutHeader" are separated (e.g. "Dialog.Title", "Flyout.Header") - Resolves MahApps#3584
- MA.M font namespacing was inconsistent between sizes and families - This commit places "MahApps.Fonts" first, followed by "Size" or "Family" - Further granularity is applied for specificity (e.g. "Content", "Header") - Items previously named "Default" are now "Base" - "Default" is added to the end of all items except Win10 ToggleSwitches to allow for future styles - Items such as "DialogTitle" and "FlyoutHeader" are separated (e.g. "Dialog.Title", "Flyout.Header") - Resolves MahApps#3584
- MA.M font namespacing was inconsistent between sizes and families - This commit places "MahApps.Fonts" first, followed by "Size" or "Family" - Further granularity is applied for specificity (e.g. "Content", "Header") - Items previously named "Default" are now "Base" - "Default" is added to the end of all items except Win10 ToggleSwitches to allow for future styles - Items such as "DialogTitle" and "FlyoutHeader" are separated (e.g. "Dialog.Title", "Flyout.Header") - Resolves MahApps#3584
- MA.M font namespacing was inconsistent between sizes and families - This commit places "MahApps.Fonts" first, followed by "Size" or "Family" - Further granularity is applied for specificity (e.g. "Content", "Header") - Items previously named "Default" are now "Base" - "Default" is added to the end of all items except Win10 ToggleSwitches to allow for future styles - Items such as "DialogTitle" and "FlyoutHeader" are separated (e.g. "Dialog.Title", "Flyout.Header") - Resolves MahApps#3584
- MA.M font namespacing was inconsistent between sizes and families - This commit places "MahApps.Fonts" first, followed by "Size" or "Family" - Further granularity is applied for specificity (e.g. "Content", "Header") - Items previously named "Default" are now "Base" - "Default" is added to the end of all items except Win10 ToggleSwitches to allow for future styles - Items such as "DialogTitle" and "FlyoutHeader" are separated (e.g. "Dialog.Title", "Flyout.Header") - Resolves MahApps#3584 XamlStyler
- MA.M font namespacing was inconsistent between sizes and families - This commit places "MahApps.Fonts" first, followed by "Size" or "Family" - Further granularity is applied for specificity (e.g. "Content", "Header") - Items previously named "Default" are now "Base" - "Default" is added to the end of all items except Win10 ToggleSwitches to allow for future styles - Items such as "DialogTitle" and "FlyoutHeader" are separated (e.g. "Dialog.Title", "Flyout.Header") - Resolves MahApps#3584 XamlStyler
- MA.M font namespacing was inconsistent between sizes and families - This commit places "MahApps.Fonts" first, followed by "Size" or "Family" - Further granularity is applied for specificity (e.g. "Content", "Header") - Items previously named "Default" are now "Base" - "Default" is added to the end of all items except Win10 ToggleSwitches to allow for future styles - Items such as "DialogTitle" and "FlyoutHeader" are separated (e.g. "Dialog.Title", "Flyout.Header") - Resolves MahApps#3584 XamlStyler
- MA.M font namespacing was inconsistent between sizes and families - This commit places "MahApps.Fonts" first, followed by "Size" or "Family" - Further granularity is applied for specificity (e.g. "Content", "Header") - Items previously named "Default" are now "Base" - "Default" is added to the end of all items except Win10 ToggleSwitches to allow for future styles - Items such as "DialogTitle" and "FlyoutHeader" are separated (e.g. "Dialog.Title", "Flyout.Header") - Resolves MahApps#3584 XamlStyler
Is your feature request related to a problem? Please describe.
Looking through the new naming conventions,
Fonts
are structured as follows:MahApps.Fonts.[Family]
(e.g.MahApps.Fonts.Header
)MahApps.Sizes.Font.[Size]
(e.g.MahApps.Sizes.Font.Header
)I think that this is namespacing is inconsistent, and that a small update could make things easier for other users to follow.
Describe the solution you'd like
I suggest updating to the following naming convention for consistency:
MahApps.Font.Family.[Family]
(e.g.MahApps.Font.Family.Header
)MahApps.Font.Size.[Size]
(e.g.MahApps.Font.Size.Header
)This creates a more consistent (and therefore easier to use) namespacing.
Additional context
N/A
Closed Issues
N/A
The text was updated successfully, but these errors were encountered: