refactor: EthernetList styling

This commit is contained in:
ATMDA 2025-11-20 08:24:19 -05:00
parent ea9ab75db1
commit ae74eabfca

View file

@ -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
}
} }
} }