forked from Shinonome/dots-hyprland
add option to open tooltips by pressing the mouse button
This commit is contained in:
@@ -15,7 +15,7 @@ MouseArea {
|
||||
readonly property bool isLow: percentage <= Config.options.battery.low / 100
|
||||
|
||||
implicitHeight: batteryProgress.implicitHeight
|
||||
hoverEnabled: true
|
||||
hoverEnabled: !Config.options.bar.tooltips.clickToShow
|
||||
|
||||
ClippedProgressBar {
|
||||
id: batteryProgress
|
||||
|
||||
@@ -9,7 +9,7 @@ MouseArea {
|
||||
property bool alwaysShowAllResources: false
|
||||
implicitHeight: columnLayout.implicitHeight
|
||||
implicitWidth: columnLayout.implicitWidth
|
||||
hoverEnabled: true
|
||||
hoverEnabled: !Config.options.bar.tooltips.clickToShow
|
||||
|
||||
ColumnLayout {
|
||||
id: columnLayout
|
||||
|
||||
@@ -33,7 +33,7 @@ Item {
|
||||
MouseArea {
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
hoverEnabled: !Config.options.bar.tooltips.clickToShow
|
||||
acceptedButtons: Qt.NoButton
|
||||
|
||||
Bar.ClockWidgetPopup {
|
||||
|
||||
@@ -28,7 +28,7 @@ MouseArea {
|
||||
}
|
||||
|
||||
acceptedButtons: Qt.MiddleButton | Qt.BackButton | Qt.ForwardButton | Qt.RightButton | Qt.LeftButton
|
||||
hoverEnabled: true
|
||||
hoverEnabled: !Config.options.bar.tooltips.clickToShow
|
||||
onPressed: (event) => {
|
||||
if (event.button === Qt.MiddleButton) {
|
||||
activePlayer.togglePlaying();
|
||||
|
||||
Reference in New Issue
Block a user