diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-14 13:41:25 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-14 13:41:25 +0800 |
| commit | ef063de5341a5459389ea474d12e5db03e9af67d (patch) | |
| tree | 584efe93dfc2abd899f44347e05a0fbe0cd7758c | |
| parent | e5afd6e1fe24a898bca900fa32e776a849479df2 (diff) | |
activewindow: move rect back
| -rw-r--r-- | bar/ActiveWindow.qml | 8 | ||||
| -rw-r--r-- | bar/Bar.qml | 13 |
2 files changed, 8 insertions, 13 deletions
diff --git a/bar/ActiveWindow.qml b/bar/ActiveWindow.qml index 1debc24..932ba4c 100644 --- a/bar/ActiveWindow.qml +++ b/bar/ActiveWindow.qml @@ -6,22 +6,24 @@ import Quickshell.Widgets import qs.components import qs.config -Item { +Rectangle { id: root property var toplevel: Hyprland.activeToplevel property var icon: Quickshell.iconPath(AppSearch.guessIcon(toplevel?.wayland?.appId), "image-missing") // use IRect - implicitWidth: rowLayout.implicitWidth + General.rectMargin * 2 + implicitWidth: rowLayout.implicitWidth + General.rectMargin * 4 implicitHeight: rowLayout.implicitHeight + General.rectMargin * 2 anchors.centerIn: parent + color: Colors.alt + radius: Style.rounding.smaller + RowLayout { id: rowLayout anchors.centerIn: parent spacing: Bar.resourceIconTextSpacing - anchors.verticalCenter: parent.verticalCenter IconImage { source: root.icon implicitWidth: Bar.appIconSize diff --git a/bar/Bar.qml b/bar/Bar.qml index f35c07b..1146c8d 100644 --- a/bar/Bar.qml +++ b/bar/Bar.qml @@ -72,18 +72,11 @@ Scope { } } - Rectangle { + Item { id: centerRow anchors.centerIn: parent - width: activeWindow.implicitWidth + General.rectMargin * 2 - height: activeWindow.implicitHeight - - color: Colors.alt - radius: Style.rounding.smaller - ActiveWindow { - id: activeWindow - anchors.fill: parent - } + + ActiveWindow {} } Rectangle { |
