Snap: fix theming #3057
Use gtk3 file chooser dialogs, mouse coursor theme if available and force fallback icon theme, fixes issue #2966
Type of change
Description and Context
This is the continuation of PR #3028, now rebased on branch release/2.4.2 and with a patch to force the fallback icon theme to address inconsistencies and missing icon actions.
To recap this PR:
Ubuntu 18.04/19-04, Linux Mint, Zorin OS, Kubuntu, elementary OS.
Apr 25, 2019
I am sorry if I have posted this in the wrong place, and I will be happy to split this into a separate issue if GitHub does not provide tools to easily do that.
Is there a way to apply the fixes from this pull request to non-Snap packages? I am still experiencing this issue after updating to 2.4.2 (all of my packages are up-to-date), with multiple icon themes. I am using Arch Linux (with KeePassXC from the official repository) with the MATE desktop environment, and I tested with the following icon themes:
With each of these icon themes, with the exception of Adwaita, KeePassXC's icons were inconsistent or ambigous. I will now go in depth about the issues that I noticed.
It would be nice if there were a way to detect an icon theme (e.g. Breeze) and use a set of icons that looks more native to that icon theme. In the example of Breeze, it seems like most of the work is already done in the icon theme. Of course, I am not aware of how much work this would take, and I am not an icon designer. If this is not feasible, or as a stopgap solution, I would like KeePassXC to impose its own icon set for all themes so that the interface looks more consistent.
Here are some screenshots:
The code on linux is actively looking for the icon theme. Usually Qt apps tend to ship custom icons (what keepassxc is already doing) and then load this directly from the resource system. On windows and mac there's no system icon theme concept so there the default behavior is to load the fallback and custom shipped icons (from the resource system), on linux because of all the theme integration, Qt looks for an appropriate icon from the default system icon theme, if none is found, a fallback icon is loaded just like on windows.
I think a quick workaround would be to use the snap icon patch for all linux (also for appimage) targets. But that's just a workaround.