1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

Implement font family changes

This commit is contained in:
bbedward
2025-07-27 23:25:12 -04:00
parent 420891e047
commit b119fd511e
56 changed files with 422 additions and 246 deletions

View File

@@ -59,14 +59,14 @@ Rectangle {
anchors.rightMargin: Theme.spacingM
spacing: Theme.spacingXS
Text {
StyledText {
text: root.text
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
font.weight: Font.Medium
}
Text {
StyledText {
text: root.description
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
@@ -128,7 +128,7 @@ Rectangle {
visible: name !== ""
}
Text {
StyledText {
text: root.currentValue
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
@@ -232,7 +232,7 @@ Rectangle {
visible: name !== ""
}
Text {
StyledText {
anchors.verticalCenter: parent.verticalCenter
text: modelData
font.pixelSize: Theme.fontSizeMedium

View File

@@ -116,7 +116,7 @@ GridView {
border.width: 1
border.color: Theme.primarySelected
Text {
StyledText {
anchors.centerIn: parent
text: (model.name && model.name.length > 0) ? model.name.charAt(0).toUpperCase() : "A"
font.pixelSize: Math.min(28, parent.width * 0.5)
@@ -128,7 +128,7 @@ GridView {
}
Text {
StyledText {
anchors.horizontalCenter: parent.horizontalCenter
width: gridView.cellWidth - 12
text: model.name || ""

View File

@@ -103,7 +103,7 @@ ListView {
border.width: 1
border.color: Theme.primarySelected
Text {
StyledText {
anchors.centerIn: parent
text: (model.name && model.name.length > 0) ? model.name.charAt(0).toUpperCase() : "A"
font.pixelSize: iconSize * 0.4
@@ -120,7 +120,7 @@ ListView {
width: parent.width - iconSize - Theme.spacingL
spacing: Theme.spacingXS
Text {
StyledText {
width: parent.width
text: model.name || ""
font.pixelSize: Theme.fontSizeLarge
@@ -129,7 +129,7 @@ ListView {
elide: Text.ElideRight
}
Text {
StyledText {
width: parent.width
text: model.comment || "Application"
font.pixelSize: Theme.fontSizeMedium

View File

@@ -276,7 +276,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter
}
Text {
StyledText {
text: model.name || "Unknown"
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
@@ -309,7 +309,7 @@ Item {
}
Text {
StyledText {
anchors.centerIn: parent
text: root.isLoading ? "Searching..." : "No locations found"
font.pixelSize: Theme.fontSizeMedium

View File

@@ -102,7 +102,7 @@ Item {
visible: (sliderMouseArea.containsMouse && slider.showValue) || (slider.isDragging && slider.showValue)
opacity: visible ? 1 : 0
Text {
StyledText {
id: tooltipText
text: slider.value + slider.unit

View File

@@ -50,7 +50,7 @@ Item {
visible: parent.parent.hasIcon
}
Text {
StyledText {
text: modelData.text || ""
font.pixelSize: Theme.fontSizeMedium
color: parent.parent.isActive ? Theme.primary : Theme.surfaceText

View File

@@ -186,7 +186,7 @@ StyledRect {
}
Text {
StyledText {
id: placeholderLabel
anchors.fill: textInput

View File

@@ -6,6 +6,8 @@ Text {
color: Theme.surfaceText
font.pixelSize: Appearance.fontSize.normal
font.family: Prefs.fontFamily
font.weight: Prefs.fontWeight
wrapMode: Text.WordWrap
elide: Text.ElideRight
verticalAlignment: Text.AlignVCenter