controlcenter: moved connection status/security type in networking
This commit is contained in:
parent
8c84f670e6
commit
4a7c2dbdd5
1 changed files with 53 additions and 36 deletions
|
|
@ -215,6 +215,11 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
@ -224,10 +229,13 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
Layout.fillWidth: true
|
||||||
text: modelData.connected ? qsTr("Connected") : qsTr("Disconnected")
|
text: modelData.connected ? qsTr("Connected") : qsTr("Disconnected")
|
||||||
color: modelData.connected ? Colours.palette.m3primary : Colours.palette.m3outline
|
color: modelData.connected ? Colours.palette.m3primary : Colours.palette.m3outline
|
||||||
font.pointSize: Appearance.font.size.small
|
font.pointSize: Appearance.font.size.small
|
||||||
font.weight: modelData.connected ? 500 : 400
|
font.weight: modelData.connected ? 500 : 400
|
||||||
|
elide: Text.ElideRight
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledRect {
|
StyledRect {
|
||||||
|
|
@ -362,6 +370,11 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
@ -371,6 +384,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
Layout.fillWidth: true
|
||||||
spacing: Appearance.spacing.smaller
|
spacing: Appearance.spacing.smaller
|
||||||
|
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
|
|
@ -381,6 +395,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
Layout.fillWidth: true
|
||||||
text: {
|
text: {
|
||||||
if (!modelData) return qsTr("Open");
|
if (!modelData) return qsTr("Open");
|
||||||
if (modelData.active) return qsTr("Connected");
|
if (modelData.active) return qsTr("Connected");
|
||||||
|
|
@ -393,6 +408,8 @@ Item {
|
||||||
color: (modelData && modelData.active) ? Colours.palette.m3primary : Colours.palette.m3outline
|
color: (modelData && modelData.active) ? Colours.palette.m3primary : Colours.palette.m3outline
|
||||||
font.pointSize: Appearance.font.size.small
|
font.pointSize: Appearance.font.size.small
|
||||||
font.weight: (modelData && modelData.active) ? 500 : 400
|
font.weight: (modelData && modelData.active) ? 500 : 400
|
||||||
|
elide: Text.ElideRight
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue