Kirigami2

GenericDrawerIcon.qml
1/*
2 * SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7import QtQuick
8import org.kde.kirigami as Kirigami
9
10Item {
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-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.