quicksettings: Fix delegate text size regression

This commit is contained in:
Devin Lin 2022-04-28 20:15:13 -04:00
parent 02bc67af81
commit 151bb9dbfc
2 changed files with 7 additions and 7 deletions

View file

@ -65,18 +65,18 @@ QuickSettingsDelegate {
Layout.fillWidth: true Layout.fillWidth: true
elide: Text.ElideRight elide: Text.ElideRight
text: root.text text: root.text
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.8 // TODO base height off of size of delegate font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.75 // TODO base height off of size of delegate
font.weight: Font.Bold font.weight: Font.Bold
} }
Components.MarqueeLabel { Components.MarqueeLabel {
// if no status is given, just use On/Off // if no status is given, just use On/Off
inputText: status ? status : (enabled ? i18n("On") : i18n("Off")) inputText: status ? status : (enabled ? i18n("On") : i18n("Off"))
rightPadding: root.rightPadding rightPadding: 0 // root.rightPadding
opacity: 0.6
Layout.fillWidth: true Layout.fillWidth: true
opacity: 0.6 font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.75
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.8
} }
} }
} }

View file

@ -27,9 +27,9 @@ PlasmaComponents.Label {
property int step: 0 property int step: 0
TextMetrics { TextMetrics {
id: txtMeter id: txtMeter
font.pointSize: root.font.pointSize font.pointSize: root.font.pointSize
text: inputText text: inputText
} }
Timer { Timer {