improve formatting
This commit is contained in:
parent
c983cf206b
commit
69923dbfa3
2 changed files with 10 additions and 4 deletions
|
|
@ -18,6 +18,9 @@ StyledButton {
|
|||
|
||||
contentItem: RowLayout {
|
||||
id: row
|
||||
|
||||
spacing: 0
|
||||
|
||||
Ref {
|
||||
service: SystemInfo
|
||||
}
|
||||
|
|
@ -35,7 +38,7 @@ StyledButton {
|
|||
id: text
|
||||
|
||||
font.pixelSize: Dimensions.cpu.fontSize
|
||||
text: ` ${(SystemInfo.cpuPerc * 100).toFixed()}%`
|
||||
text: ` ${(SystemInfo.cpuPerc * 100).toFixed().toString().padStart(2, "_")}%`
|
||||
color: root.hovered ? Theme.palette.primarycontent : Theme.palette.basecontent
|
||||
|
||||
states: [
|
||||
|
|
|
|||
|
|
@ -18,6 +18,9 @@ StyledButton {
|
|||
|
||||
contentItem: RowLayout {
|
||||
id: row
|
||||
|
||||
spacing: 0
|
||||
|
||||
Ref {
|
||||
service: SystemInfo
|
||||
}
|
||||
|
|
@ -35,7 +38,7 @@ StyledButton {
|
|||
id: text
|
||||
|
||||
font.pixelSize: Dimensions.gpu.fontSize
|
||||
text: ` ${(SystemInfo.gpuPerc * 100).toFixed()}%`
|
||||
text: ` ${(SystemInfo.gpuPerc * 100).toFixed().toString().padStart(2, "_")}%`
|
||||
color: root.hovered ? Theme.palette.primarycontent : Theme.palette.basecontent
|
||||
|
||||
states: [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue