mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
quicksettings: replace hardcoded text with i18n, edit label & tooltip,
force hover when recording
This commit is contained in:
@@ -9,21 +9,13 @@ NQuickSetting {
|
||||
property real scaling: 1.0
|
||||
|
||||
enabled: ProgramCheckerService.wlsunsetAvailable
|
||||
text: "Night Light"
|
||||
text: I18n.tr("quickSettings.nightLight.label.enabled")
|
||||
fontSize: Style.fontSizeS * scaling
|
||||
fontWeight: Style.fontWeightMedium
|
||||
icon: Settings.data.nightLight.enabled ? (Settings.data.nightLight.forced ? "nightlight-forced" : "nightlight-on") : "nightlight-off"
|
||||
active: Settings.data.nightLight.enabled
|
||||
style: Settings.data.controlCenter.quickSettingsStyle || "modern"
|
||||
tooltipText: {
|
||||
if (!Settings.data.nightLight.enabled) {
|
||||
return "Turn on Night Light"
|
||||
} else if (Settings.data.nightLight.forced) {
|
||||
return "Night Light forced on"
|
||||
} else {
|
||||
return "Turn off Night Light"
|
||||
}
|
||||
}
|
||||
tooltipText: I18n.tr("quickSettings.nightLight.tooltip.action")
|
||||
|
||||
onClicked: {
|
||||
if (!Settings.data.nightLight.enabled) {
|
||||
|
||||
Reference in New Issue
Block a user