Kirigami2

GenericDrawerIcon.qml
1 /*
2  * SPDX-FileCopyrightText: 2015 Marco Martin <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.0-or-later
5  */
6 
7 import QtQuick 2.1
8 import org.kde.kirigami 2.4 as Kirigami
9 
10 Item {
11  width: height
12  height: Kirigami.Units.iconSizes.smallMedium
13  property Kirigami.OverlayDrawer drawer
14  property color color: Kirigami.Theme.textColor
15  opacity: 0.8
16  layer.enabled: true
17 
18  Kirigami.Icon {
19  selected: drawer.handle.pressed
20  opacity: 1 - drawer.position
21  anchors.fill: parent
22  source: drawer.handleClosedIcon.name ? drawer.handleClosedIcon.name : drawer.handleClosedIcon.source
23  color: drawer.handleClosedIcon.color
24  }
25  Kirigami.Icon {
26  selected: drawer.handle.pressed
27  opacity: drawer.position
28  anchors.fill: parent
29  source: drawer.handleOpenIcon.name ? drawer.handleOpenIcon.name : drawer.handleOpenIcon.source
30  color: drawer.handleOpenIcon.color
31  }
32 }
33 
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 04:11:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.