fix: invalid tPalette usage for fg colours
This commit is contained in:
parent
d4f3008a0e
commit
eb4a19bb4a
3 changed files with 6 additions and 6 deletions
|
|
@ -124,7 +124,7 @@ PageBase {
|
||||||
StyledText {
|
StyledText {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: device.connected ? qsTr("Connected%1").arg(device.modelData?.batteryAvailable ? " • " + Math.round(device.modelData.battery * 100) + "%" : "") : qsTr("Saved")
|
text: device.connected ? qsTr("Connected%1").arg(device.modelData?.batteryAvailable ? " • " + Math.round(device.modelData.battery * 100) + "%" : "") : qsTr("Saved")
|
||||||
color: Colours.tPalette.m3outline
|
color: Colours.palette.m3outline
|
||||||
font: Tokens.font.label.small
|
font: Tokens.font.label.small
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
animate: true
|
animate: true
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@ PageBase {
|
||||||
|
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
text: Icons.getNetworkIcon(network.modelData.strength)
|
text: Icons.getNetworkIcon(network.modelData.strength)
|
||||||
color: network.modelData.active ? Colours.palette.m3primary : Colours.tPalette.m3onSurfaceVariant
|
color: network.modelData.active ? Colours.palette.m3primary : Colours.palette.m3onSurfaceVariant
|
||||||
font: Tokens.font.icon.medium
|
font: Tokens.font.icon.medium
|
||||||
opacity: network.textOpacity
|
opacity: network.textOpacity
|
||||||
}
|
}
|
||||||
|
|
@ -153,7 +153,7 @@ PageBase {
|
||||||
StyledText {
|
StyledText {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: qsTr("Security: %1%2").arg(network.modelData.security).arg(Nmcli.hasSavedProfile(network.modelData.ssid) ? qsTr(" • Saved") : "")
|
text: qsTr("Security: %1%2").arg(network.modelData.security).arg(Nmcli.hasSavedProfile(network.modelData.ssid) ? qsTr(" • Saved") : "")
|
||||||
color: Colours.tPalette.m3outline
|
color: Colours.palette.m3outline
|
||||||
font: Tokens.font.label.small
|
font: Tokens.font.label.small
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
|
|
@ -167,7 +167,7 @@ PageBase {
|
||||||
|
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
text: network.modelData.active ? "settings" : "lock"
|
text: network.modelData.active ? "settings" : "lock"
|
||||||
color: network.modelData.active ? Colours.palette.m3primary : Colours.tPalette.m3onSurfaceVariant
|
color: network.modelData.active ? Colours.palette.m3primary : Colours.palette.m3onSurfaceVariant
|
||||||
font: Tokens.font.icon.medium
|
font: Tokens.font.icon.medium
|
||||||
opacity: network.textOpacity
|
opacity: network.textOpacity
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@ PageBase {
|
||||||
|
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
text: Icons.getBluetoothIcon(newDevice.modelData?.icon ?? "")
|
text: Icons.getBluetoothIcon(newDevice.modelData?.icon ?? "")
|
||||||
color: Colours.tPalette.m3onSurfaceVariant
|
color: Colours.palette.m3onSurfaceVariant
|
||||||
font: Tokens.font.icon.medium
|
font: Tokens.font.icon.medium
|
||||||
opacity: newDevice.textOpacity
|
opacity: newDevice.textOpacity
|
||||||
}
|
}
|
||||||
|
|
@ -147,7 +147,7 @@ PageBase {
|
||||||
StyledText {
|
StyledText {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: newDevice.modelData?.pairing ? qsTr("Pairing...") : (newDevice.modelData?.address ?? "")
|
text: newDevice.modelData?.pairing ? qsTr("Pairing...") : (newDevice.modelData?.address ?? "")
|
||||||
color: Colours.tPalette.m3outline
|
color: Colours.palette.m3outline
|
||||||
font: Tokens.font.label.small
|
font: Tokens.font.label.small
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
animate: true
|
animate: true
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue