mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Wayland Layers: Breaking changes
- renamed some layers from "quickshell-*" to "noctalia-*" - added screen name to all layers, ex: "noctalia-wallpaper-DP1" - added a way to disable overview management in the settings, this allow stationnary wallpaper on niri
This commit is contained in:
@@ -85,7 +85,7 @@ Variants {
|
||||
screen: modelData
|
||||
WlrLayershell.layer: WlrLayer.Background
|
||||
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
||||
WlrLayershell.namespace: "quickshell-wallpaper"
|
||||
WlrLayershell.namespace: "noctalia-wallpaper-" + (screen?.name || "unknown")
|
||||
|
||||
anchors {
|
||||
bottom: true
|
||||
|
||||
@@ -6,21 +6,21 @@ import qs.Commons
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
|
||||
Variants {
|
||||
model: Quickshell.screens
|
||||
Loader {
|
||||
active: CompositorService.isNiri && Settings.data.wallpaper.enabled && Settings.data.wallpaper.overviewEnabled
|
||||
|
||||
delegate: Loader {
|
||||
required property ShellScreen modelData
|
||||
property string wallpaper: ""
|
||||
sourceComponent: Variants {
|
||||
model: Quickshell.screens
|
||||
|
||||
active: CompositorService.isNiri && Settings.data.wallpaper.enabled && modelData
|
||||
|
||||
sourceComponent: PanelWindow {
|
||||
delegate: PanelWindow {
|
||||
id: panelWindow
|
||||
|
||||
required property ShellScreen modelData
|
||||
property string wallpaper: ""
|
||||
|
||||
Component.onCompleted: {
|
||||
if (modelData) {
|
||||
Logger.d("Overview", "Loading Overview component for Niri on", modelData.name)
|
||||
Logger.d("Overview", "Loading overview for Niri on", modelData.name)
|
||||
}
|
||||
setWallpaperInitial()
|
||||
}
|
||||
@@ -50,7 +50,7 @@ Variants {
|
||||
screen: modelData
|
||||
WlrLayershell.layer: WlrLayer.Background
|
||||
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
||||
WlrLayershell.namespace: "quickshell-overview"
|
||||
WlrLayershell.namespace: "noctalia-overview-" + (screen?.name || "unknown")
|
||||
|
||||
anchors {
|
||||
top: true
|
||||
|
||||
@@ -205,7 +205,7 @@ Variants {
|
||||
focusable: false
|
||||
color: Color.transparent
|
||||
|
||||
WlrLayershell.namespace: "noctalia-dock-peek"
|
||||
WlrLayershell.namespace: "noctalia-dock-peek-" + (screen?.name || "unknown")
|
||||
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
||||
implicitHeight: peekHeight
|
||||
|
||||
@@ -244,7 +244,7 @@ Variants {
|
||||
focusable: false
|
||||
color: Color.transparent
|
||||
|
||||
WlrLayershell.namespace: "noctalia-dock-main"
|
||||
WlrLayershell.namespace: "noctalia-dock-" + (screen?.name || "unknown")
|
||||
WlrLayershell.exclusionMode: exclusive ? ExclusionMode.Auto : ExclusionMode.Ignore
|
||||
|
||||
// Size to fit the dock container exactly
|
||||
|
||||
@@ -44,7 +44,7 @@ Variants {
|
||||
sourceComponent: PanelWindow {
|
||||
screen: modelData
|
||||
|
||||
WlrLayershell.namespace: "noctalia-notifications"
|
||||
WlrLayershell.namespace: "noctalia-notifications-" + (screen?.name || "unknown")
|
||||
WlrLayershell.layer: (Settings.data.notifications && Settings.data.notifications.overlayLayer) ? WlrLayer.Overlay : WlrLayer.Top
|
||||
|
||||
color: Color.transparent
|
||||
|
||||
@@ -27,6 +27,22 @@ ColumnLayout {
|
||||
Layout.bottomMargin: Style.marginL
|
||||
}
|
||||
|
||||
NToggle {
|
||||
visible: Settings.data.wallpaper.enabled && CompositorService.isNiri
|
||||
label: I18n.tr("settings.wallpaper.settings.enable-overview.label")
|
||||
description: I18n.tr("settings.wallpaper.settings.enable-overview.description")
|
||||
checked: Settings.data.wallpaper.overviewEnabled
|
||||
onToggled: checked => Settings.data.wallpaper.overviewEnabled = checked
|
||||
Layout.bottomMargin: Style.marginL
|
||||
}
|
||||
|
||||
NDivider {
|
||||
visible: Settings.data.wallpaper.enabled
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: Style.marginXL
|
||||
Layout.bottomMargin: Style.marginXL
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
visible: Settings.data.wallpaper.enabled
|
||||
spacing: Style.marginL
|
||||
|
||||
Reference in New Issue
Block a user