QtCreator dark themes unreadable
-
I am having an issue with the dark themes in QtCreator not displaying correctly. The background in some panels are white and the text light grey. The menus are the same way. The light themes however seem to behave correctly.
Screenshots of the two can be seen here.
System is Arch linux under Gnome.
Thanks!
-
- which Creator vetsion is that?
- how did you install it?
-
This is QtCreator 4.9.1 on Qt 5.12.4
Was installed using the system package manager.I have tried deleting all configuration files/folders I could find in ~/.config as well as reinstalling QtCreator.
-
@abstracted8 can you try the official Creator from download.qt.io ? (you can install in your home dir and uninstall later). just to see if that is a generic or distro problem.
-
Hmm, the official download you suggested works correctly. I may have to just use that, as I am unsure how to correct the disto version.
-
@abstracted8 said in QtCreator dark themes unreadable:
I am unsure how to correct the disto version.
I suggest you report this to your distro's maintainers. They could know what to do, and fix it for all users of Arch Linux.
-
While this topic is a few months old, but I hope someone else searching for a solution to this issue might find this reply helpful.
The issue seems to occur because the Qt style plugin is now separated from the qt5-base package in Arch Linux (and its derivatives such as Manjaro etc.) . The details can be found in the Arch wiki page for Qt and GTK style compatibility: https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications#QGtkStyle
To fix the issue:
- Make sure that the qt5-styleplugins package is installed (sudo pacman -S qt5-styleplugins)
- Set the environment variable QT_QPA_PLATFORMTHEME=gtk2 before executing QtCreator (preferably export this from the ~/.bashrc file).
PS: Downloading the official QtCreator might not be possible always, such as when using Arch Linux on a ARM device.
-
@ind3r said in QtCreator dark themes unreadable:
To fix the issue:
Make sure that the qt5-styleplugins package is installed (sudo pacman -S qt5-styleplugins)
Set the environment variable QT_QPA_PLATFORMTHEME=gtk2 before executing QtCreator (preferably export this from the ~/.bashrc file).Thanks for the solution. I am having this issue on Arch Linux as well. However, I'm running KDE. Before I follow the above steps, can anyone say how they differ in KDE? Do I still need to set the environment variable QT_QPA_PLATFORMTHEME=gtk2?
Qt Creator is not a GTK app after all...
Qt Creator 4.11.0-4
Based on Qt 5.14.0 (GCC 9.2.0, 64 bit)
plasmashell 5.17.4
Linux kernel 5.4.8-arch1-1
KDE Breeze Dark theme -
Hi
the same problem on Fedora 31 KDE. I switched from default to Breeze Dark theme.
I installed QtCreator and all menus were unreadable.However I changed QtCreator theme from Flat to Dark and I can see menu items now.
-
@slawtul said in QtCreator dark themes unreadable:
Hi
the same problem on Fedora 31 KDE. I switched from default to Breeze Dark theme.
I installed QtCreator and all menus were unreadable.However I changed QtCreator theme from Flat to Dark and I can see menu items now.
Thank you. I'm not sure how I missed that setting. I appreciate your screenshot.
I also found this theme I may try:
Dracula — A dark theme for Qt Creator and 84+ apps https://draculatheme.com/qtcreator/
dracula/qtcreator: A dark theme for Qt Creator https://github.com/dracula/qtcreator
-
This post is deleted!