mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-05 13:57:36 +00:00
22 lines
539 B
QML
22 lines
539 B
QML
import QtQuick.Layouts
|
|
import Quickshell
|
|
import qs.Commons
|
|
import qs.Services
|
|
import qs.Widgets
|
|
|
|
NIconButtonHot {
|
|
property ShellScreen screen
|
|
|
|
enabled: ProgramCheckerService.gpuScreenRecorderAvailable
|
|
icon: "camera-video"
|
|
hot: ScreenRecorderService.isRecording
|
|
tooltipText: I18n.tr("quickSettings.screenRecorder.tooltip.action")
|
|
onClicked: {
|
|
ScreenRecorderService.toggleRecording()
|
|
if (!ScreenRecorderService.isRecording) {
|
|
var panel = PanelService.getPanel("controlCenterPanel")
|
|
panel?.close()
|
|
}
|
|
}
|
|
}
|