mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
use variants for multi display volume popup/toast/notification
This commit is contained in:
@@ -5,6 +5,9 @@ import qs.Services
|
||||
|
||||
QtObject {
|
||||
id: manager
|
||||
|
||||
property var modelData
|
||||
|
||||
property int topMargin: 0
|
||||
property int baseNotificationHeight: 120
|
||||
property int maxTargetNotifications: 3
|
||||
@@ -84,7 +87,8 @@ QtObject {
|
||||
const win = popupComponent.createObject(null, {
|
||||
notificationData: wrapper,
|
||||
notificationId: notificationId,
|
||||
screenY: topMargin
|
||||
screenY: topMargin,
|
||||
screen: manager.modelData
|
||||
});
|
||||
|
||||
if (!win) {
|
||||
|
||||
@@ -9,7 +9,10 @@ import qs.Widgets
|
||||
|
||||
PanelWindow {
|
||||
id: root
|
||||
|
||||
|
||||
property var modelData
|
||||
screen: modelData
|
||||
|
||||
visible: ToastService.toastVisible
|
||||
WlrLayershell.layer: WlrLayershell.Overlay
|
||||
WlrLayershell.exclusiveZone: -1
|
||||
|
||||
@@ -9,7 +9,10 @@ import qs.Widgets
|
||||
|
||||
PanelWindow {
|
||||
id: root
|
||||
|
||||
|
||||
property var modelData
|
||||
screen: modelData
|
||||
|
||||
property bool volumePopupVisible: false
|
||||
|
||||
function show() {
|
||||
|
||||
Reference in New Issue
Block a user