sysstat-panel: fixed auxiliary color to be similar to ngraph + some syntax tweak

This commit is contained in:
Lemmy
2026-02-09 12:52:01 -05:00
parent 1548b1ea9e
commit ef95b3128a
@@ -90,7 +90,7 @@ SmartPanel {
}
NText {
text: `${Math.round(SystemStatService.cpuUsage)}% ${SystemStatService.cpuFreq.replace(/[^0-9.]/g, "")} GHz`
text: `${Math.round(SystemStatService.cpuUsage)}% (${SystemStatService.cpuFreq.replace(/[^0-9.]/g, "")} GHz)`
pointSize: Style.fontSizeXS
color: Color.mPrimary
font.family: Settings.data.ui.fontFixed
@@ -99,13 +99,13 @@ SmartPanel {
NIcon {
icon: "cpu-temperature"
pointSize: Style.fontSizeXS
color: Color.mError
color: Color.mSecondary
}
NText {
text: `${Math.round(SystemStatService.cpuTemp)}°C`
pointSize: Style.fontSizeXS
color: Color.mError
color: Color.mSecondary
font.family: Settings.data.ui.fontFixed
Layout.rightMargin: Style.marginS
}
@@ -164,7 +164,7 @@ SmartPanel {
}
NText {
text: `${Math.round(SystemStatService.memPercent)}% ${SystemStatService.formatGigabytes(SystemStatService.memGb).replace(/[^0-9.]/g, "")} GB`
text: `${Math.round(SystemStatService.memPercent)}% (${SystemStatService.formatGigabytes(SystemStatService.memGb).replace(/[^0-9.]/g, "")} GB)`
pointSize: Style.fontSizeXS
color: Color.mPrimary
font.family: Settings.data.ui.fontFixed
@@ -230,13 +230,13 @@ SmartPanel {
NIcon {
icon: "upload-speed"
pointSize: Style.fontSizeXS
color: Color.mError
color: Color.mSecondary
}
NText {
text: SystemStatService.formatSpeed(SystemStatService.txSpeed).replace(/([0-9.]+)([A-Za-z]+)/, "$1 $2") + "/s"
pointSize: Style.fontSizeXS
color: Color.mError
color: Color.mSecondary
font.family: Settings.data.ui.fontFixed
}