[Qt-creator] Adjusting styles of QtCreator
Michael Jackson
mike.jackson at bluequartz.net
Wed Jan 23 14:56:36 CET 2019
After some experimentation I can definitely adjust the scroll bars but along with that a lot of the other widgets are also set to the same color. Probably what needs to happen is to extend the theming to allow for more granular (my personal wish) setting or just a "hard look" at the themes and their use of colors for things like scroll bars and other issues. The QtCreator UX is generally pretty good but there is always room for improvement.
I may go down the path of compiling QtCreator myself and messing with a style sheet for the scroll bars just to see what damage I can do to the UX. __
--
Mike Jackson
On 1/22/19, 5:56 PM, "Aleksey Kontsevich" <tantrido at ya.ru> wrote:
Yes, good if this will be fixed. Now Scroll bars, checkboxes, other controls are very small, inconvenient and terrible. Distribution built QtC have much better look.
--
Best regards,
Aleksey
Linked in https://www.linkedin.com/in/alekseykontsevich
23.01.2019, 00:48, "Michael Jackson" <mike.jackson at bluequartz.net>:
> Yes, that does help. It gives me some starting points to experiment.
>
> --
> Mike Jackson
>
> On 1/22/19, 11:17 AM, "Eike Ziller" <Eike.Ziller at qt.io> wrote:
>
> From QFusionStyle drawing of e.g. QStyle::SC_ScrollBarAddLine I’d think that that uses QPalette::Button as the base color.
>
> Qt Creator’s themes (can?) set that, e.g. share/qtcreator/themes/dark.creatortheme sets
>
> PaletteButton=shadowBackground
>
> (where “shadowBackground” is set to “ff232323” near the top of the file).
>
> There are also the flags DerivePaletteFromTheme and ApplyThemePaletteGlobally which influence if and how the palette in the theme is actually applied, not sure what does what exactly.
> The default theme, flat.creatortheme doesn’t seem to set the application palette, which probably means that it uses whatever Qt sets as the palette for Qt applications. (Which is why it might make a difference against which Qt you compile Qt Creator in that case, I suppose).
>
> I hope that gives you some useful pointers :)
>
> Br, Eike
>
> > On Jan 22, 2019, at 16:16, Michael Jackson <mike.jackson at bluequartz.net> wrote:
> >
> > It has been a long time since I rummaged through the QtCreator code, code I get an assist and point be to where the Styles/Themes are either loaded or applied? Or the name of the subclass that scroll handles/widgets are? I just have a hard time believing that I have to completely change linux distributions or window managers just to get a different color scroll handles. We change the colors on our own application and those changes are reflected in the application. QtCreator does it because when you change themes, you get different scroll handle colors. I just trying to track down which setting in the theme file actually effects those colors. Thank you to anyone that could help my old eyes out.
> >
> > --
> > Mike Jackson
> >
> > From: Cristian Adam <cristian.adam at gmail.com>
> > Date: Monday, January 14, 2019 at 3:51 PM
> > To: Michael Jackson <mike.jackson at bluequartz.net>
> > Cc: qt-creator <qt-creator at qt-project.org>
> > Subject: Re: [Qt-creator] Adjusting styles of QtCreator
> >
> > On Mon, Jan 14, 2019 at 9:08 PM Michael Jackson <mike.jackson at bluequartz.net> wrote:
> >> Interesting that the only solutions that I have heard is basically to “change your entire desktop”. Clearly the scroll handles are being styled through the .theme file because changing themes will restyle the scroll handles/background. I was hoping for an easier answer such as “.. adjust the following key:value in the theme file”. I guess I have to load up an entirely new desktop environment. Seems a bit over-kill but since Linux is not my full time desktop I guess this is the norm?
> >>
> >
> > You will need to have a build of Qt Creator against your distribution's Qt installation.
> >
> > Ubuntu 16.04 LTS comes with Qt Creator 3.5.1 though, which is a bit dated. Building the latest Qt Creator on Ubuntu 16.04 doesn't help either, since it comes with Qt 5.5.1, which is too old.
> >
> > If I think about it, the "easiest" way would be to compile a QStyle for the same version of Qt that Qt Creator uses, then using the "-style" command line parameter to enable it.
> >
> > Cheers,
> > Cristian.
> >
> > _______________________________________________
> > Qt-creator mailing list
> > Qt-creator at qt-project.org
> > https://lists.qt-project.org/listinfo/qt-creator
>
> --
> Eike Ziller
> Principal Software Engineer
>
> The Qt Company GmbH
> Rudower Chaussee 13
> D-12489 Berlin
> eike.ziller at qt.io
> http://qt.io
> Geschäftsführer: Mika Pälsi,
> Juha Varelius, Mika Harjuaho
> Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator
More information about the Qt-creator
mailing list