Hi there again! I would like to make a suggestion regarding theming (on Linux). As I understand, XnView currently uses the Qt5 toolkit. There are various ways to style Qt5/6 applications, one of them being the Kvantum engine - which can be installed systemwide and then enabled via, say, qt5ct.
Most, if not all, Qt5 applications respect the Qt style setting ('platform theme') when it's changed to Kvantum. XnView, however, will always fall back on using the default Fusion style in such case, and will never accept any Kvantum themes. I should note that no errors are written in the terminal when this is attempted, and the program does not crash - it merely reverts to Fusion, with the default white-blue color palette.
Adding support for this theming engine to XnView is not essential, but still would be rather nice, as it offers more options for theming and better system integration. Unfortunately I am not familiar with the inner workings of Qt, so I cannot say whether such a request is trivial to implement, if at all possible.
Kvantum engine support
Moderator: xnview
-
Wormwood
- Posts: 14
- Joined: Wed Mar 11, 2026 5:33 pm
Re: Kvantum engine support
Kvantum still appears to be completely ignored in 1.12.1 using Qt6. But in addition, the application now always defaults to the Fusion theme using the color palette of current GTK theme (sometimes with less than perfect results). Palette colors manually set for Fusion in qt6ct are simply ignored. It would be nice to at least bring the old Fusion palette behavior back...
-
xnview
- Author of XnView
- Posts: 49076
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Kvantum engine support
and 1.12.2?
-
Wormwood
- Posts: 14
- Joined: Wed Mar 11, 2026 5:33 pm
Re: Kvantum engine support
Exactly the same story, I'm afraid:
Kvantum - ignored completely.
Gtk 2 - ignored completely (this Qt platform theme is deprecated in Debian 13, but in fact used to work with versions up to and including 1.11.7 and still works with other Qt6 applications if you can install it).
Fusion - Gtk 3 colors are forced, custom palettes are ignored.
Windows - ignored (both style and palettes).
I also noticed that Qt6 versions of XnView use Gtk color picker in Settings dialog when choosing colors for thumbnail background etc. - instead of the old (arguably better) Windows-style picker in Qt5 versions. Could be related. My DE is Xfce, if that helps.
Kvantum - ignored completely.
Gtk 2 - ignored completely (this Qt platform theme is deprecated in Debian 13, but in fact used to work with versions up to and including 1.11.7 and still works with other Qt6 applications if you can install it).
Fusion - Gtk 3 colors are forced, custom palettes are ignored.
Windows - ignored (both style and palettes).
I also noticed that Qt6 versions of XnView use Gtk color picker in Settings dialog when choosing colors for thumbnail background etc. - instead of the old (arguably better) Windows-style picker in Qt5 versions. Could be related. My DE is Xfce, if that helps.
-
Wormwood
- Posts: 14
- Joined: Wed Mar 11, 2026 5:33 pm
Re: Kvantum engine support
For comparison, in Qt5 versions including 1.11.7 it's like this:
Kvantum - ignored, Xnview reverts to Fusion with the default palette (or a palette currently set in qt5ct).
Gtk 2 - works very well. Certain UI elements (sliders etc.) are slightly misplaced, but it's 100% usable and blends right in with other applications.
Fusion - everything works. Custom palettes and stylesheets are all respected.
Windows - ditto.
Cleanlooks - only the custom palette works. The style itself is ignored and the program reverts to Fusion. Like Gtk 2, it no longer exists in Debian 13 officially.
Kvantum - ignored, Xnview reverts to Fusion with the default palette (or a palette currently set in qt5ct).
Gtk 2 - works very well. Certain UI elements (sliders etc.) are slightly misplaced, but it's 100% usable and blends right in with other applications.
Fusion - everything works. Custom palettes and stylesheets are all respected.
Windows - ditto.
Cleanlooks - only the custom palette works. The style itself is ignored and the program reverts to Fusion. Like Gtk 2, it no longer exists in Debian 13 officially.