Artix Linux Forum

General Category => General Discussion => Topic started by: Surf3r on 27 September 2023, 10:59:39

Title: [SOLVED] Gnome apps strange dark/white theme changes once in a while.
Post by: Surf3r on 27 September 2023, 10:59:39
 Hi!. I'm having a couple of gnome apps: gnome-calculator (absolute genius app), gnome-characters, dino (xmpp, im), disks and liferea.

 A while ago these apps had white themes then returned to dark theme and now are white back again except disks which is still dark. Question is how can have them white or dark themed so I don't have this Scooby-Doo 😱 like unexpected appearance. 
I'm having xfce environment installed. Tnx ✌🏻

Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: LemonPie on 27 September 2023, 12:31:56
have you set theme setting according to wiki (https://wiki.archlinux.org/title/GTK#Themes)?
Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: Surf3r on 27 September 2023, 16:28:34

 Cool, managed to use that 'GTK_THEME=Adwaita:dark gnome-characters' command and it works. Had to make some bash scripts for each app cos if I add that GTK_THEME=Ad... on the xfce launcher it doesn't want to execute that way.

 Now I've remembered that my wireshark looks totally bad when my light theme is on, so wireshark I have to launch it with dark theme also but is not a gtk app think it's qt. How do I darken that one? Any idea? And tnx for the first pro tip 👍🏻.

Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: LemonPie on 27 September 2023, 23:00:26
arch wiki has a great page (https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications) on how to have a uniform look, although I don't use GTK or Qt apps that much, so I don't know how well it works.
probably this section (https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications#QGtkStyle) is what you looking for.
Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: tintin on 28 September 2023, 06:07:27
Hello,

Personally, I use XFCE4, but I add dolphin, because for my use, I prefer it to thunar:
Code: [Select]
sudo pacman -S ark dolphin kdegraphics-thumbnailers kimageformats oxygen-icons qt5-imageformats

****
Settings to make if you prefer a clear style (Adwaita) :

If after installing Artix XFCE with Adwaita theme, the background of Dolphin, Gimp or some configuration windows is black, just uninstall some packages:
Code: [Select]
sudo pacman -R artix-dark-theme artix-desktop-presets artix-gtk-presets artix-icons artix-qt-presets

****
If on Dolphin, which I'm adding to XFCE4, the icon background is black instead of light gray, with black text :-/
As a workaround, edit ~/.config/kdeglobals and edit edit:
[Colors:View]
BackgroundNormal=220,220,220
Code: [Select]
mousepad ~/.config/kdeglobals

Code: [Select]
cat /etc/environment
#QT_STYLE_OVERRIDE=gtk2
#QT_QPA_PLATFORMTHEME=gtk
Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: Surf3r on 28 September 2023, 09:05:29

 I'm having this when I launch wireshark from the shell. Maybe one of you guys can draw a better conclusion than me while seeing this.

 (https://i.postimg.cc/8cHDf0Ls/jhk.png)

Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: tintin on 29 September 2023, 04:17:28
Have you tried modifying /etc/environment :
Code: [Select]
cat /etc/environment
#QT_STYLE_OVERRIDE=gtk2
#QT_QPA_PLATFORMTHEME=gtk
Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: Surf3r on 29 September 2023, 09:10:01
 
 Tried that and in the mean time upgraded webkit2gtk, gtk-update-icon-cache and gtk4 and now wireshark doesn't wanna launch at all 🙃 🤦🏻‍♂️

Edit: The culprit of wireshark not launching was due to your tweak not those mentioned upgrades. Edited back environment file logged out/in and now wireshark launches as before with an impossible to view ui when light theme is on.

Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: tintin on 29 September 2023, 10:26:42
Edit: The culprit of wireshark not launching was due to your tweak not those mentioned upgrades. Edited back environment file logged out/in and now wireshark launches as before with an impossible to view ui when light theme is on.
My little science ends there. :-[
Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: Surf3r on 29 September 2023, 10:43:35

  :D  Check Mate 😄. It's good though I've managed to have that disks app with light theme. It was messing with my feng shui for quite a while.

 QT it's even wilder than Gtk 😐. But anyway tnx for trying 👍🏻

Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: tintin on 29 September 2023, 12:06:22
If you have wireshark-qt installed, maybe you can fiddle with ~/.config/kdeglobals?
Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: Surf3r on 29 September 2023, 13:28:48

 Yeah maybe there I can fix something but I don't really get what exactly should I change in there. Went on https://doc.qt.io/ (https://doc.qt.io/) to read the docs but found some vague indications and only for windows OS. Also their wiki show how to build it but not how to use it. Is there any man page to read about qt? On arch wiki read that I have to modify per app environment with env, however looking upon env man there are few things in there that match my exact problem about theming.

I think I just have to trick wireshark to 'think' the dark theme is on and not the light theme. When dark theme is on wireshark looks perfect.

Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: tintin on 29 September 2023, 15:55:31
I think I just have to trick wireshark to 'think' the dark theme is on and not the light theme. When dark theme is on wireshark looks perfect.
I believe this is a possible solution.
But I can't tell you how to do it...
Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: tintin on 29 September 2023, 16:01:59
On Artix XFCE openrc and with the manipulations that I indicated above, it looks like this :
 
Code: [Select]
neofetch
jp@jp-artix
 -----------
OS: Artix Linux x86_64
Kernel: 6.1.54-1-lts
Uptime: 12 mins
Packages: 1508 (pacman)
Shell: bash 5.1.16
Resolution: 1920x1080
DE: Xfce
WM: Xfwm4
WM Theme: Daloa
Theme: Adwaita [GTK2/3]
Icons: oxygen [GTK2], matefaenzadark 
Terminal: xfce4-terminal
Terminal Font: Roboto Mono 12
CPU: AMD Ryzen 5 3600 (12) @ 3.600GHz
GPU: AMD ATI Radeon 540/540X/550/550X
Memory: 1364MiB / 15901MiB
Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: Surf3r on 29 September 2023, 18:25:51

 Heard of a theme called greybird-gtk-theme (on debian) supposedly very well adapted for all apps but there is no greybird on arch but just on AUR :(
Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: tintin on 29 September 2023, 21:33:32

 Heard of a theme called greybird-gtk-theme (on debian) supposedly very well adapted for all apps but there is no greybird on arch but just on AUR :(
I installed wireshark-qt from the world repository :
Spoiler (click to show/hide)
Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: Surf3r on 29 September 2023, 21:42:27

 Yes I've installed it from the world repo as well. I have identical output, except the language :D

Title: Re: Gnome apps strange dark/white theme changes once in a while.
Post by: Surf3r on 22 November 2023, 10:39:39

 Think the wireshark Gods have heard my whining 😭😭 and they fixed wiresharks's ui so it looks good with white themes too. 😇 🎯 It looks excellent and readable.👍🏻