Warning, /plasma/latte-dock/declarativeimports/components/private/RoundShadow.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2019 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 /**Documented API
0007 Inherits:
0008         Item
0009 Imports:
0010         QtQuick 2.1
0011         org.kde.plasma.core
0012 Description:
0013         It is a simple Radio button which is using the plasma theme.
0014         TODO Do we need more info?
0015 Properties:
0016         TODO needs more info??
0017 **/
0018 
0019 import QtQuick 2.1
0020 import org.kde.plasma.core 2.0 as PlasmaCore
0021 
0022 Item {
0023     id: main
0024     state: parent.state
0025     property alias imagePath: shadowSvg.imagePath
0026     property string hoverElement: "hover"
0027     property string focusElement: "focus"
0028     property alias shadowElement: shadow.elementId
0029 
0030     //used to tell apart this implementation with the touch components one
0031     property bool hasOverState: true
0032 
0033     PlasmaCore.Svg {
0034         id: shadowSvg
0035         imagePath: "widgets/actionbutton"
0036     }
0037 
0038     PlasmaCore.SvgItem {
0039         id: hover
0040         svg: shadowSvg
0041         elementId: "hover"
0042 
0043         anchors.fill: parent
0044 
0045         opacity: 0
0046     }
0047 
0048     PlasmaCore.SvgItem {
0049         id: shadow
0050         svg: shadowSvg
0051         elementId: "shadow"
0052 
0053         anchors.fill: parent
0054     }
0055 
0056     states: [
0057         State {
0058             name: "shadow"
0059             PropertyChanges {
0060                 target: shadow
0061                 opacity: 1
0062             }
0063             PropertyChanges {
0064                 target: hover
0065                 opacity: 0
0066                 elementId: hoverElement
0067             }
0068         },
0069         State {
0070             name: "hover"
0071             PropertyChanges {
0072                 target: shadow
0073                 opacity: 0
0074             }
0075             PropertyChanges {
0076                 target: hover
0077                 opacity: 1
0078                 elementId: hoverElement
0079             }
0080         },
0081         State {
0082             name: "focus"
0083             PropertyChanges {
0084                 target: shadow
0085                 opacity: 0
0086             }
0087             PropertyChanges {
0088                 target: hover
0089                 opacity: 1
0090                 elementId: focusElement
0091             }
0092         },
0093         State {
0094             name: "hidden"
0095             PropertyChanges {
0096                 target: shadow
0097                 opacity: 0
0098             }
0099             PropertyChanges {
0100                 target: hover
0101                 opacity: 0
0102                 elementId: hoverElement
0103             }
0104         }
0105     ]
0106 
0107     transitions: [
0108         Transition {
0109             PropertyAnimation {
0110                 properties: "opacity"
0111                 duration: units.longDuration
0112                 easing.type: Easing.OutQuad
0113             }
0114         }
0115     ]
0116 }