Warning, /plasma/plasma-workspace/components/containmentlayoutmanager/qml/private/BasicResizeHandle.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2019 Marco Martin <mart@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.12 0008 0009 import org.kde.plasma.private.containmentlayoutmanager 1.0 as ContainmentLayoutManager 0010 import org.kde.kirigami 2.14 as Kirigami 0011 0012 ContainmentLayoutManager.ResizeHandle { 0013 id: handle 0014 width: overlay.touchInteraction ? Kirigami.Units.gridUnit * 2 : Kirigami.Units.gridUnit 0015 height: width 0016 z: 999 0017 0018 Kirigami.ShadowedRectangle { 0019 anchors.fill: parent 0020 color: resizeBlocked ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.backgroundColor 0021 0022 radius: width 0023 0024 shadow.size: Kirigami.Units.smallSpacing 0025 shadow.color: Qt.rgba(0.0, 0.0, 0.0, 0.2) 0026 shadow.yOffset: 2 0027 0028 border.width: 1 0029 border.color: Qt.tint(Kirigami.Theme.textColor, 0030 Qt.rgba(color.r, color.g, color.b, 0.3)) 0031 } 0032 Rectangle { 0033 anchors { 0034 fill: parent 0035 margins: 0.5 0036 } 0037 border { 0038 width: 0.5 0039 color: Qt.rgba(1, 1, 1, 0.2) 0040 } 0041 gradient: Gradient { 0042 GradientStop { position: 0.0; color: handle.pressed ? Qt.rgba(0, 0, 0, 0.15) : Qt.rgba(1, 1, 1, 0.05) } 0043 GradientStop { position: 1.0; color: handle.pressed ? Qt.rgba(0, 0, 0, 0.15) : Qt.rgba(0, 0, 0, 0.05) } 0044 } 0045 0046 radius: width 0047 } 0048 scale: overlay.open ? 1 : 0 0049 Behavior on scale { 0050 NumberAnimation { 0051 duration: Kirigami.Units.longDuration 0052 easing.type: Easing.InOutQuad 0053 } 0054 } 0055 } 0056