Warning, /plasma/plasma-sdk/themeexplorer/package/contents/ui/ColorButton.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  *   SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
0003  *
0004  *   SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 import QtQuick 2.3
0008 import QtQuick.Layouts 1.1
0009 import QtQuick.Controls 2.15
0010 import QtQuick.Dialogs
0011 import org.kde.kirigami 2.20 as Kirigami
0012 
0013 Button {
0014     id: colorButton
0015     Layout.minimumWidth: Kirigami.Units.gridUnit * 3
0016     onClicked: {
0017         colorDialog.activeButton = colorButton;
0018         colorDialog.open();
0019     }
0020     property alias color: colorRect.color;
0021 
0022     Rectangle {
0023         id: colorRect
0024         anchors.centerIn: parent
0025         width: parent.width - 2 * Kirigami.Units.smallSpacing
0026         height: Kirigami.Units.gridUnit
0027     }
0028 }