mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
services/tray: use normal icon as fallback for attention custom icon
Signed-off-by: ipg0 <[email protected]>
This commit is contained in:
1 file changed
+4
@@ -163,6 +163,10 @@ QPixmap StatusNotifierItem::createPixmap(const QSize& size) const {
|
||||
} else {
|
||||
const auto* icon = closestPixmap(size, this->bAttentionIconPixmaps.value());
|
||||
|
||||
if (icon == nullptr) {
|
||||
icon = closestPixmap(size, this->bIconPixmaps.value());
|
||||
}
|
||||
|
||||
if (icon != nullptr) {
|
||||
const auto image =
|
||||
icon->createImage().scaled(size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
|
||||
|
||||
Reference in new issue
Block a user