File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -362,6 +362,7 @@ QML_RES_QML = \
362
362
qml/controls/ExternalLink.qml \
363
363
qml/controls/FocusBorder.qml \
364
364
qml/controls/Header.qml \
365
+ qml/controls/Icon.qml \
365
366
qml/controls/InformationPage.qml \
366
367
qml/controls/NavButton.qml \
367
368
qml/controls/PageIndicator.qml \
Original file line number Diff line number Diff line change 23
23
<file>controls/ExternalLink.qml</file>
24
24
<file>controls/FocusBorder.qml</file>
25
25
<file>controls/Header.qml</file>
26
+ <file>controls/Icon.qml</file>
26
27
<file>controls/InformationPage.qml</file>
27
28
<file>controls/NavButton.qml</file>
28
29
<file>controls/PageIndicator.qml</file>
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2023 The Bitcoin Core developers
2
+ // Distributed under the MIT software license, see the accompanying
3
+ // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+ import QtQuick 2.15
6
+ import QtQuick.Controls 2.15
7
+
8
+ Button {
9
+ id: root
10
+ required property color color
11
+ required property url source
12
+ property int size: 32
13
+ focusPolicy: Qt .NoFocus
14
+ padding: 0
15
+ icon .source : root .source
16
+ icon .color : root .color
17
+ icon .height : root .size
18
+ icon .width : root .size
19
+ enabled: false
20
+ background: null
21
+
22
+ Behavior on icon .color {
23
+ ColorAnimation {
24
+ duration: 150
25
+ }
26
+ }
27
+ }
You can’t perform that action at this time.
0 commit comments