summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-14 13:01:27 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-14 13:01:27 +0800
commite8693ce20bec91364a078619a179cb8ab5a269a3 (patch)
treef8bc855759f990e090b955b33871a0e74cc32bf4
parent03a93a60a6c425f5e881bed01feddf7f755624a7 (diff)
fixup topbar
-rw-r--r--bar/ActiveWindow.qml3
-rw-r--r--bar/Cpu.qml2
-rw-r--r--bar/Gpu.qml2
-rw-r--r--bar/Temp.qml2
-rw-r--r--config/Bar.qml2
-rw-r--r--config/General.qml2
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"