Icon fixes

This commit is contained in:
Javier Feliz 2025-08-28 13:38:14 -04:00
parent 3a66939627
commit 24ac5dc0e6
2 changed files with 2 additions and 5 deletions

View File

@ -133,9 +133,7 @@ QUrl AppListModel::getIconUrl(const dmenu::DesktopEntry &app) const
// Use Qt's proper icon theme search which follows XDG spec // Use Qt's proper icon theme search which follows XDG spec
QIcon icon = QIcon::fromTheme(iconName); QIcon icon = QIcon::fromTheme(iconName);
if (icon.isNull()) { bool themeFound = !icon.isNull();
return QUrl();
}
// Qt doesn't expose the resolved file path directly, so let's use QStandardPaths // Qt doesn't expose the resolved file path directly, so let's use QStandardPaths
// to search in the proper system directories // to search in the proper system directories
@ -150,7 +148,7 @@ QUrl AppListModel::getIconUrl(const dmenu::DesktopEntry &app) const
"icons/hicolor/128x128/apps", "icons/hicolor/128x128/apps",
"icons/Adwaita/scalable/apps", "icons/Adwaita/scalable/apps",
"icons/Adwaita/48x48/apps", "icons/Adwaita/48x48/apps",
"pixmaps" "pixmaps" // This should search /path/to/share/pixmaps/
}; };
QStringList extensions = {"", ".png", ".svg", ".xpm"}; QStringList extensions = {"", ".png", ".svg", ".xpm"};

View File

@ -24,7 +24,6 @@ ApplicationWindow {
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
radius: 8
border.width: 1 border.width: 1
border.color: palette.mid border.color: palette.mid
color: palette.window color: palette.window