diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-16 12:59:49 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-16 12:59:49 -0500 |
| commit | b05650b45171cb50797122d9afaca3e084a0bb4a (patch) | |
| tree | 953dfe5703a651fa6345b652d5e1b33fac5c4da0 | |
| parent | controlcenter: 1px issue and radii uniform issues fixed (diff) | |
| download | caelestia-shell-b05650b45171cb50797122d9afaca3e084a0bb4a.tar.gz caelestia-shell-b05650b45171cb50797122d9afaca3e084a0bb4a.tar.bz2 caelestia-shell-b05650b45171cb50797122d9afaca3e084a0bb4a.zip | |
controlcenter: lock icon + security type
Diffstat (limited to '')
| -rw-r--r-- | modules/controlcenter/network/NetworkingPane.qml | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/modules/controlcenter/network/NetworkingPane.qml b/modules/controlcenter/network/NetworkingPane.qml index c3621bb..1dd798d 100644 --- a/modules/controlcenter/network/NetworkingPane.qml +++ b/modules/controlcenter/network/NetworkingPane.qml @@ -371,11 +371,30 @@ Item { text: (modelData && modelData.ssid) ? modelData.ssid : qsTr("Unknown") } - StyledText { - text: (modelData && modelData.active) ? qsTr("Connected") : ((modelData && modelData.isSecure) ? qsTr("Secured") : qsTr("Open")) - color: (modelData && modelData.active) ? Colours.palette.m3primary : Colours.palette.m3outline - font.pointSize: Appearance.font.size.small - font.weight: (modelData && modelData.active) ? 500 : 400 + RowLayout { + spacing: Appearance.spacing.smaller + + MaterialIcon { + visible: (modelData && modelData.isSecure) + text: "lock" + font.pointSize: Appearance.font.size.small + color: (modelData && modelData.active) ? Colours.palette.m3primary : Colours.palette.m3outline + } + + StyledText { + text: { + if (!modelData) return qsTr("Open"); + if (modelData.active) return qsTr("Connected"); + if (modelData.isSecure && modelData.security && modelData.security.length > 0) { + return modelData.security; + } + if (modelData.isSecure) return qsTr("Secured"); + return qsTr("Open"); + } + color: (modelData && modelData.active) ? Colours.palette.m3primary : Colours.palette.m3outline + font.pointSize: Appearance.font.size.small + font.weight: (modelData && modelData.active) ? 500 : 400 + } } StyledRect { |