From 690058ff51e307034764a4e7f03ac35f6b9bdcb2 Mon Sep 17 00:00:00 2001 From: johnny9 <985648+johnny9@users.noreply.github.com> Date: Sun, 1 Dec 2024 10:26:39 -0500 Subject: [PATCH] qml: Add pending light/dark to imageprovider --- src/qml/controls/Theme.qml | 1 + src/qml/imageprovider.cpp | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/qml/controls/Theme.qml b/src/qml/controls/Theme.qml index 90b20fc49..58893d697 100644 --- a/src/qml/controls/Theme.qml +++ b/src/qml/controls/Theme.qml @@ -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 } diff --git a/src/qml/imageprovider.cpp b/src/qml/imageprovider.cpp index abf51091e..d97b2a1e9 100644 --- a/src/qml/imageprovider.cpp +++ b/src/qml/imageprovider.cpp @@ -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") {