forked from Shinonome/dots-hyprland
bar: fix weird tooltip hover target
This commit is contained in:
@@ -246,7 +246,6 @@ Item { // Bar content region
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea { // Right side | scroll to change volume
|
MouseArea { // Right side | scroll to change volume
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ MouseArea {
|
|||||||
readonly property bool isLow: percentage <= Config.options.battery.low / 100
|
readonly property bool isLow: percentage <= Config.options.battery.low / 100
|
||||||
|
|
||||||
implicitWidth: rowLayout.implicitWidth + rowLayout.spacing * 2
|
implicitWidth: rowLayout.implicitWidth + rowLayout.spacing * 2
|
||||||
implicitHeight: Appearance.sizes.barGroupHeight
|
implicitHeight: Appearance.sizes.barHeight
|
||||||
|
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ Item {
|
|||||||
property bool borderless: Config.options.bar.borderless
|
property bool borderless: Config.options.bar.borderless
|
||||||
property bool showDate: Config.options.bar.verbose
|
property bool showDate: Config.options.bar.verbose
|
||||||
implicitWidth: rowLayout.implicitWidth
|
implicitWidth: rowLayout.implicitWidth
|
||||||
implicitHeight: Appearance.sizes.barGroupHeight
|
implicitHeight: Appearance.sizes.barHeight
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: rowLayout
|
id: rowLayout
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ Item {
|
|||||||
clip: true
|
clip: true
|
||||||
visible: width > 0 && height > 0
|
visible: width > 0 && height > 0
|
||||||
implicitWidth: resourceRowLayout.x < 0 ? 0 : resourceRowLayout.implicitWidth
|
implicitWidth: resourceRowLayout.x < 0 ? 0 : resourceRowLayout.implicitWidth
|
||||||
implicitHeight: resourceRowLayout.implicitHeight
|
implicitHeight: Appearance.sizes.barHeight
|
||||||
|
|
||||||
// Helper function to format KB to GB
|
// Helper function to format KB to GB
|
||||||
function formatKB(kb) {
|
function formatKB(kb) {
|
||||||
@@ -34,6 +34,9 @@ Item {
|
|||||||
id: resourceRowLayout
|
id: resourceRowLayout
|
||||||
spacing: 2
|
spacing: 2
|
||||||
x: shown ? 0 : -resourceRowLayout.width
|
x: shown ? 0 : -resourceRowLayout.width
|
||||||
|
anchors {
|
||||||
|
verticalCenter: parent.verticalCenter
|
||||||
|
}
|
||||||
|
|
||||||
ClippedFilledCircularProgress {
|
ClippedFilledCircularProgress {
|
||||||
id: resourceCircProg
|
id: resourceCircProg
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ Item {
|
|||||||
property bool borderless: Config.options.bar.borderless
|
property bool borderless: Config.options.bar.borderless
|
||||||
property bool alwaysShowAllResources: false
|
property bool alwaysShowAllResources: false
|
||||||
implicitWidth: rowLayout.implicitWidth + rowLayout.anchors.leftMargin + rowLayout.anchors.rightMargin
|
implicitWidth: rowLayout.implicitWidth + rowLayout.anchors.leftMargin + rowLayout.anchors.rightMargin
|
||||||
implicitHeight: Appearance.sizes.barGroupHeight
|
implicitHeight: Appearance.sizes.barHeight
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: rowLayout
|
id: rowLayout
|
||||||
|
|||||||
Reference in New Issue
Block a user