blob: cdea430c40c42bee20de786db1bd0f0d749046e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
import QtQuick
import QtQuick.Templates as T
Rectangle {
id: root
implicitWidth: 16
implicitHeight: 16
radius: 8
color: "transparent"
border.color: picker.visualFocus ? "#0066ff" : (picker.pressed ? "#36383a" : "#454647")
border.width: 1
required property T.Control picker
property alias handleColor: circle.color
Rectangle {
id: circle
x: 1
y: 1
width: 14
height: 14
radius: 7
color: "transparent"
border.color: root.picker.visualFocus ? "#0066ff" : (root.picker.pressed ? "#86888a" : "#959697")
border.width: 1
}
}
|