mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-05 22:06:23 +00:00
26 lines
566 B
QML
26 lines
566 B
QML
import QtQuick.Layouts
|
|
import Quickshell
|
|
import qs.Commons
|
|
import qs.Services
|
|
import qs.Widgets
|
|
|
|
NButton {
|
|
|
|
property ShellScreen screen
|
|
property real scaling: 1.0
|
|
|
|
enabled: ProgramCheckerService.gpuScreenRecorderAvailable
|
|
outlined: true
|
|
icon: "camera-video"
|
|
text: "Screen Rec."
|
|
fontSize: Style.fontSizeS * scaling
|
|
fontWeight: Style.fontWeightRegular
|
|
onClicked: {
|
|
ScreenRecorderService.toggleRecording()
|
|
if (!ScreenRecorderService.isRecording) {
|
|
var panel = PanelService.getPanel("controlCenterPanel")
|
|
panel?.close()
|
|
}
|
|
}
|
|
}
|