[Qt-creator] Adjusting colors in one of the Themes
Alessandro Portale
Alessandro.Portale at qt.io
Thu Dec 1 17:27:32 CET 2016
Hi,
Short version: For a higher contrast, you can set "PreferredStyles=Windows" in the "[General]" section of your *.creatortheme file.
Long version:
You can influence palette colors in the *.creatortheme files like this:
...
[Colors]
PaletteButton=ffff0000
...
"PaletteButton" sets the QPalette::Button ColorRole for the whole application. All other ColorRoles are mapped accordingly. Depending on the used QStyle, despite its name PaletteButton also influences the scroll bar color (at least this is the case with FusionStyle).
Which QStyle is used depends on the theme and OS. The theme may force the style via:
...
[General]
PreferredStyles=Fusion
...
If you use HighDpi, FusionStyle is forced unless you are on macOS.
Br,
Alessandro
________________________________
Von: Qt-creator <qt-creator-bounces+alessandro.portale=qt.io at qt-project.org> im Auftrag von Mike Jackson <imikejackson at gmail.com>
Gesendet: Dienstag, 29. November 2016 14:21:00
An: qt-creator at qt-project.org
Betreff: Re: [Qt-creator] Adjusting colors in one of the Themes
Thanks but those are for the little highlight marks that appear in the
scroll bar. I want to change the color of either the scrollbar handle
itself or the scrollbar background. Those two are so close in contrast
that they are very hard to tell apart. It wonder if the scrollbar colors
are baked into the actual source code for QtCreator? Or maybe one of the
"Styles" that Qt supports on Windows?
Could a QtCreator developer maybe point to the place in the source code
where the styles and colors are initialized?
--
Michael A. Jackson
BlueQuartz Software, LLC
[e]: mike.jackson at bluequartz.net
David Schulz wrote:
> Hi Mike,
>
> the color of the scrollbar highlights can be adjusted in the
> *.creatortheme files by changing the *_TextMarkColor and
> *_ScrollBarColor entries.
>
> greetings
> David
>
> On 28-Nov-16 16:40, Mike Jackson wrote:
>> I need to adjust the colors of the editor scrollbars in QtCreator as
>> the contrast between the scrollbar background and the scrollbar
>> "handle" is so light as to be indistinguishable for my "old" eyes to
>> see. I thought I had done this once before but maybe it was on Linux
>> and I just changed EVERY scrollbar in Unity. This is on Windows with
>> the latest QtCreator 4.1 or 4.2. I found the .qtcreatortheme file
>> which looks to be just a .ini formatted file. Looked through it but
>> did not find anything that jumped out at me as beings specifically for
>> scrollbar colors.
>>
>> Thanks for any help
>>
>> --
>> Mike Jackson
>> BlueQuartz Software
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
_______________________________________________
Qt-creator mailing list
Qt-creator at qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20161201/45dab179/attachment.html>
More information about the Qt-creator
mailing list