Warning, /rolisteam/rolisteam/src/libraries/qml_views/CustomItems/ColorPicker.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 0002 import QtQuick.Controls 0003 import QtQuick.Dialogs 0004 import Qt.labs.platform 0005 0006 Button { 0007 id: _root 0008 property color color 0009 signal colorEdited(color col) 0010 0011 0012 ColorDialog { 0013 id: _dialog 0014 currentColor: _root.color 0015 color: _root.color 0016 onAccepted: _root.colorEdited(_dialog.color) 0017 } 0018 0019 background: Rectangle { 0020 id: _back 0021 implicitWidth: 30 0022 implicitHeight: 30 0023 visible: !_root.flat || _root.down || _root.checked || _root.highlighted 0024 color: _root.down ? Qt.lighter(_root.color) : _root.color 0025 border.width: 0 0026 radius: 2 0027 } 0028 0029 onClicked: _dialog.open() 0030 }