From 1c259d7878c00592916dc6acdb6e22771b22bbf1 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 12 Jul 2025 23:21:58 +0800 Subject: finish organize --- bar/Temp.qml | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'bar/Temp.qml') diff --git a/bar/Temp.qml b/bar/Temp.qml index c2c5f1d..fb84e5a 100644 --- a/bar/Temp.qml +++ b/bar/Temp.qml @@ -2,26 +2,13 @@ import QtQuick import QtQuick.Layouts import qs.services as Services -import qs.utils +import qs.components import qs.config as Config Item { id: root - RowLayout { - Item { - Layout.fillWidth: true - } - anchors.fill: parent - spacing: Config.Bar.resourceIconTextSpacing - - Icons { - text: Config.Icons.resource.temp - } - Text { - text: Math.round(Services.Resource.cpuTemp * 100) - } - Item { - Layout.fillWidth: true - } + SimpleResource { + icon: Config.Icons.resource.temp + text: Math.round(Services.Resource.cpuTemp * 100) } } -- cgit v1.2.3