refactor: EthernetList styling
This commit is contained in:
parent
ea9ab75db1
commit
ae74eabfca
1 changed files with 11 additions and 5 deletions
|
|
@ -122,12 +122,18 @@ DeviceList {
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: modelData.connected ? qsTr("Connected") : qsTr("Disconnected")
|
spacing: Appearance.spacing.smaller
|
||||||
color: Colours.palette.m3outline
|
|
||||||
font.pointSize: Appearance.font.size.small
|
StyledText {
|
||||||
elide: Text.ElideRight
|
Layout.fillWidth: true
|
||||||
|
text: modelData.connected ? qsTr("Connected") : qsTr("Disconnected")
|
||||||
|
color: modelData.connected ? Colours.palette.m3primary : Colours.palette.m3outline
|
||||||
|
font.pointSize: Appearance.font.size.small
|
||||||
|
font.weight: modelData.connected ? 500 : 400
|
||||||
|
elide: Text.ElideRight
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue