1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-25 05:52:50 -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

@@ -80,7 +80,7 @@ Column {
}
Text {
StyledText {
width: parent.width - 80
height: 40
text: Qt.formatDate(displayDate, "MMMM yyyy")
@@ -134,7 +134,7 @@ Column {
height: 32
color: "transparent"
Text {
StyledText {
anchors.centerIn: parent
text: modelData
font.pixelSize: Theme.fontSizeSmall
@@ -188,7 +188,7 @@ Column {
radius: Theme.cornerRadiusSmall
clip: true
Text {
StyledText {
anchors.centerIn: parent
text: dayDate.getDate()
font.pixelSize: Theme.fontSizeMedium

View File

@@ -75,7 +75,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
Text {
StyledText {
text: hasEvents ? (Qt.formatDate(selectedDate, "MMM d") + " • " + (selectedDateEvents.length === 1 ? "1 event" : selectedDateEvents.length + " events")) : Qt.formatDate(selectedDate, "MMM d")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
@@ -98,7 +98,7 @@ Rectangle {
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
StyledText {
text: "No events"
font.pixelSize: Theme.fontSizeMedium
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.5)
@@ -179,7 +179,7 @@ Rectangle {
anchors.rightMargin: Theme.spacingM
spacing: 6
Text {
StyledText {
width: parent.width
text: modelData.title
font.pixelSize: Theme.fontSizeMedium
@@ -208,7 +208,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
Text {
StyledText {
text: {
if (modelData.allDay) {
return "All day";
@@ -244,7 +244,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
Text {
StyledText {
text: modelData.location
font.pixelSize: Theme.fontSizeSmall
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.7)

View File

@@ -96,7 +96,7 @@ Rectangle {
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
StyledText {
text: "No Media Playing"
font.pixelSize: Theme.fontSizeMedium
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.7)
@@ -167,7 +167,7 @@ Rectangle {
height: parent.height
spacing: Theme.spacingXS
Text {
StyledText {
text: activePlayer && activePlayer.trackTitle || lastValidTitle || "Unknown Track"
onTextChanged: {
if (activePlayer && activePlayer.trackTitle)
@@ -181,7 +181,7 @@ Rectangle {
elide: Text.ElideRight
}
Text {
StyledText {
text: activePlayer && activePlayer.trackArtist || lastValidArtist || "Unknown Artist"
onTextChanged: {
if (activePlayer && activePlayer.trackArtist)
@@ -194,7 +194,7 @@ Rectangle {
elide: Text.ElideRight
}
Text {
StyledText {
text: activePlayer && activePlayer.trackAlbum || lastValidAlbum || ""
onTextChanged: {
if (activePlayer && activePlayer.trackAlbum)

View File

@@ -33,7 +33,7 @@ Rectangle {
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
StyledText {
text: "No Weather Data"
font.pixelSize: Theme.fontSizeMedium
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.7)
@@ -70,7 +70,7 @@ Rectangle {
spacing: Theme.spacingXS
anchors.verticalCenter: parent.verticalCenter
Text {
StyledText {
text: (Prefs.useFahrenheit ? WeatherService.weather.tempF : WeatherService.weather.temp) + "°" + (Prefs.useFahrenheit ? "F" : "C")
font.pixelSize: Theme.fontSizeXLarge
color: Theme.surfaceText
@@ -90,7 +90,7 @@ Rectangle {
}
Text {
StyledText {
text: WeatherService.weather.city || ""
font.pixelSize: Theme.fontSizeMedium
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.7)
@@ -119,7 +119,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
Text {
StyledText {
text: WeatherService.weather.humidity ? WeatherService.weather.humidity + "%" : "--"
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
@@ -138,7 +138,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
Text {
StyledText {
text: WeatherService.weather.wind || "--"
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
@@ -157,7 +157,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
Text {
StyledText {
text: WeatherService.weather.sunrise || "--"
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
@@ -176,7 +176,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
Text {
StyledText {
text: WeatherService.weather.sunset || "--"
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText