diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-20 08:24:19 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-20 08:24:19 -0500 |
| commit | ae74eabfca2fa177235d25b364dc7dafe0f539d2 (patch) | |
| tree | 3d94e9ae3491694877e5d227dddd364dd1e1deea | |
| parent | refactor: EthernetList correction on selected style (diff) | |
| download | caelestia-shell-ae74eabfca2fa177235d25b364dc7dafe0f539d2.tar.gz caelestia-shell-ae74eabfca2fa177235d25b364dc7dafe0f539d2.tar.bz2 caelestia-shell-ae74eabfca2fa177235d25b364dc7dafe0f539d2.zip | |
refactor: EthernetList styling
| -rw-r--r-- | modules/controlcenter/network/EthernetList.qml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/modules/controlcenter/network/EthernetList.qml b/modules/controlcenter/network/EthernetList.qml index e0d4b3f..4f4dc8a 100644 --- a/modules/controlcenter/network/EthernetList.qml +++ b/modules/controlcenter/network/EthernetList.qml @@ -122,12 +122,18 @@ DeviceList { elide: Text.ElideRight } - StyledText { + RowLayout { Layout.fillWidth: true - text: modelData.connected ? qsTr("Connected") : qsTr("Disconnected") - color: Colours.palette.m3outline - font.pointSize: Appearance.font.size.small - elide: Text.ElideRight + spacing: Appearance.spacing.smaller + + StyledText { + 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 + } } } |