mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-16 17:22:45 -04:00
text: change default rendering back to Qt
This commit is contained in:
@@ -17,30 +17,44 @@ StyledText {
|
||||
|
||||
font.pixelSize: {
|
||||
switch (style) {
|
||||
case Typography.Style.Title: return Theme.fontSizeXLarge
|
||||
case Typography.Style.Subtitle: return Theme.fontSizeLarge
|
||||
case Typography.Style.Body: return Theme.fontSizeMedium
|
||||
case Typography.Style.Caption: return Theme.fontSizeSmall
|
||||
case Typography.Style.Button: return Theme.fontSizeSmall
|
||||
default: return Theme.fontSizeMedium
|
||||
case Typography.Style.Title:
|
||||
return Theme.fontSizeXLarge;
|
||||
case Typography.Style.Subtitle:
|
||||
return Theme.fontSizeLarge;
|
||||
case Typography.Style.Body:
|
||||
return Theme.fontSizeMedium;
|
||||
case Typography.Style.Caption:
|
||||
return Theme.fontSizeSmall;
|
||||
case Typography.Style.Button:
|
||||
return Theme.fontSizeSmall;
|
||||
default:
|
||||
return Theme.fontSizeMedium;
|
||||
}
|
||||
}
|
||||
|
||||
font.weight: {
|
||||
switch (style) {
|
||||
case Typography.Style.Title: return Font.Bold
|
||||
case Typography.Style.Subtitle: return Font.Medium
|
||||
case Typography.Style.Body: return Font.Normal
|
||||
case Typography.Style.Caption: return Font.Normal
|
||||
case Typography.Style.Button: return Font.Medium
|
||||
default: return Font.Normal
|
||||
case Typography.Style.Title:
|
||||
return Font.Bold;
|
||||
case Typography.Style.Subtitle:
|
||||
return Font.Medium;
|
||||
case Typography.Style.Body:
|
||||
return Font.Normal;
|
||||
case Typography.Style.Caption:
|
||||
return Font.Normal;
|
||||
case Typography.Style.Button:
|
||||
return Font.Medium;
|
||||
default:
|
||||
return Font.Normal;
|
||||
}
|
||||
}
|
||||
|
||||
color: {
|
||||
switch (style) {
|
||||
case Typography.Style.Caption: return Theme.surfaceVariantText
|
||||
default: return Theme.surfaceText
|
||||
case Typography.Style.Caption:
|
||||
return Theme.surfaceVariantText;
|
||||
default:
|
||||
return Theme.surfaceText;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user