Compare commits
2 commits
cce695a8c6
...
e3c24d646e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e3c24d646e | ||
|
|
55627bc157 |
3 changed files with 17 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue