fix issue with vertical centering
This commit is contained in:
parent
49308bee1a
commit
5b3d05168a
@ -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 {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -5,7 +5,6 @@ import Quickshell
|
||||
import Quickshell.Io
|
||||
|
||||
Singleton {
|
||||
|
||||
id: settings
|
||||
property alias config: settingsAdapter
|
||||
onConfigChanged: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user