summaryrefslogtreecommitdiff
path: root/modules/controlcenter/network/NetworkingPane.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/controlcenter/network/NetworkingPane.qml')
-rw-r--r--modules/controlcenter/network/NetworkingPane.qml33
1 files changed, 26 insertions, 7 deletions
diff --git a/modules/controlcenter/network/NetworkingPane.qml b/modules/controlcenter/network/NetworkingPane.qml
index 93d3f93..dc568e2 100644
--- a/modules/controlcenter/network/NetworkingPane.qml
+++ b/modules/controlcenter/network/NetworkingPane.qml
@@ -368,6 +368,32 @@ Item {
fill: (modelData && modelData.active) ? 1 : 0
color: (modelData && modelData.active) ? Colours.palette.m3onPrimaryContainer : Colours.palette.m3onSurface
}
+
+ StyledRect {
+ id: lockBadge
+
+ visible: modelData && modelData.isSecure
+ anchors.right: parent.right
+ anchors.bottom: parent.bottom
+ anchors.margins: -Appearance.padding.smaller / 2
+
+ implicitWidth: lockIconSize + Appearance.padding.smaller
+ implicitHeight: lockIconSize + Appearance.padding.smaller
+ radius: Appearance.rounding.full
+ color: (modelData && modelData.active) ? Colours.palette.m3secondaryContainer : Colours.palette.m3surfaceContainerHighest
+
+ readonly property real lockIconSize: lockIcon.implicitWidth
+
+ MaterialIcon {
+ id: lockIcon
+
+ anchors.centerIn: parent
+ text: "lock"
+ font.pointSize: Appearance.font.size.small
+ fill: 1
+ color: (modelData && modelData.active) ? Colours.palette.m3onSecondaryContainer : Colours.palette.m3onSurface
+ }
+ }
}
ColumnLayout {
@@ -387,13 +413,6 @@ Item {
Layout.fillWidth: true
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 {
Layout.fillWidth: true
text: {