Bugzilla – Bug 1213489
GTK2 apps (and the other toolkits) don't apply dark mode GNOME Adwaita
Last modified: 2023-08-17 23:39:19 UTC
Created attachment 868325 [details] White on white theme+font on the IBUS IME (+ It rendering at the upper left corner on LibreOFFICE but I might do a bug report for that too) GTK2 and Legacy applications are not applying the dark theme, while having set "adwaita-dark" in Legacy themes, GNOME-Tweaks. While it can be a minor issue, it can be really critical, since, some apps are not so usable. SUCH as my main point, an IME, especially the Japanese one provided by Ibus-Mozc. What it does is that because the dark theme is not applied, GTK2 toolkits thinks that the theme is black and so, the font is white. BUT, no, it is white on white theme (white font, white theme) not readable, so because of that, it is impossible to propely select the correct word according to the sentence (IME) and this is really incovinient. There might be something wrong with the "adwaita-dark" package, because it is not the only application that has that behaviour, all of the softwares don't follow the dark theme as default? I can't figure it out. Packages related: gnome-themes, gnome-themes-extra, adwaita-dark, ibus-mozc, firefox etc.
Hi Rayan, Are you saying that not a single legacy app applies adwaita-dark, on your system? My system, also Tumbleweed, does. And I'm going to test ibus-mozc ASAP.
Good morning, yes, not a single package apply the adwaita-dark theme, new GTK apps dark mode is applied by the GNOME dark mode theme. But without, it doesn't do there might be something with the package, thank you.
OK, I installed ibus-mozc following the wiki article [1] (but I didn't need to put this in my shell RC file: > export GTK_IM_MODULE=ibus > export QT_IM_MODULE=ibus > export XMODIFIERS=@im=ibus > ibus-daemon -drx And everything works just fine for me (as seen in the attachments). But I have to say, no matter whether legacy applications use "adwaita (default)" theme, or "adwaita-dark", ibus' pop up window is always dark here. Another thing worth to mention, I think, is that I'm on Tumbleweed, but I'm on GNOME:Next too, so I already have 45 alpha/beta releases on my system. Those are the ibus packages I have installed: > $ zypper se --installed-only 'ibus*' > > Loading repository data... > Reading installed packages... > > S Name Summary Type > > i ibus The "Intelligent Input Bus" input method package > i ibus-dict-emoji Emoji dictionary for IBus package > i+ ibus-gtk IBus input method support for gtk2 applications package > i+ ibus-gtk3 IBus input method support for gtk3 applications package > i+ ibus-gtk4 IBus input method support for gtk4 applications package > i+ ibus-hangul The Hangul engine for IBus input platform package > i+ ibus-input-pad Input Pad for IBus package > i+ ibus-kkc Japanese Kana Kanji input engine for IBus package > i+ ibus-mozc The Mozc engine for IBus package And those are anything Adwaita: > $ zypper se --installed-only adwaita > > Loading repository data... > Reading installed packages... > > S Name Summary Type > > i adwaita-icon-theme GNOME Icon Theme package > i adwaita-qt5 Adwaita Qt5 theme package > i+ adwaita-qt6 Adwaita Qt6 theme package > i gtk2-metatheme-adwaita GTK+ 2 support for the Adwaita GNOME theme package > i gtk2-theming-engine-adwaita Adwaita GTK+ Theming Engine package > i gtk2-theming-engine-adwaita-32bit Adwaita GTK+ Theming Engine package > i gtk3-metatheme-adwaita GTK+ 3 support for the Adwaita GNOME theme package > i libadwaita-1-0 Building blocks for modern GNOME applications package > i libadwaitaqt5-1 Adwaita Qt5 library package > i libadwaitaqt6-1 Adwaita Qt6 library package > i metatheme-adwaita-common Common files for the Adwaita GNOME theme package 1. https://en.opensuse.org/SDB:Write_and_Read_in_Japanese_using_an_occidental_system
Created attachment 868667 [details] GNOME Terminal using Adwaita theme.
Created attachment 868668 [details] GIMP using Adwaita theme
Created attachment 868669 [details] GIMP using Adwaita-dark theme
Created attachment 868670 [details] GNOME Terminal using Adwaita-dark theme
Good afternoon Luciano, sorry for late response; I was so suprised that it worked on your system that it make me confused. 1- I see that you don't have the same UI for selecting Japanese words in Mozc, unlike me? Why? I have the same packages as you linked. 2- I tested the adw-gtk3-dark user theme to see if this works, but no, I have the same problem. I'm clueless, because it works for you and not for me, do you have another platform to contact on so it can be easier to discuss about it? Those are the ibus packages I have installed: i | ibus | The "Intelligent Input Bus" input method | package i | ibus-dict-emoji | Emoji dictionary for IBus | package i | ibus-gtk | IBus input method support for gtk2 applications | package i | ibus-gtk-32bit | IBus input method support for gtk2 applications | package i | ibus-gtk3 | IBus input method support for gtk3 applications | package i | ibus-gtk4 | IBus input method support for gtk4 applications | package i+ | ibus-hangul | The Hangul engine for IBus input platform | package i+ | ibus-input-pad | Input Pad for IBus | package i | ibus-lang | Translations for package ibus | package i | ibus-m17n | The M17N engine for IBus platform | package i+ | ibus-mozc | The Mozc engine for IBus | package i | ibus-mozc-candidate-window | An optional candidate window for ibus-mozc | package And those are anything Adwaita: i | adwaita-icon-theme | GNOME Icon Theme | package i | adwaita-qt5 | Adwaita Qt5 theme | package i+ | adwaita-qt6 | Adwaita Qt6 theme | package i | gtk2-metatheme-adwaita | GTK+ 2 support for the Adwaita GNOME theme | package i | gtk2-theming-engine-adwaita | Adwaita GTK+ Theming Engine | package i | gtk3-metatheme-adwaita | GTK+ 3 support for the Adwaita GNOME theme | package i | libadwaita-1-0 | Building blocks for modern GNOME applications | package i | libadwaita-lang | Translations for package libadwaita | package i | libadwaitaqt5-1 | Adwaita Qt5 library | package i+ | libadwaitaqt6-1 | Adwaita Qt6 library | package i | metatheme-adwaita-common | Common files for the Adwaita GNOME theme | package ty
Yeah, it's odd indeed. Well, you can message me (luc14n0/Luciano) on the Matrix/Discord Support room for further troubleshooting.