[Qt-creator] Adjusting styles of QtCreator

Michael Jackson mike.jackson at bluequartz.net
Tue Jan 22 23:46:37 CET 2019


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
    
    





More information about the Qt-creator mailing list