Commit e0321515 authored by Nate Graham's avatar Nate Graham
Browse files

Set "font:" not "font.pointSize:"

This ensures that the text uses the typeface that the user has
specified, in case they have customized it in ways other than simply
changing the size.
parent 459530a6
......@@ -71,7 +71,7 @@ Column {
left: parent.left
leftMargin: repeater.longestString - paintedWidth + Math.round(PlasmaCore.Units.gridUnit / 2)
}
font.pointSize: PlasmaCore.Theme.smallestFont.pointSize
font: PlasmaCore.Theme.smallestFont
horizontalAlignment: Text.AlignRight
text: details[index*2] + ": "
opacity: 0.6
......@@ -92,7 +92,7 @@ Column {
leftMargin: repeater.longestString + Math.round(PlasmaCore.Units.gridUnit / 2)
}
elide: Text.ElideRight
font.pointSize: PlasmaCore.Theme.smallestFont.pointSize
font: PlasmaCore.Theme.smallestFont
text: details[(index*2)+1]
textFormat: Text.PlainText
......
......@@ -48,7 +48,7 @@ ColumnLayout {
direction: QuickCharts.AxisLabels.VerticalBottomTop
delegate: PlasmaComponents3.Label {
text: KCoreAddons.Format.formatByteSize(QuickCharts.AxisLabels.label) + i18n("/s")
font.pointSize: PlasmaCore.Theme.smallestFont.pointSize
font: PlasmaCore.Theme.smallestFont
}
source: QuickCharts.ChartAxisSource {
chart: plotter
......@@ -109,7 +109,7 @@ ColumnLayout {
}
TextMetrics {
id: speedMetrics
font.pointSize: PlasmaCore.Theme.smallestFont.pointSize
font: PlasmaCore.Theme.smallestFont
// Measure 888.8 KiB/s
text: KCoreAddons.Format.formatByteSize(910131) + i18n("/s")
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment