From 03a93a60a6c425f5e881bed01feddf7f755624a7 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 13 Jul 2025 22:44:02 +0800 Subject: refactor: icons -> icon components --- bar/Power.qml | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'bar/Power.qml') diff --git a/bar/Power.qml b/bar/Power.qml index 1eea3e1..a1d50f5 100644 --- a/bar/Power.qml +++ b/bar/Power.qml @@ -3,7 +3,7 @@ import QtQuick.Layouts import qs.services as Services import qs.utils -import qs.config as Config +import qs.config import qs.components Item { @@ -18,11 +18,11 @@ Item { verticalCenter: parent.verticalCenter horizontalCenter: parent.horizontalCenter } - implicitWidth: layout.implicitWidth + Config.General.rectMargin * 2 - implicitHeight: Config.Bar.height - Config.General.rectMargin + implicitWidth: layout.implicitWidth + General.rectMargin * 2 + implicitHeight: Bar.height - General.rectMargin - color: Config.Colors.alt - radius: Config.Style.rounding.large + color: Colors.alt + radius: Style.rounding.large RowLayout { id: layout @@ -30,32 +30,32 @@ Item { Layout.fillWidth: true } anchors.fill: parent - spacing: Config.Bar.resourceIconTextSpacing + spacing: Bar.resourceIconTextSpacing - Icons { - text: Config.Icons.power.shutdown - font.pixelSize: Config.Style.font.size.large + Icon { + text: Icons.power.shutdown + font.pixelSize: Style.font.size.large color: Qt.rgba(191, 97, 106, 1) } - // Icons { - // text: Config.Icons.power.dpms - // font.pixelSize: Config.Style.fontSize.large + // Icon { + // text: Icons.power.dpms + // font.pixelSize: Style.fontSize.large // } // - // Icons { - // text: Config.Icons.power.lock - // font.pixelSize: Config.Style.fontSize.large + // Icon { + // text: Icons.power.lock + // font.pixelSize: Style.fontSize.large // } // - // Icons { - // text: Config.Icons.power.suspend - // font.pixelSize: Config.Style.fontSize.large + // Icon { + // text: Icons.power.suspend + // font.pixelSize: Style.fontSize.large // } // - // Icons { - // text: Config.Icons.power.reboot - // font.pixelSize: Config.Style.fontSize.large + // Icon { + // text: Icons.power.reboot + // font.pixelSize: Style.fontSize.large // } Item { -- cgit v1.2.3