mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2025-12-06 06:36:15 +00:00
Large commit that totally refactor of the way we handle the bar and panels. Testing should focus on Panels, Bar, Keyboard Focus, IPC calls. Changes brief: - One NFullScreenWindow per screen which handle it's bar and dedicated panels. - Added shadows - Reintroduced dimming - New panels animations - Proper Z ordering - Panels on overlay laywer is not reimplemented, if we do it then the bar will be on the Overlay too - Panel dragging was not reimplemented, to be discussed before reimplementing - Still a WIP, need to work more on shadows and polishing + debugging.
22 lines
547 B
QML
22 lines
547 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", screen)
|
|
panel?.close()
|
|
}
|
|
}
|
|
}
|