From 24ac5dc0e699d2a7d61527d58098f73597fe2ebc Mon Sep 17 00:00:00 2001 From: Javier Feliz Date: Thu, 28 Aug 2025 13:38:14 -0400 Subject: [PATCH] Icon fixes --- lib/ui/AppListModel.cpp | 6 ++---- ui/Main.qml | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/ui/AppListModel.cpp b/lib/ui/AppListModel.cpp index 8acaf19..8d397f5 100644 --- a/lib/ui/AppListModel.cpp +++ b/lib/ui/AppListModel.cpp @@ -133,9 +133,7 @@ QUrl AppListModel::getIconUrl(const dmenu::DesktopEntry &app) const // Use Qt's proper icon theme search which follows XDG spec QIcon icon = QIcon::fromTheme(iconName); - if (icon.isNull()) { - return QUrl(); - } + bool themeFound = !icon.isNull(); // Qt doesn't expose the resolved file path directly, so let's use QStandardPaths // to search in the proper system directories @@ -150,7 +148,7 @@ QUrl AppListModel::getIconUrl(const dmenu::DesktopEntry &app) const "icons/hicolor/128x128/apps", "icons/Adwaita/scalable/apps", "icons/Adwaita/48x48/apps", - "pixmaps" + "pixmaps" // This should search /path/to/share/pixmaps/ }; QStringList extensions = {"", ".png", ".svg", ".xpm"}; diff --git a/ui/Main.qml b/ui/Main.qml index f79046a..efbfd95 100644 --- a/ui/Main.qml +++ b/ui/Main.qml @@ -24,7 +24,6 @@ ApplicationWindow { Rectangle { anchors.fill: parent - radius: 8 border.width: 1 border.color: palette.mid color: palette.window