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
@@ -10,13 +10,17 @@ NQuickSetting {
enabled: ProgramCheckerService.gpuScreenRecorderAvailable
icon: "camera-video"
text: "Screen Rec."
text: ScreenRecorderService.isRecording ? I18n.tr("quickSettings.screenRecorder.label.recording") : I18n.tr("quickSettings.screenRecorder.label.stopped")
fontSize: Style.fontSizeS * scaling
fontWeight: Style.fontWeightMedium
active: ScreenRecorderService.isRecording
tooltipText: ScreenRecorderService.isRecording ? "Stop recording" : "Start screen recording"
tooltipText: I18n.tr("quickSettings.screenRecorder.tooltip.action")
style: Settings.data.controlCenter.quickSettingsStyle || "modern"
// Force hover state when recording to get hover colors
property bool originalHovered: hovered
hovered: ScreenRecorderService.isRecording || originalHovered
onClicked: {
ScreenRecorderService.toggleRecording()
if (!ScreenRecorderService.isRecording) {