View Single Post
Old 04-18-2016, 02:22 PM   #24
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,893
Karma: 6120478
Join Date: Nov 2009
Device: many
So based on your tests and that arch linux wiki, it seems there are a number of minor changes we could make to the Linux sigil start-up script to force fusion as the style (or force one of the other working styles).

The arch linux site lists the following:

QGtkStyle - the one that seems to have problems
QGnomePlatform - for all gnome based systems
Breeze - default for KDE Plasma systems
Adwaita - new default gnome theme

and the ones built into Qt itself (Fusion).

From other reports it seems Adwaita and Fusion are known to work.

But given DiapDealer's opinion of Fusion - many people may not like it! ;-)

So I am not sure how we should handle this. The bug is not in Sigil and not in Qt. It is in a Qt Linux added theme. Calibre forces an adjusted Fusion theme to work around it.

What is the best way for Sigil to handle this?

FWIW - we can use QApplication::style() to get back the name of the style that the system defaults to on Linux and then compare it against a list of known good styles and if not a known good style force either Fusion or Adwaita depending on availability on that system.

Linux people - what would be best here?

KevinH


Quote:
Originally Posted by eschwartz View Post
As a Qt app, you can simply use `sigil -style Fusion` to force the fusion theme. It works perfectly, and quite frankly looks a lot better on general principle.

I might even be persuaded to start caring about themes at the rate things are going. I've always been a mostly oblivious user of themes and fonts and stuff but things are reaching a tipping point...
KevinH is online now   Reply With Quote