LockScreen: more sizing tweaks

This commit is contained in:
lysec
2025-10-05 23:21:08 +02:00
parent 78f6c5f72d
commit 2cd4defa9f
9 changed files with 74 additions and 45 deletions
+10 -1
View File
@@ -18,5 +18,14 @@ NIconButton {
colorFg: ScreenRecorderService.isRecording ? Color.mOnPrimary : Color.mOnSurface
colorBorder: Color.transparent
colorBorderHover: Color.transparent
onClicked: ScreenRecorderService.toggleRecording()
function handleClick() {
if (!ScreenRecorderService.isAvailable) {
ToastService.showError(I18n.tr("toast.recording.not-installed"), I18n.tr("toast.recording.not-installed-desc"), 7000)
return
}
ScreenRecorderService.toggleRecording()
}
onClicked: handleClick()
}