Skip to content

Commit

Permalink
qml: Updated controls for UI Snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
D33r-Gee committed Sep 27, 2024
1 parent b5ff5b6 commit 54d1049
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/qml/controls/GreenCheckIcon.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright (c) 2023 - present The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

import QtQuick 2.15
import QtQuick.Controls 2.15

Icon {
source: "image://images/green-check"
size: 26
}
4 changes: 3 additions & 1 deletion src/qml/controls/ProgressIndicator.qml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import QtQuick.Controls 2.15

Control {
property real progress: 0
property color progressColor: Theme.color.orange

Behavior on progress {
NumberAnimation {
easing.type: Easing.Bezier
Expand All @@ -26,7 +28,7 @@ Control {
width: contentItem.width
height: contentItem.height
radius: contentItem.radius
color: Theme.color.orange
color: progressColor
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/qml/controls/Theme.qml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Control {
required property color blue
required property color amber
required property color purple
required property color transparent
required property color neutral0
required property color neutral1
required property color neutral2
Expand Down Expand Up @@ -59,6 +60,7 @@ Control {
blue: "#3CA3DE"
amber: "#C9B500"
purple: "#C075DC"
transparent: "#00000000"
neutral0: "#000000"
neutral1: "#1A1A1A"
neutral2: "#2D2D2D"
Expand Down Expand Up @@ -91,6 +93,7 @@ Control {
blue: "#2D9CDB"
amber: "#C9B500"
purple: "#BB6BD9"
transparent: "#00000000"
neutral0: "#FFFFFF"
neutral1: "#F8F8F8"
neutral2: "#F4F4F4"
Expand Down

0 comments on commit 54d1049

Please sign in to comment.