forked from Shinonome/dots-hyprland
center-right block click to open right sidebar (closes #1442)
This commit is contained in:
@@ -240,25 +240,36 @@ Scope {
|
|||||||
|
|
||||||
VerticalBarSeparator {visible: ConfigOptions?.bar.borderless}
|
VerticalBarSeparator {visible: ConfigOptions?.bar.borderless}
|
||||||
|
|
||||||
BarGroup {
|
MouseArea {
|
||||||
id: rightCenterGroup
|
id: rightCenterGroup
|
||||||
|
implicitWidth: rightCenterGroupContent.implicitWidth
|
||||||
|
implicitHeight: rightCenterGroupContent.implicitHeight
|
||||||
Layout.preferredWidth: barRoot.centerSideModuleWidth
|
Layout.preferredWidth: barRoot.centerSideModuleWidth
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|
||||||
ClockWidget {
|
onPressed: {
|
||||||
showDate: (ConfigOptions.bar.verbose && barRoot.useShortenedForm < 2)
|
Hyprland.dispatch('global quickshell:sidebarRightToggle')
|
||||||
Layout.alignment: Qt.AlignVCenter
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
UtilButtons {
|
BarGroup {
|
||||||
visible: (ConfigOptions.bar.verbose && barRoot.useShortenedForm === 0)
|
id: rightCenterGroupContent
|
||||||
Layout.alignment: Qt.AlignVCenter
|
anchors.fill: parent
|
||||||
}
|
|
||||||
|
ClockWidget {
|
||||||
|
showDate: (ConfigOptions.bar.verbose && barRoot.useShortenedForm < 2)
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
|
||||||
BatteryIndicator {
|
UtilButtons {
|
||||||
visible: (barRoot.useShortenedForm < 2 && UPower.displayDevice.isLaptopBattery)
|
visible: (ConfigOptions.bar.verbose && barRoot.useShortenedForm === 0)
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
}
|
||||||
|
|
||||||
|
BatteryIndicator {
|
||||||
|
visible: (barRoot.useShortenedForm < 2 && UPower.displayDevice.isLaptopBattery)
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user