Skip to content

Commit 839d396

Browse files
committed
qml: Add UI Snapshot files to Make system
1 parent 7b056a0 commit 839d396

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

src/Makefile.qt.include

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,14 @@ QML_RES_ICONS = \
337337
qml/res/icons/caret-left.png \
338338
qml/res/icons/caret-right.png \
339339
qml/res/icons/check.png \
340+
qml/res/icons/circle-file.png \
341+
qml/res/icons/circle-green-check.png \
340342
qml/res/icons/cross.png \
341343
qml/res/icons/error.png \
342344
qml/res/icons/export.png \
343345
qml/res/icons/gear.png \
344346
qml/res/icons/gear-outline.png \
347+
qml/res/icons/green-check.png \
345348
qml/res/icons/hidden.png \
346349
qml/res/icons/info.png \
347350
qml/res/icons/network-dark.png \
@@ -367,14 +370,17 @@ QML_RES_QML = \
367370
qml/components/ConnectionSettings.qml \
368371
qml/components/DeveloperOptions.qml \
369372
qml/components/ExternalPopup.qml \
373+
qml/components/LoadedSnapshotSettings.qml \
370374
qml/components/PeersIndicator.qml \
371375
qml/components/NetworkTrafficGraph.qml \
372376
qml/components/NetworkIndicator.qml \
377+
qml/components/ProgressBarSettings.qml \
373378
qml/components/ProxySettings.qml \
374379
qml/components/Separator.qml \
375380
qml/components/StorageLocations.qml \
376381
qml/components/StorageOptions.qml \
377382
qml/components/StorageSettings.qml \
383+
qml/components/SnapshotSettings.qml \
378384
qml/components/ThemeSettings.qml \
379385
qml/components/TotalBytesIndicator.qml \
380386
qml/components/Tooltip.qml \
@@ -384,6 +390,7 @@ QML_RES_QML = \
384390
qml/controls/CoreTextField.qml \
385391
qml/controls/ExternalLink.qml \
386392
qml/controls/FocusBorder.qml \
393+
qml/controls/GreenCheckIcon.qml \
387394
qml/controls/Header.qml \
388395
qml/controls/Icon.qml \
389396
qml/controls/InformationPage.qml \
@@ -424,7 +431,10 @@ QML_RES_QML = \
424431
qml/pages/settings/SettingsConnection.qml \
425432
qml/pages/settings/SettingsDeveloper.qml \
426433
qml/pages/settings/SettingsDisplay.qml \
434+
qml/pages/settings/SettingsLoadedSnapshot.qml \
435+
qml/pages/settings/SettingsProgressBar.qml \
427436
qml/pages/settings/SettingsProxy.qml \
437+
qml/pages/settings/SettingsSnapshot.qml \
428438
qml/pages/settings/SettingsStorage.qml \
429439
qml/pages/settings/SettingsTheme.qml \
430440
qml/pages/wallet/AddWallet.qml \

src/qml/bitcoin_qml.qrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@
1010
<file>components/PeersIndicator.qml</file>
1111
<file>components/DeveloperOptions.qml</file>
1212
<file>components/ExternalPopup.qml</file>
13+
<file>components/LoadedSnapshotSettings.qml</file>
1314
<file>components/NetworkTrafficGraph.qml</file>
1415
<file>components/NetworkIndicator.qml</file>
16+
<file>components/ProgressBarSettings.qml</file>
1517
<file>components/ProxySettings.qml</file>
1618
<file>components/StorageLocations.qml</file>
1719
<file>components/Separator.qml</file>
20+
<file>components/SnapshotSettings.qml</file>
1821
<file>components/StorageOptions.qml</file>
1922
<file>components/StorageSettings.qml</file>
2023
<file>components/ThemeSettings.qml</file>
@@ -25,6 +28,7 @@
2528
<file>controls/CoreTextField.qml</file>
2629
<file>controls/ExternalLink.qml</file>
2730
<file>controls/FocusBorder.qml</file>
31+
<file>controls/GreenCheckIcon.qml</file>
2832
<file>controls/Header.qml</file>
2933
<file>controls/Icon.qml</file>
3034
<file>controls/InformationPage.qml</file>
@@ -65,7 +69,10 @@
6569
<file>pages/settings/SettingsConnection.qml</file>
6670
<file>pages/settings/SettingsDeveloper.qml</file>
6771
<file>pages/settings/SettingsDisplay.qml</file>
72+
<file>pages/settings/SettingsLoadedSnapshot.qml</file>
73+
<file>pages/settings/SettingsProgressBar.qml</file>
6874
<file>pages/settings/SettingsProxy.qml</file>
75+
<file>pages/settings/SettingsSnapshot.qml</file>
6976
<file>pages/settings/SettingsStorage.qml</file>
7077
<file>pages/settings/SettingsTheme.qml</file>
7178
<file>pages/wallet/AddWallet.qml</file>
@@ -91,11 +98,14 @@
9198
<file alias="caret-left">res/icons/caret-left.png</file>
9299
<file alias="caret-right">res/icons/caret-right.png</file>
93100
<file alias="check">res/icons/check.png</file>
101+
<file alias="circle-file">res/icons/circle-file.png</file>
102+
<file alias="circle-green-check">res/icons/circle-green-check.png</file>
94103
<file alias="cross">res/icons/cross.png</file>
95104
<file alias="error">res/icons/error.png</file>
96105
<file alias="export">res/icons/export.png</file>
97106
<file alias="gear">res/icons/gear.png</file>
98107
<file alias="gear-outline">res/icons/gear-outline.png</file>
108+
<file alias="green-check">res/icons/green-check.png</file>
99109
<file alias="hidden">res/icons/hidden.png</file>
100110
<file alias="info">res/icons/info.png</file>
101111
<file alias="minus">res/icons/minus.png</file>

src/qml/imageprovider.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ QPixmap ImageProvider::requestPixmap(const QString& id, QSize* size, const QSize
7777
return QIcon(":/icons/check").pixmap(requested_size);
7878
}
7979

80+
if (id == "circle-file") {
81+
*size = requested_size;
82+
return QIcon(":/icons/circle-file").pixmap(requested_size);
83+
}
84+
85+
if (id == "circle-green-check") {
86+
*size = requested_size;
87+
return QIcon(":/icons/circle-green-check").pixmap(requested_size);
88+
}
89+
8090
if (id == "cross") {
8191
*size = requested_size;
8292
return QIcon(":/icons/cross").pixmap(requested_size);
@@ -102,6 +112,11 @@ QPixmap ImageProvider::requestPixmap(const QString& id, QSize* size, const QSize
102112
return QIcon(":/icons/gear-outline").pixmap(requested_size);
103113
}
104114

115+
if (id == "green-check") {
116+
*size = requested_size;
117+
return QIcon(":/icons/green-check").pixmap(requested_size);
118+
}
119+
105120
if (id == "info") {
106121
*size = requested_size;
107122
return QIcon(":/icons/info").pixmap(requested_size);

0 commit comments

Comments
 (0)