forked from quickshell/quickshell
services/tray: use normal icon as fallback for attention custom icon
Signed-off-by: ipg0 <pyromancy00@gmail.com>
This commit is contained in:
parent
91dcb41d22
commit
115d6717a8
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue