From e8693ce20bec91364a078619a179cb8ab5a269a3 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 14 Jul 2025 13:01:27 +0800 Subject: fixup topbar --- bar/ActiveWindow.qml | 3 +-- bar/Cpu.qml | 2 +- bar/Gpu.qml | 2 +- bar/Temp.qml | 2 +- config/Bar.qml | 2 +- config/General.qml | 2 +- 6 files changed, 6 insertions(+), 7 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" } } diff --git a/config/Bar.qml b/config/Bar.qml index c01d934..99e1760 100644 --- a/config/Bar.qml +++ b/config/Bar.qml @@ -5,7 +5,7 @@ import Quickshell Singleton { id: root - readonly property int height: 35 + readonly property int height: 40 readonly property int borderRadius: Style.rounding.small readonly property int topMargin: Style.spacing.small readonly property int leftMargin: Style.spacing.larger diff --git a/config/General.qml b/config/General.qml index f66d5d5..a42894b 100644 --- a/config/General.qml +++ b/config/General.qml @@ -9,7 +9,7 @@ Singleton { readonly property int resourceUpdateInterval: 1 - readonly property real iconSize: Style.font.size.small ?? 16 + readonly property real iconSize: Style.font.size.larger ?? 16 readonly property string cpuThermalPath: "/sys/class/thermal/thermal_zone0/temp" -- cgit v1.2.3