Compare commits
No commits in common. "e3c24d646eb234aff7f73e3d6dc99e465ee99633" and "cce695a8c6db10fc6f7b8c043e1e772e24d3a04e" have entirely different histories.
e3c24d646e
...
cce695a8c6
3 changed files with 6 additions and 17 deletions
|
|
@ -76,7 +76,7 @@ M.PopupPanel {
|
|||
anchors.leftMargin: 12
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: "\uF294"
|
||||
color: entry.modelData.connected ? menuWindow.accentColor : M.Theme.base04
|
||||
color: entry.modelData.connected ? M.Theme.base0D : M.Theme.base04
|
||||
font.pixelSize: M.Theme.fontSize + 1
|
||||
font.family: M.Theme.iconFontFamily
|
||||
}
|
||||
|
|
@ -88,7 +88,7 @@ M.PopupPanel {
|
|||
anchors.rightMargin: 4
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: entry.modelData.name
|
||||
color: entry.modelData.connected ? menuWindow.accentColor : M.Theme.base05
|
||||
color: entry.modelData.connected ? M.Theme.base0D : M.Theme.base05
|
||||
font.pixelSize: M.Theme.fontSize
|
||||
font.family: M.Theme.fontFamily
|
||||
font.bold: entry.modelData.connected
|
||||
|
|
|
|||
|
|
@ -50,26 +50,15 @@ PanelWindow {
|
|||
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: {
|
||||
if (showPanel) {
|
||||
_hideTimer.stop();
|
||||
_updatePosition();
|
||||
_winVisible = true;
|
||||
hideAnim.stop();
|
||||
showAnim.start();
|
||||
} else {
|
||||
_hideTimer.restart();
|
||||
showAnim.stop();
|
||||
hideAnim.start();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ M.PopupPanel {
|
|||
anchors.leftMargin: 12
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: entry.modelData.isWifi ? "\uF1EB" : "\uDB80\uDE00"
|
||||
color: entry.modelData.active ? menuWindow.accentColor : M.Theme.base05
|
||||
color: entry.modelData.active ? M.Theme.base0D : M.Theme.base05
|
||||
font.pixelSize: M.Theme.fontSize + 1
|
||||
font.family: M.Theme.iconFontFamily
|
||||
}
|
||||
|
|
@ -122,7 +122,7 @@ M.PopupPanel {
|
|||
anchors.rightMargin: 4
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: entry.modelData.name
|
||||
color: entry.modelData.active ? menuWindow.accentColor : M.Theme.base05
|
||||
color: entry.modelData.active ? M.Theme.base0D : M.Theme.base05
|
||||
font.pixelSize: M.Theme.fontSize
|
||||
font.family: M.Theme.fontFamily
|
||||
font.bold: entry.modelData.active
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue