diff --git a/modules/bar/Mpris.qml b/modules/bar/Mpris.qml index 63869d3..dec1e66 100644 --- a/modules/bar/Mpris.qml +++ b/modules/bar/Mpris.qml @@ -9,11 +9,11 @@ Rectangle { visible: root.spotify != null radius: implicitHeight / 2 color: clickHandler.containsMouse ? Colors.color5 : Colors.color6 - anchors.verticalCenter: parent.verticalCenter implicitWidth: root.implicitWidth + 20 implicitHeight: Settings.config.barHeight - 10 Item { id: root + anchors.centerIn: parent property var spotify: root.getSpotify() function getSpotify() { for (let i = 0; i < Mpris.players.values.length; i++) { @@ -23,11 +23,12 @@ Rectangle { } return null; } - anchors.horizontalCenter: parent.horizontalCenter implicitWidth: statusRow.implicitWidth + implicitHeight: statusRow.implicitHeight Row { id: statusRow + anchors.verticalCenter: parent.verticalCenter property var combinedText: root.spotify != null ? root.spotify.trackArtist + " - " + root.spotify.trackTitle + " " : "" property var status: root.spotify != null ? !root.spotify.isPlaying ? "play_arrow" : "pause" : "" CustomText { diff --git a/modules/bar/Title.qml b/modules/bar/Title.qml index da07fe0..9ad5d35 100644 --- a/modules/bar/Title.qml +++ b/modules/bar/Title.qml @@ -13,9 +13,10 @@ Rectangle { implicitHeight: Settings.config.barHeight - 10 Item { id: root + anchors.centerIn: parent readonly property var activeWindow: ToplevelManager.activeToplevel implicitWidth: titleText.implicitWidth + 20 - implicitHeight: Settings.config.barHeight + implicitHeight: titleText.implicitHeight CustomText { id: titleText anchors.horizontalCenter: parent.horizontalCenter diff --git a/modules/bar/Workspaces.qml b/modules/bar/Workspaces.qml index e615d42..107a25a 100644 --- a/modules/bar/Workspaces.qml +++ b/modules/bar/Workspaces.qml @@ -9,7 +9,8 @@ import qs.reusables Item { id: root implicitWidth: workspaceRow.implicitWidth - height: 30 + implicitHeight: workspaceRow.implicitHeight + anchors.verticalCenter: parent.verticalCenter Row { id: workspaceRow anchors.centerIn: parent @@ -18,9 +19,9 @@ Item { Repeater { id: wsRepeater model: Hyprland.workspaces - anchors.centerIn: parent Rectangle { id: workspaceNumber + anchors.verticalCenter: parent.verticalCenter radius: 20 property bool isOnMon: { if (!modelData) diff --git a/settings/Settings.qml b/settings/Settings.qml index f45144b..99a0467 100644 --- a/settings/Settings.qml +++ b/settings/Settings.qml @@ -5,13 +5,12 @@ import Quickshell import Quickshell.Io Singleton { - id: settings property alias config: settingsAdapter onConfigChanged: { console.log('config change detected, writing adapter'); settingsView.writeAdapter(); - } + } FileView { id: settingsView