PDA

View Full Version : Fusion color configuration



steve.declerck
11th April 2013, 13:24
Hi !

Completely new to Qt, trying my first project. I discovered that the old styles are removed under Qt5 (pity). Fusion seems standard now. In this article, there are 3 color configurations :
http://blog.qt.digia.com/blog/2012/10/30/cleaning-up-styles-in-qt5-and-adding-fusion/
I'm wondering how I can get the effect of the second image (bluish) ? The default behaviour I have is the first image.
Searched already forums and google to no avail...

Thanks a lot in advance,
Steve

ChrisW67
12th April 2013, 00:00
From one of the comments on that blog post:


Jens says:
November 15, 2012 at 02:07

They are essentially just tweaked using Designers palette editor. Just open a form in designer and click on the palette section. Alternatively you can try the built-in palette by doing qApp->setPalette(style()->standardPalette()).

Unfortunately the conversation only reveals the colours (approx) used for the dark variant:


Jens says:
January 9, 2013 at 11:18

I dont have the original but you should be able to get close by just setting these colors I found using the colorpicker tool:
window/button: #353535
highlight: #8e2dc5

The main trick to making your own color schemes is to use gray or only very low saturation on the background color. For the highlight color you can be a bit more bold but avoid strong primary colors like full red or yellow. Follow those rules and almost all the schemes look reasonably well.

You could just sample the colours from the screenshot image in gimp or something like that.

The legacy styles can be had from git:
https://codereview.qt-project.org/#q,project:qt/qtstyleplugins,n,z
http://qt.gitorious.org/qt/qtstyleplugins

steve.declerck
12th April 2013, 08:01
Hello Chris,

Yes, pity, only the dark variant was explained.
I will go for the legacy styles, thanks a lot for providing the links !

Best regards...

Added after 11 minutes:

But installing these plugins seems rather difficult for a newbie...