1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 21:45:38 -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

@@ -63,7 +63,7 @@ Rectangle {
}
Text {
StyledText {
text: BatteryService.batteryLevel + "%"
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium
@@ -116,7 +116,7 @@ Rectangle {
anchors.centerIn: parent
spacing: 2
Text {
StyledText {
id: tooltipText
text: {

View File

@@ -143,7 +143,7 @@ PanelWindow {
Row {
width: parent.width
Text {
StyledText {
text: BatteryService.batteryAvailable ? "Battery Information" : "Power Management"
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
@@ -221,7 +221,7 @@ PanelWindow {
Row {
spacing: Theme.spacingM
Text {
StyledText {
text: BatteryService.batteryLevel + "%"
font.pixelSize: Theme.fontSizeLarge
color: {
@@ -236,7 +236,7 @@ PanelWindow {
font.weight: Font.Bold
}
Text {
StyledText {
text: BatteryService.batteryStatus
font.pixelSize: Theme.fontSizeMedium
color: {
@@ -254,7 +254,7 @@ PanelWindow {
}
Text {
StyledText {
text: {
let time = BatteryService.formatTimeRemaining();
if (time !== "Unknown")
@@ -298,14 +298,14 @@ PanelWindow {
spacing: Theme.spacingS
anchors.verticalCenter: parent.verticalCenter
Text {
StyledText {
text: "No Battery Detected"
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium
}
Text {
StyledText {
text: "Power profile management is available"
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceTextMedium
@@ -323,7 +323,7 @@ PanelWindow {
spacing: Theme.spacingM
visible: BatteryService.batteryAvailable
Text {
StyledText {
text: "Battery Details"
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
@@ -339,14 +339,14 @@ PanelWindow {
spacing: 2
width: (parent.width - Theme.spacingXL) / 2
Text {
StyledText {
text: "Health"
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceTextMedium
font.weight: Font.Medium
}
Text {
StyledText {
text: BatteryService.batteryHealth
font.pixelSize: Theme.fontSizeMedium
color: {
@@ -365,14 +365,14 @@ PanelWindow {
spacing: 2
width: (parent.width - Theme.spacingXL) / 2
Text {
StyledText {
text: "Capacity"
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceTextMedium
font.weight: Font.Medium
}
Text {
StyledText {
text: BatteryService.batteryCapacity > 0 ? BatteryService.batteryCapacity.toFixed(1) + " Wh" : "Unknown"
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
@@ -390,7 +390,7 @@ PanelWindow {
spacing: Theme.spacingM
visible: true
Text {
StyledText {
text: "Power Profile"
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
@@ -429,14 +429,14 @@ PanelWindow {
spacing: 2
anchors.verticalCenter: parent.verticalCenter
Text {
StyledText {
text: Theme.getPowerProfileLabel(modelData)
font.pixelSize: Theme.fontSizeMedium
color: root.isActiveProfile(modelData) ? Theme.primary : Theme.surfaceText
font.weight: root.isActiveProfile(modelData) ? Font.Medium : Font.Normal
}
Text {
StyledText {
text: Theme.getPowerProfileDescription(modelData)
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceTextMedium
@@ -492,14 +492,14 @@ PanelWindow {
spacing: 2
anchors.verticalCenter: parent.verticalCenter
Text {
StyledText {
text: "Power Profile Degradation"
font.pixelSize: Theme.fontSizeMedium
color: Theme.error
font.weight: Font.Medium
}
Text {
StyledText {
text: (typeof PowerProfiles !== "undefined") ? PerformanceDegradationReason.toString(PowerProfiles.degradationReason) : ""
font.pixelSize: Theme.fontSizeSmall
color: Qt.rgba(Theme.error.r, Theme.error.g, Theme.error.b, 0.8)

View File

@@ -1,6 +1,7 @@
import QtQuick
import Quickshell
import qs.Common
import qs.Widgets
Rectangle {
id: root
@@ -28,15 +29,14 @@ Rectangle {
anchors.centerIn: parent
spacing: Theme.spacingS
Text {
StyledText {
text: Prefs.use24HourClock ? Qt.formatTime(root.currentDate, "H:mm") : Qt.formatTime(root.currentDate, "h:mm AP")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
font.weight: Font.Medium
anchors.verticalCenter: parent.verticalCenter
}
Text {
StyledText {
text: "•"
font.pixelSize: Theme.fontSizeMedium
color: Theme.outlineButton
@@ -44,11 +44,10 @@ Rectangle {
visible: !compactMode
}
Text {
StyledText {
text: Qt.formatDate(root.currentDate, "ddd d")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
font.weight: Font.Medium
anchors.verticalCenter: parent.verticalCenter
visible: !compactMode
}

View File

@@ -60,7 +60,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
Text {
StyledText {
text: (SysMonitorService.cpuUsage || 0).toFixed(0) + "%"
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium

View File

@@ -1,6 +1,7 @@
import QtQuick
import qs.Common
import qs.Services
import qs.Widgets
Rectangle {
id: root
@@ -31,7 +32,7 @@ Rectangle {
anchors.centerIn: parent
spacing: Theme.spacingS
Text {
StyledText {
id: appText
text: FocusedWindowService.focusedAppName || ""
@@ -44,7 +45,7 @@ Rectangle {
width: Math.min(implicitWidth, compactMode ? 80 : 180)
}
Text {
StyledText {
text: "•"
font.pixelSize: Theme.fontSizeMedium
color: Theme.outlineButton
@@ -52,7 +53,7 @@ Rectangle {
visible: appText.text && titleText.text
}
Text {
StyledText {
id: titleText
text: FocusedWindowService.focusedWindowTitle || ""

View File

@@ -94,7 +94,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
Text {
StyledText {
id: mediaText
anchors.verticalCenter: parent.verticalCenter

View File

@@ -60,7 +60,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
Text {
StyledText {
text: (SysMonitorService.memoryUsage || 0).toFixed(0) + "%"
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium

View File

@@ -4,6 +4,7 @@ import Quickshell
import Quickshell.Wayland
import Quickshell.Widgets
import qs.Common
import qs.Widgets
PanelWindow {
id: root
@@ -117,7 +118,7 @@ PanelWindow {
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.spacingXS
Text {
StyledText {
text: modelData.text || ""
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText

View File

@@ -34,11 +34,10 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
Text {
StyledText {
text: (Prefs.useFahrenheit ? WeatherService.weather.tempF : WeatherService.weather.temp) + "°" + (Prefs.useFahrenheit ? "F" : "C")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
anchors.verticalCenter: parent.verticalCenter
}

View File

@@ -3,6 +3,7 @@ import QtQuick.Controls
import Quickshell
import qs.Common
import qs.Services
import qs.Widgets
Rectangle {
id: root
@@ -128,7 +129,7 @@ Rectangle {
}
// Show index for placeholders if Prefs.showWorkspaceIndex is true, otherwise show a subtle dot
Text {
StyledText {
visible: Prefs.showWorkspaceIndex
anchors.centerIn: parent
text: isPlaceholder ? sequentialNumber : sequentialNumber