push
This commit is contained in:
parent
21cb632dce
commit
50a9a62a2d
8 changed files with 34 additions and 15 deletions
|
|
@ -13,7 +13,7 @@ Singleton {
|
|||
function getWiredIcon() {
|
||||
if (wiredDev?.hasLink ?? false) {
|
||||
if (wiredDev.connected ?? false) {
|
||||
return "network-wired-activated";
|
||||
return "network-wired";
|
||||
} else
|
||||
return "network-wired-unavailable";
|
||||
} else
|
||||
|
|
|
|||
|
|
@ -16,9 +16,18 @@ PopupWindow {
|
|||
anchor.margins.top: 40
|
||||
color: 'transparent'
|
||||
grabFocus: true
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
Keys.onEscapePressed: {
|
||||
parent.visible = false;
|
||||
}
|
||||
onVisibleChanged: {
|
||||
if (parent.visible)
|
||||
forceActiveFocus();
|
||||
}
|
||||
anchors.fill: parent
|
||||
anchors.centerIn: parent
|
||||
color: Colors.barBg
|
||||
radius: Config.cfg.appearance.rounding
|
||||
ColumnLayout {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ BarComponent {
|
|||
id: clockLayout
|
||||
anchors.centerIn: parent
|
||||
StyledIcon {
|
||||
iconName: "clock-alt-symbolic"
|
||||
iconName: "clock-large"
|
||||
}
|
||||
StyledText {
|
||||
id: clockText
|
||||
|
|
|
|||
|
|
@ -13,8 +13,7 @@ BarComponent {
|
|||
StyledIcon {
|
||||
iconName: Network.getWifiIcon()
|
||||
}
|
||||
StyledIcon {
|
||||
Layout.topMargin: 2
|
||||
StyledIcon {
|
||||
iconName: Network.getWiredIcon()
|
||||
visible: Network.wiredDev != null
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ BarComponent {
|
|||
id: wsContainer
|
||||
required property var modelData
|
||||
visible: modelData.shouldDisplay
|
||||
implicitWidth: modelData.active ? 50 : 20
|
||||
implicitWidth: modelData.active ? root.implicitHeight * 2.2 : root.implicitHeight
|
||||
color: modelData.active ? Colors.base0D : Colors.moduleBg
|
||||
Behavior on implicitWidth {
|
||||
PropertyAnimation {
|
||||
|
|
|
|||
Loading…
Reference in a new issue