Bug 1213489 - GTK2 apps (and the other toolkits) don't apply dark mode GNOME Adwaita
Summary: GTK2 apps (and the other toolkits) don't apply dark mode GNOME Adwaita
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-19 14:33 UTC by Rayan Kome
Modified: 2023-08-17 23:39 UTC (History)
1 user (show)

See Also:
Found By: Community User
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
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) (39.11 KB, video/webm)
2023-07-19 14:33 UTC, Rayan Kome
Details
GNOME Terminal using Adwaita theme. (25.49 KB, image/png)
2023-08-08 00:04 UTC, Luciano Santos
Details
GIMP using Adwaita theme (33.80 KB, image/png)
2023-08-08 00:05 UTC, Luciano Santos
Details
GIMP using Adwaita-dark theme (37.41 KB, image/png)
2023-08-08 00:05 UTC, Luciano Santos
Details
GNOME Terminal using Adwaita-dark theme (19.30 KB, image/png)
2023-08-08 00:09 UTC, Luciano Santos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rayan Kome 2023-07-19 14:33:29 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.
Comment 1 Luciano Santos 2023-08-07 01:28:44 UTC
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.
Comment 2 Rayan Kome 2023-08-07 08:41:59 UTC
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.
Comment 3 Luciano Santos 2023-08-08 00:03:11 UTC
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
Comment 4 Luciano Santos 2023-08-08 00:04:32 UTC
Created attachment 868667 [details]
GNOME Terminal using Adwaita theme.
Comment 5 Luciano Santos 2023-08-08 00:05:13 UTC
Created attachment 868668 [details]
GIMP using Adwaita theme
Comment 6 Luciano Santos 2023-08-08 00:05:56 UTC
Created attachment 868669 [details]
GIMP using Adwaita-dark theme
Comment 7 Luciano Santos 2023-08-08 00:09:07 UTC
Created attachment 868670 [details]
GNOME Terminal using Adwaita-dark theme
Comment 8 Rayan Kome 2023-08-15 13:50:22 UTC
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
Comment 9 Luciano Santos 2023-08-17 23:39:19 UTC
Yeah, it's odd indeed. Well, you can message me (luc14n0/Luciano) on the Matrix/Discord Support room for further troubleshooting.