lxqt / lxqt-archiver

A simple & lightweight desktop-agnostic Qt file archiver
https://lxqt.github.io
GNU General Public License v2.0
39 stars 29 forks source link

Added fallback icons to toolbar and menu #369

Closed redtide closed 1 year ago

redtide commented 1 year ago

for non rich icon sets which don't include icons not listed in the Freedesktop standard icon name list.

Note (in the comments) that I had no way to check if the current icons set in the UI were created successfully, but I haven't modified the ui file, so what is better, removing and leave the code as is or test one icon? E.g.:

QIcon icon = QIcon::fromTheme(QStringLiteral("archive-extract"));
if (icon.isNull()) {
   ui_->actionExtract->setIcon(QStringLiteral("go-up"));
   ui_->actionAddFiles->setIcon(QStringLiteral("insert-object"));
   // ...
}

Closes #368