styles: Reuse font roles

This commit is contained in:
Peter Hartmann 2023-05-12 15:35:16 +02:00 committed by uwerat
parent 99cf060deb
commit 6d93cc5716
2 changed files with 11 additions and 11 deletions

View File

@ -127,10 +127,10 @@ class QSK_MATERIAL3_EXPORT QskMaterial3Skin : public QskSkin
enum FontRole
{
M3BodyMedium = QskSkin::HugeFont + 1,
M3BodyLarge,
M3HeadlineSmall,
M3LabelLarge,
M3BodyMedium = DefaultFont,
M3BodyLarge = LargeFont,
M3HeadlineSmall = SmallFont,
M3LabelLarge = HugeFont,
};
static constexpr QskAspect::Variation Filled = QskAspect::NoVariation;

View File

@ -349,14 +349,14 @@ class QSK_WINDOWS_EXPORT QskWindowsSkin : public QskSkin
enum FontRole
{
Caption = QskSkin::HugeFont + 1, // ### define QskSkin enums
Body,
BodyStrong,
BodyLarge,
Subtitle,
Title,
Caption = TinyFont,
Body = DefaultFont,
BodyStrong = SmallFont,
BodyLarge = MediumFont,
Subtitle = LargeFont,
Title = HugeFont,
TitleLarge,
Display
Display,
};
static constexpr QskAspect::Variation Standard = QskAspect::NoVariation;