Arch Dark Theme & Qt Creator - qt

I am trying to edit the Arch Dark theme so that the coloring of certain text is white/light colored because it is barely readable when there is black text on a dark blue background. So in my case, I use Qt Creator often to design GUI's and create applications but when you open it, it looks like this:
https://imgur.com/a/gC94UCY
https://imgur.com/a/phMgJHf
As you can see there is black text on the dark backgrounds in the home screen and on the project screen, I am unsure whether these colors have to be changed in Qt or through the theme files themselves but is it possible to change them to white or a lighter color of my choosing.

Related

How to correct GTK theme difference across platforms?

I have a GTK3 application with buttons which contain a transparent image over a coloured background, when I compile it on a Linux Mint machine I get a perfectly normal "flat" image, but when I compile it on a Raspberry Pi (in Raspbian OS) I get buttons that have a weird white highlight effect on the image.
All I can guess is that the default GTK theme on Raspbian includes some sort of shadow effect that is being applied to the button images but I don't know which one & hence how to override it.
I've dug through the GTK theme/CSS docs but can't find anything obvious that would be applying this effect to an image. I've also poked about in the system(s) for GTK themes/gtk CSS files but there's loads of them, so I'm hoping someone can help me narrow this down to a particular tag/style I can apply to my buttons/widgets/window to make it look right all the time.
Image 1: normal "flat" image:
Image 2: weird fringe highlight / shadow effect on image:
Well after some mucking about with GTK_DEBUG=interactive ./my_app I found it was caused by this setting in the default Raspbian theme:
*{-gtk-icon-shadow:none;}
That one-liner in my application's overall window CSS has fixed it.

Why do parts of my syntax remain gray in Atom (using One Dark theme)?

Certain parts of my code are not colored like the tutorial I'm following (my code is top picture, tutorial is bottom picture). If, Else, "Strings", etc..are not colored as they should be. I'm using One Dark theme in Atom. I've tried to change the theme but these portions of my code remain gray. Any ideas why?

How to highlight text in QTextEdit/QSyntaxHighlighter using solorized colors?

My app would like to fully support the solarized color scheme. To do this, we would like to use the dark theme for selections, and the light theme for non-selected text, something like this.
My question is this: is it possible (without writing low-level code Qt Paint code) to highlight selected text in a QTextEdit (colorized using QSyntaxHighlighter) so that the selection background color changes, but the multiple different foreground colors in the selected region remain unchanged?
Thanks.

How to change IDLDE background color?

I was just wondering if/how I could change the background color of IDLDE, to avoid having a white screen all day long, and use a less exhausting color for my eyes like brown/grey...
Thanks a lot
EDIT : IDLDE (the IDL IDE) not IDLE, my bad, I'm working with IDLE and IDLDE...
Try right-clicking on the editor window, and hit Preferences. At the bottom, under Appearance color options select Background color and uncheck System Default. Then, you can play with the little color box just above it.
Works for me in IDL 8.3.0.

How to get the dialog background color (window color) in a Qt Gui application?

My Qt version is 4.7.1 and I want to set the background color of a QLineEdit the same as window color, and I use this way:
QString bgColorName = palette().color(QPalette::Normal, QPalette::Window).name();
QString strStyleSheet = QString("QLineEdit {background-color: ").append(bgColorName).append("}");
ui->lineEdit->setStyleSheet(strStyleSheet);
I tried to get the background colors name and then set the stylesheet of the QLineEdit, however, after running the application, I found the QLineEdit's color is a little different, that is, if you look at it carefully, you can see the difference, both on Win7 and Mac.
Could anyone help me to find a way to get the right background color of the dialog, thank you in advance.
The code you posted actually works for me (using Windows 7). Have you verified with an image editor such as Photoshop that the background of the line edit isn't the same as the dialog? Sometimes the mind plays tricks and can think the background color is different (due to the border) when in fact it isn't.
By the way, you can just make the background of your QLineEdit transparent using style sheets like this:
QLineEdit le("Line Edit with transparent BG");
le.setStyleSheet("background:transparent;");

Resources