File tree Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,7 @@ QML_RES_QML = \
342
342
qml/components/StorageSettings.qml \
343
343
qml/controls/ContinueButton.qml \
344
344
qml/controls/ExternalLink.qml \
345
+ qml/controls/FocusBorder.qml \
345
346
qml/controls/Header.qml \
346
347
qml/controls/InformationPage.qml \
347
348
qml/controls/NavButton.qml \
Original file line number Diff line number Diff line change 15
15
<file>components/StorageSettings.qml</file>
16
16
<file>controls/ContinueButton.qml</file>
17
17
<file>controls/ExternalLink.qml</file>
18
+ <file>controls/FocusBorder.qml</file>
18
19
<file>controls/Header.qml</file>
19
20
<file>controls/InformationPage.qml</file>
20
21
<file>controls/NavButton.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
+ import "../controls"
8
+
9
+
10
+ Rectangle {
11
+ id: root
12
+ property int topMargin: - 4
13
+ property int bottomMargin: - 4
14
+ property int leftMargin: - 4
15
+ property int rightMargin: - 4
16
+ property int borderRadius: 9
17
+
18
+ anchors .fill : parent
19
+ anchors .topMargin : root .topMargin
20
+ anchors .bottomMargin : root .bottomMargin
21
+ anchors .leftMargin : root .leftMargin
22
+ anchors .rightMargin : root .rightMargin
23
+ border .width : 2
24
+ border .color : Theme .color .purple
25
+ radius: root .borderRadius
26
+ color: " transparent"
27
+
28
+ Behavior on border .color {
29
+ ColorAnimation { duration: 150 }
30
+ }
31
+
32
+ Behavior on visible {
33
+ NumberAnimation { duration: 150 }
34
+ }
35
+ }
You can’t perform that action at this time.
0 commit comments