Warning, /plasma/flatpak-kcm/ui/KcmPopupModal.qml is written in an unsupported language. File is not indexed.
0001 /** 0002 * SPDX-FileCopyrightText: 2023 ivan tkachenko <me@ratijas.tk> 0003 * SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 import QtQuick 0007 import org.kde.kirigami as Kirigami 0008 0009 // Copy of Kirigami.Dialog modal overlay, with adjustments for KCM footer margin. 0010 Item { 0011 id: background 0012 0013 // to account for extra margin in KCM footer 0014 property int bottomMargin: 8 0015 0016 Kirigami.Separator { 0017 id: separator 0018 visible: false 0019 } 0020 0021 // black background, fades in and out 0022 Rectangle { 0023 color: Qt.rgba(0, 0, 0, 0.3) 0024 anchors { 0025 fill: parent 0026 // Don't cover the extra footer margin area to avoid eye-bleeding 0027 // experience. KCM doesn't have control over user's interactions 0028 // in that area anyway. 0029 bottomMargin: background.bottomMargin + separator.implicitHeight 0030 } 0031 } 0032 0033 // the opacity of the item is changed internally by QQuickPopup on open/close 0034 Behavior on opacity { 0035 OpacityAnimator { 0036 duration: Kirigami.Units.longDuration 0037 easing.type: Easing.InOutQuad 0038 } 0039 } 0040 }