Hi, I suppose this is QT as some of my apps show in unreadable dark mode.
I’m on XFCE and don’t understand the alert as:
➜ ~ cat ~/.zshrc | grep -i qt
unset QT_STYLE_OVERRIDE
export QT_QPA_PLATFORMTHEME=qt5ct
➜ ~ echo $QT_STYLE_OVERRIDE
echo $QT_QPA_PLATFORMTHEME
qt5ct
➜ ~
1 Like
Did Xfce4 come with zsh
as the default?
I’m not sure anymore, I forgot.
If that was the case, I reverted it to bash
.
I do have ~/.zshrc
- but there is nothing about QT_
in it
That is all in ~/.profile
ps:
I can read french - but I don’t understand it
although I think I get the gist of what is in your screenshot.
current contents of my ~/.profile
export EDITOR=/usr/bin/nano
export QT_QPA_PLATFORMTHEME="qt5ct"
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
A quick guess (and, it’s only a guess) is that you may need to reference qt6ct
instead of qt5ct
… in the event that qt6ct
is now installed.
pacman -Qi qt6ct
1 Like
Thank you for caring
Yes bash is the original default, I have zsh since my Le Wagon courses.
I removed the lines from zshrc
now
➜ ~ cat ~/.profile
export EDITOR=/usr/bin/nano
export QT_QPA_PLATFORMTHEME="qt5ct"
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
export PATH=~/.npm-global/bin:$PATH
➜ ~
but
Veuillez supprimer la variable d’environnement QT_STYLE_OVERRIDE (valeur actuelle : gtk+).
La variable d’environnement QT_QPA_PLATFORMTHEME n’est pas définie (valeurs requises : qt5ct ou qt6ct).
when i launch qt5ct
and
➜ ~ LANG=C pacman -Qi qt6ct
error: package 'qt6ct' was not found
➜ ~
I also get
➜ ~ LANG=C sudo pacman -S kvantum-qt5
error: target not found: kvantum-qt5
➜ ~
use:
LANG=C
and then your command
non-french readers can understand the output then
Ok, corrected where I could
the messages say that packages are missing
Are they indeed missing?
Try this Instead:
pacman -Qi kvantum
# if really not installed:
sudo pacman -S kvantum
That should install the following packages (if needed):
kwindowsystem5-5.115.0-1
qt5-base-5.15.12+kde+r151-1
qt5-svg-5.15.12+kde+r6-1
qt5-translations-5.15.12-1
qt5-x11extras-5.15.12-1
kvantum-1.0.10-2
soundofthunder:
pacman -Qi kvantum
➜ ~ LANG=C pacman -Qi kvantum
Name : kvantum
Version : 1.0.10-2
Description : SVG-based theme engine for Qt5/6 (including config tool and extra themes)
Architecture : x86_64
URL : https://github.com/tsujan/Kvantum
Licenses : GPL
Groups : None
Provides : None
Depends On : kwindowsystem5 qt5-svg
Optional Deps : qt6-svg: Qt6 style [installed]
Required By : kvantum-manjaro kvantum-theme-matcha
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 9,02 MiB
Packager : Antonio Rojas <arojas@archlinux.org>
Build Date : dim. 01 oct. 2023 09:39:42
Install Date : sam. 06 avril 2024 05:07:30
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
➜ ~
It seems to be installed.
It is !
I also found how to get rid of the qt5ct alert
➜ ~ echo $QT_STYLE_OVERRIDE
echo $QT_QPA_PLATFORMTHEME
qt5ct
but I still have this unreadable dark mode
banjo
5 May 2024 17:32
14
Your qt5ct
screenshot indicates you have not set a kvantum theme. What theme do you use ? Does it support gtk-4.0 ? That is important.
You need a ~/.config/gtk-4.0
folder and symlink the “assets”, “gtk.css” and “gtk-dark.css” from your theme to it:
I use dark theme, so I set qt5ct
to kvantum-dark:
In Kvantum Manager you need to choose a theme, in my case it is
KvGnomeDark
.
Regarding the theme you use, you find a matching kvantum theme or not.
Wahh ! you did it !
It was indeed a gtk4 theme stuff.
Strange as I didn’t have it and it was functional before my reinstall a few weeks ago.
Thank you all, special praise to @banjo
I downloaded this very light one
And
For some reasons as myopic aspie I’m not at ease with dark themes anyway, so it’s perfect to me.
system
Closed
7 May 2024 06:45
16
This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.