Commit 2030d8b6 authored by Nate Graham's avatar Nate Graham 🔩
Browse files

[applet] Improve presentation and tooltips for toolbar toggles

1. Increased the spacing between them so they don't blend into one
   another so much
2. Made the terminolgy in the Wi-Fi tooltip match how it's phrased
   elsewhere
3. Added some explanatory text for the airplane tooltip so it's more
   obvious what it does

BUG: 421371
FIXED-In: 5.20
parent 8511397e
......@@ -75,7 +75,7 @@ ColumnLayout {
checked: enabled && enabledConnections.wirelessEnabled
enabled: enabledConnections.wirelessHwEnabled && availableDevices.wirelessDeviceAvailable && !planeModeSwitchButton.airplaneModeEnabled
tooltip: i18n("Enable wireless")
tooltip: i18n("Enable Wi-Fi")
icon: enabled ? "network-wireless-on" : "network-wireless-off"
visible: availableDevices.wirelessDeviceAvailable
......@@ -98,6 +98,11 @@ ColumnLayout {
}
}
// Add some extra spacing between the wifi and airplane mode toggles
Item {
Layout.preferredWidth: units.smallSpacing * 2
}
SwitchButton {
id: planeModeSwitchButton
......@@ -105,7 +110,9 @@ ColumnLayout {
property bool airplaneModeEnabled: false
checked: airplaneModeEnabled
tooltip: i18n("Enable airplane mode")
tooltip: airplaneModeEnabled ?
xi18nc("@info", "Disable airplane mode<nl/><nl/>This will enable Wi-Fi and Bluetooth") :
xi18nc("@info", "Enable airplane mode<nl/><nl/>This will disable Wi-Fi and Bluetooth")
icon: airplaneModeEnabled ? "network-flightmode-on" : "network-flightmode-off"
visible: availableDevices.modemDeviceAvailable || availableDevices.wirelessDeviceAvailable
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment