Compare commits

..

2 commits

Author SHA1 Message Date
Damocles
e3c24d646e fix network/bt menus using hardcoded base0D instead of accentColor 2026-04-13 22:00:03 +02:00
Damocles
55627bc157 fix hover panel hide race with 50ms debounce 2026-04-13 21:59:59 +02:00
3 changed files with 17 additions and 6 deletions

View file

@ -76,7 +76,7 @@ M.PopupPanel {
anchors.leftMargin: 12 anchors.leftMargin: 12
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
text: "\uF294" text: "\uF294"
color: entry.modelData.connected ? M.Theme.base0D : M.Theme.base04 color: entry.modelData.connected ? menuWindow.accentColor : M.Theme.base04
font.pixelSize: M.Theme.fontSize + 1 font.pixelSize: M.Theme.fontSize + 1
font.family: M.Theme.iconFontFamily font.family: M.Theme.iconFontFamily
} }
@ -88,7 +88,7 @@ M.PopupPanel {
anchors.rightMargin: 4 anchors.rightMargin: 4
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
text: entry.modelData.name text: entry.modelData.name
color: entry.modelData.connected ? M.Theme.base0D : M.Theme.base05 color: entry.modelData.connected ? menuWindow.accentColor : M.Theme.base05
font.pixelSize: M.Theme.fontSize font.pixelSize: M.Theme.fontSize
font.family: M.Theme.fontFamily font.family: M.Theme.fontFamily
font.bold: entry.modelData.connected font.bold: entry.modelData.connected

View file

@ -50,15 +50,26 @@ PanelWindow {
margins.left = Math.max(0, Math.min(Math.round(pt.x - (scr?.x ?? 0) - contentWidth / 2), sw - contentWidth)); margins.left = Math.max(0, Math.min(Math.round(pt.x - (scr?.x ?? 0) - contentWidth / 2), sw - contentWidth));
} }
Timer {
id: _hideTimer
interval: 50
onTriggered: {
if (!root.showPanel) {
showAnim.stop();
hideAnim.start();
}
}
}
onShowPanelChanged: { onShowPanelChanged: {
if (showPanel) { if (showPanel) {
_hideTimer.stop();
_updatePosition(); _updatePosition();
_winVisible = true; _winVisible = true;
hideAnim.stop(); hideAnim.stop();
showAnim.start(); showAnim.start();
} else { } else {
showAnim.stop(); _hideTimer.restart();
hideAnim.start();
} }
} }

View file

@ -110,7 +110,7 @@ M.PopupPanel {
anchors.leftMargin: 12 anchors.leftMargin: 12
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
text: entry.modelData.isWifi ? "\uF1EB" : "\uDB80\uDE00" text: entry.modelData.isWifi ? "\uF1EB" : "\uDB80\uDE00"
color: entry.modelData.active ? M.Theme.base0D : M.Theme.base05 color: entry.modelData.active ? menuWindow.accentColor : M.Theme.base05
font.pixelSize: M.Theme.fontSize + 1 font.pixelSize: M.Theme.fontSize + 1
font.family: M.Theme.iconFontFamily font.family: M.Theme.iconFontFamily
} }
@ -122,7 +122,7 @@ M.PopupPanel {
anchors.rightMargin: 4 anchors.rightMargin: 4
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
text: entry.modelData.name text: entry.modelData.name
color: entry.modelData.active ? M.Theme.base0D : M.Theme.base05 color: entry.modelData.active ? menuWindow.accentColor : M.Theme.base05
font.pixelSize: M.Theme.fontSize font.pixelSize: M.Theme.fontSize
font.family: M.Theme.fontFamily font.family: M.Theme.fontFamily
font.bold: entry.modelData.active font.bold: entry.modelData.active