Warning, /graphics/washipad/src/ColorButton.qml is written in an unsupported language. File is not indexed.
0001 // This file is part of Washi Pad 0002 // SPDX-FileCopyrightText: 2018 Kevin Ottens <ervin@kde.org> 0003 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0004 0005 import QtQuick 2.0 0006 0007 ToolButton { 0008 id: root 0009 property bool active: false 0010 property color color: "black" 0011 0012 Rectangle { 0013 color: root.color 0014 0015 anchors.centerIn: parent 0016 width: height 0017 height: root.height * 0.6 0018 radius: height / 2 0019 } 0020 0021 Rectangle { 0022 visible: root.active 0023 color: "transparent" 0024 border.color: root.color 0025 border.width: 2 0026 0027 anchors.centerIn: parent 0028 width: height 0029 height: root.height * 0.8 0030 radius: height / 2 0031 } 0032 }