bar
This commit is contained in:
@@ -26,56 +26,136 @@ PanelWindow {
|
||||
implicitHeight: 40
|
||||
implicitWidth: 1900
|
||||
|
||||
Flow {
|
||||
x: 0
|
||||
padding: 5
|
||||
spacing: 10
|
||||
|
||||
Launcher { id: l }
|
||||
|
||||
Workspaces { id: ws }
|
||||
|
||||
}
|
||||
|
||||
/*RowLayout {
|
||||
width: bar.width
|
||||
}*/
|
||||
RowLayout {
|
||||
x: (parent.width - cl.width) / 2 + parent.x - cl.x
|
||||
//Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
||||
id: left
|
||||
x: 0
|
||||
y: parent.y + (parent.height - height) / 2
|
||||
spacing: 10
|
||||
//width: center.x
|
||||
spacing: 0
|
||||
|
||||
Volume { id: v }
|
||||
Launcher {
|
||||
id: l
|
||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
||||
Layout.preferredWidth: width
|
||||
Layout.margins: 5
|
||||
}
|
||||
|
||||
Battery { id: bat }
|
||||
|
||||
Hyprsunset { id: hs }
|
||||
|
||||
Clock { id: cl }
|
||||
|
||||
IdleInhibitor { id: ii }
|
||||
|
||||
Wifi { id: wifi }
|
||||
|
||||
Bluetooth { id: bt }
|
||||
|
||||
}
|
||||
|
||||
Flow {
|
||||
x: parent.width + parent.x - width
|
||||
padding: 5
|
||||
spacing: 10
|
||||
|
||||
Layout.alignment: Qt.AlignRight
|
||||
|
||||
Media { id: media }
|
||||
|
||||
Tray { id: tray; window: bar }
|
||||
|
||||
Notifications { id: notif }
|
||||
|
||||
Power {
|
||||
id: power
|
||||
window: bar
|
||||
Workspaces {
|
||||
id: ws
|
||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
||||
Layout.margins: 5
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
//Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||
id: center
|
||||
x: (parent.width - cl.width) / 2 + parent.x - centerLeft.width
|
||||
//y: parent.y + (parent.height - height) / 2
|
||||
y: parent.y + (parent.height - height) / 2
|
||||
spacing: 0
|
||||
|
||||
RowLayout {
|
||||
id: centerLeft
|
||||
spacing: 0
|
||||
|
||||
Volume {
|
||||
id: v
|
||||
window: bar
|
||||
popupOffset: center.x
|
||||
Layout.margins: 5
|
||||
}
|
||||
|
||||
Battery {
|
||||
id: bat
|
||||
window: bar
|
||||
popupOffset: center.x
|
||||
Layout.margins: 5
|
||||
}
|
||||
|
||||
Hyprsunset {
|
||||
id: hs
|
||||
Layout.margins: 5
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Clock {
|
||||
id: cl
|
||||
Layout.margins: 5
|
||||
}
|
||||
|
||||
IdleInhibitor {
|
||||
id: ii
|
||||
Layout.margins: 5
|
||||
}
|
||||
|
||||
Wifi {
|
||||
id: wifi
|
||||
window: bar
|
||||
Layout.margins: 5
|
||||
}
|
||||
|
||||
Bluetooth {
|
||||
id: bt
|
||||
window: bar
|
||||
Layout.margins: 5
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
RowLayout {
|
||||
//Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||
id: right
|
||||
//implicitWidth: bar.width - (spacer.x + spacer.width)
|
||||
x: bar.width - implicitWidth
|
||||
y: parent.y + (parent.height - height) / 2
|
||||
//Layout.maximumWidth: bar.width - (center.x + center.width)
|
||||
//Layout.preferredWidth: 10
|
||||
spacing: 0
|
||||
|
||||
Media {
|
||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||
id: media
|
||||
|
||||
implicitWidth: Math.min(textWidth, bar.width - (righter.width) - (center.x + center.width) - 10)
|
||||
|
||||
Layout.margins: 5
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
id: righter
|
||||
spacing: 0
|
||||
Tray {
|
||||
id: tray
|
||||
window: bar
|
||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||
Layout.margins: 5
|
||||
popupOffset: right.x + righter.x + x
|
||||
}
|
||||
|
||||
Notifications {
|
||||
id: notif
|
||||
window: bar
|
||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||
Layout.margins: 5
|
||||
}
|
||||
|
||||
Power {
|
||||
id: power
|
||||
window: bar
|
||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||
Layout.margins: 5
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user