From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: OPNA2608 <opna2608@protonmail.com>
Date: Wed, 1 Jul 2026 17:42:01 +0200
Subject: [PATCH 3/4] qqc2-suru/qml-qt6: Move Overlay rectangles from
 ApplicationWindow to Popup

...I *think* that's where they should be set now?

(cherry picked from commit 1d289edc35c70b9f1097393eda23b42856e9ac03)
---
 qqc2-suru/qml-qt6/ApplicationWindow.qml | 10 ----------
 qqc2-suru/qml-qt6/Popup.qml             | 10 ++++++++++
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/qqc2-suru/qml-qt6/ApplicationWindow.qml b/qqc2-suru/qml-qt6/ApplicationWindow.qml
index 8f65fca..7a63177 100644
--- a/qqc2-suru/qml-qt6/ApplicationWindow.qml
+++ b/qqc2-suru/qml-qt6/ApplicationWindow.qml
@@ -30,16 +30,6 @@ T.ApplicationWindow {
 
     color: window.Suru.backgroundColor
 
-    overlay.modal: Rectangle {
-        color: window.Suru.overlayColor
-        Behavior on opacity { NumberAnimation { duration: window.Suru.animations.FastDuration } }
-    }
-
-    overlay.modeless: Rectangle {
-        color: window.Suru.overlayColor
-        Behavior on opacity { NumberAnimation { duration: window.Suru.animations.FastDuration } }
-    }
-
     Rectangle {
         parent: window.activeFocusControl
         anchors.centerIn: parent
diff --git a/qqc2-suru/qml-qt6/Popup.qml b/qqc2-suru/qml-qt6/Popup.qml
index 53e3929..d441934 100644
--- a/qqc2-suru/qml-qt6/Popup.qml
+++ b/qqc2-suru/qml-qt6/Popup.qml
@@ -57,4 +57,14 @@ T.Popup {
             elevation: 3
         }
     }
+
+    T.Overlay.modal: Rectangle {
+        color: control.Suru.overlayColor
+        Behavior on opacity { NumberAnimation { duration: control.Suru.animations.FastDuration } }
+    }
+
+    T.Overlay.modeless: Rectangle {
+        color: control.Suru.overlayColor
+        Behavior on opacity { NumberAnimation { duration: control.Suru.animations.FastDuration } }
+    }
 }
