mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
22 lines
536 B
QML
22 lines
536 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import Quickshell
|
|
import Quickshell.Wayland
|
|
import qs.Commons
|
|
import qs.Services
|
|
import qs.Widgets
|
|
|
|
Variants {
|
|
model: Quickshell.screens
|
|
|
|
delegate: ToastScreen {
|
|
required property ShellScreen modelData
|
|
|
|
screen: modelData
|
|
scaling: ScalingService.getScreenScale(modelData)
|
|
|
|
// Only activate on enabled screens
|
|
active: Settings.isLoaded && modelData && (Settings.data.notifications.monitors.includes(modelData.name) || Settings.data.notifications.monitors.length === 0)
|
|
}
|
|
}
|