Warning, /plasma/qqc2-breeze-style/style/qtquickcontrols/Popup.qml is written in an unsupported language. File is not indexed.
0001 /* SPDX-FileCopyrightText: 2017 The Qt Company Ltd.
0002 * SPDX-FileCopyrightText: 2017 Marco Martin <mart@kde.org>
0003 * SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com>
0004 * SPDX-License-Identifier: LicenseRef-KDE-Accepted-LGPL
0005 */
0006
0007
0008 import QtQuick
0009 import QtQuick.Templates as T
0010 import org.kde.kirigami as Kirigami
0011 import org.kde.breeze.impl as Impl
0012
0013 T.Popup {
0014 id: control
0015
0016 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
0017 contentWidth + leftPadding + rightPadding)
0018 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
0019 contentHeight + topPadding + bottomPadding)
0020
0021 padding: Impl.Units.veryLargeSpacing
0022 // clip: true
0023
0024 enter: Transition {
0025 OpacityAnimator {
0026 //property: "opacity"
0027 from: 0
0028 to: 1
0029 easing.type: Easing.InOutQuad
0030 duration: Kirigami.Units.shortDuration
0031 }
0032 }
0033
0034 exit: Transition {
0035 OpacityAnimator {
0036 //property: "opacity"
0037 from: 1
0038 to: 0
0039 easing.type: Easing.InOutQuad
0040 duration: Kirigami.Units.shortDuration
0041 }
0042 }
0043
0044 background: Rectangle {
0045 radius: Impl.Units.smallRadius
0046 // implicitHeight: Impl.Units.smallControlHeight
0047 //implicitWidth: Kirigami.Units.gridUnit * 12
0048 color: Kirigami.Theme.backgroundColor
0049
0050 border {
0051 color: Impl.Theme.separatorColor()
0052 width: control.dim ? 0 : Impl.Units.smallBorder
0053 }
0054
0055 Impl.MediumShadow {
0056 radius: parent.radius
0057 }
0058 }
0059
0060 T.Overlay.modal: Impl.OverlayModalBackground {}
0061 T.Overlay.modeless: Impl.OverlayDimBackground {}
0062 }