Skip to content

Commit

Permalink
qml: Add pending light/dark to imageprovider
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny9 committed Dec 1, 2024
1 parent ff0efa9 commit 690058f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/qml/controls/Theme.qml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Control {
required property url blocktime
required property url network
required property url storage
required property url pending
required property url tooltipArrow
}

Expand Down
9 changes: 7 additions & 2 deletions src/qml/imageprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,14 @@ QPixmap ImageProvider::requestPixmap(const QString& id, QSize* size, const QSize
return QIcon(":/icons/flip-vertical").pixmap(requested_size);
}

if (id == "pending") {
if (id == "pending-dark") {
*size = requested_size;
return QIcon(":/icons/pending").pixmap(requested_size);
return QIcon(":/icons/pending-dark").pixmap(requested_size);
}

if (id == "pending-light") {
*size = requested_size;
return QIcon(":/icons/pending-light").pixmap(requested_size);
}

if (id == "copy") {
Expand Down

0 comments on commit 690058f

Please sign in to comment.