summaryrefslogtreecommitdiff
path: root/bar/ActiveWindow.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-12 18:15:32 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-12 18:15:32 +0800
commit299bf0bae8be6ab505f97d6aba4f82e4e6f96f62 (patch)
treee1a72a68b5c2fae7fab097a80462233878a3231c /bar/ActiveWindow.qml
parentce5f49a9324bceccab821c1d2ebf3f72bdfc09ea (diff)
lot of minor improvement added utils and working networkusage
Diffstat (limited to 'bar/ActiveWindow.qml')
-rw-r--r--bar/ActiveWindow.qml30
1 files changed, 21 insertions, 9 deletions
diff --git a/bar/ActiveWindow.qml b/bar/ActiveWindow.qml
index efdbfd9..4cb1a08 100644
--- a/bar/ActiveWindow.qml
+++ b/bar/ActiveWindow.qml
@@ -1,23 +1,35 @@
import QtQuick
+import QtQuick.Layouts
import Quickshell
import Quickshell.Wayland
import Quickshell.Widgets
import qs.utils
+import qs.config
Item {
id: root
property var toplevel: ToplevelManager.activeToplevel
property var icon: Quickshell.iconPath(AppSearch.guessIcon(toplevel?.appId), "image-missing")
+ anchors.verticalCenter: parent.verticalCenter
- IconImage {
- source: root.icon
- implicitWidth: 32
- implicitHeight: 32
- anchors.verticalCenter: parent.verticalCenter
- anchors.left: parent.left
- anchors.leftMargin: 8
+ Rectangle {
+ anchors.fill: parent
+ color: "blue"
}
- Text {
- text: root.toplevel?.title
+ RowLayout {
+ anchors.fill: parent
+
+ 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 {
+ text: root.toplevel?.title
+ }
}
}