summaryrefslogtreecommitdiff
path: root/bar/ActiveWindow.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-13 17:16:14 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-13 17:16:14 +0800
commitb520eb490c7b99659bdb685995e5ad4a3507cbb3 (patch)
treebc11bb0a8c48df3347cbb4766851aa6d92dc971a /bar/ActiveWindow.qml
parent8127908623a6f1737537a7b53d479bf9039a4afd (diff)
workspace more fix + activewindow]
Diffstat (limited to 'bar/ActiveWindow.qml')
-rw-r--r--bar/ActiveWindow.qml40
1 files changed, 26 insertions, 14 deletions
diff --git a/bar/ActiveWindow.qml b/bar/ActiveWindow.qml
index 25e87e2..915ee25 100644
--- a/bar/ActiveWindow.qml
+++ b/bar/ActiveWindow.qml
@@ -11,22 +11,34 @@ Item {
property var toplevel: ToplevelManager.activeToplevel
property var icon: Quickshell.iconPath(AppSearch.guessIcon(toplevel?.appId), "image-missing")
- RowLayout {
+ Rectangle {
+ // use IRect
+ implicitWidth: rowLayout.implicitWidth + General.rectMargin * 2
+ implicitHeight: rowLayout.implicitHeight + General.rectMargin * 2
anchors.centerIn: parent
- spacing: Bar.resourceIconTextSpacing
+ color: Colors.alt
+ radius: Style.rounding.smaller
- anchors.verticalCenter: parent.verticalCenter
- IconImage {
- source: root.icon
- implicitWidth: Bar.appIconSize
- implicitHeight: Bar.appIconSize
- Layout.fillHeight: true
- Layout.fillWidth: false
- Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
- }
- Text {
- // TOOD: if not exist, use lazyloader or something hide this
- text: root.toplevel?.title
+ RowLayout {
+ id: rowLayout
+ anchors.centerIn: parent
+ spacing: Bar.resourceIconTextSpacing
+
+ anchors.verticalCenter: parent.verticalCenter
+ IconImage {
+ source: root.icon
+ implicitWidth: Bar.appIconSize
+ implicitHeight: Bar.appIconSize
+ Layout.fillHeight: true
+ Layout.fillWidth: false
+ Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
+ }
+ Text {
+ // TOOD: if not exist, use lazyloader or something hide this
+ // TODO: use IText
+ font.pixelSize: General.fontSize
+ text: root.toplevel?.title
+ }
}
}
}