quicksettings: replace hardcoded text with i18n, edit label & tooltip,

force hover when recording
This commit is contained in:
lysec
2025-10-09 17:56:49 +02:00
parent bfb57f13c6
commit 075c8f08f6
19 changed files with 754 additions and 53 deletions
+2 -2
View File
@@ -8,12 +8,12 @@ NQuickSetting {
property ShellScreen screen
property real scaling: 1.0
text: "Keep-awake"
text: I18n.tr("quickSettings.keepAwake.label.enabled")
fontSize: Style.fontSizeS * scaling
fontWeight: Style.fontWeightMedium
icon: IdleInhibitorService.isInhibited ? "keep-awake-on" : "keep-awake-off"
active: IdleInhibitorService.isInhibited
tooltipText: IdleInhibitorService.isInhibited ? "Disable keep-awake" : "Enable keep-awake"
tooltipText: I18n.tr("quickSettings.keepAwake.tooltip.action")
style: Settings.data.controlCenter.quickSettingsStyle || "modern"
onClicked: IdleInhibitorService.manualToggle()