summaryrefslogtreecommitdiff
path: root/bar/Power.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-13 22:44:02 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-13 22:44:02 +0800
commit03a93a60a6c425f5e881bed01feddf7f755624a7 (patch)
tree5676a78966af4036a2c4a7374687d58b864e23df /bar/Power.qml
parent6487f0a1778efc94f192326c1048f3d05d1b408f (diff)
refactor: icons -> icon components
Diffstat (limited to 'bar/Power.qml')
-rw-r--r--bar/Power.qml42
1 files changed, 21 insertions, 21 deletions
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 {