diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-14 13:01:27 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-14 13:01:27 +0800 |
| commit | e8693ce20bec91364a078619a179cb8ab5a269a3 (patch) | |
| tree | f8bc855759f990e090b955b33871a0e74cc32bf4 /bar | |
| parent | 03a93a60a6c425f5e881bed01feddf7f755624a7 (diff) | |
fixup topbar
Diffstat (limited to 'bar')
| -rw-r--r-- | bar/ActiveWindow.qml | 3 | ||||
| -rw-r--r-- | bar/Cpu.qml | 2 | ||||
| -rw-r--r-- | bar/Gpu.qml | 2 | ||||
| -rw-r--r-- | bar/Temp.qml | 2 |
4 files changed, 4 insertions, 5 deletions
diff --git a/bar/ActiveWindow.qml b/bar/ActiveWindow.qml index 416c10e..1debc24 100644 --- a/bar/ActiveWindow.qml +++ b/bar/ActiveWindow.qml @@ -30,9 +30,8 @@ Item { Layout.fillWidth: false Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter } - Text { + IText { // TOOD: if not exist, use lazyloader or something hide this - // TODO: use IText font.pixelSize: General.fontSize text: root?.toplevel?.title || "" } diff --git a/bar/Cpu.qml b/bar/Cpu.qml index ee39f54..5f54a9b 100644 --- a/bar/Cpu.qml +++ b/bar/Cpu.qml @@ -12,7 +12,7 @@ Item { SimpleResource { id: resource - text: Math.round(Services.Resource.cpuUsage * 100) + text: Math.round(Services.Resource.cpuUsage * 100) + "%" icon: Icons.resource.cpu } } diff --git a/bar/Gpu.qml b/bar/Gpu.qml index e3acc27..8e701db 100644 --- a/bar/Gpu.qml +++ b/bar/Gpu.qml @@ -12,6 +12,6 @@ Item { SimpleResource { id: resource icon: Config.Icons.resource.gpu - text: Services.Resource.gpuUsage + text: Services.Resource.gpuUsage + "%" } } diff --git a/bar/Temp.qml b/bar/Temp.qml index 3a6c07b..6daa5ae 100644 --- a/bar/Temp.qml +++ b/bar/Temp.qml @@ -12,6 +12,6 @@ Item { SimpleResource { id: resource icon: Config.Icons.resource.temp - text: Math.round(Services.Resource.cpuTemp * 100) + text: Math.round(Services.Resource.cpuTemp * 100) + "°C" } } |
