Context menu in dark mode does not work well
What happened?
When using dark mode in Zen, the texts in the context menu also become dark, lacking contrast. In light mode, everything is normal.
I uninstalled and reinstalled several times, erasing all data and settings, but it didn't work. I installed the package from the flatpak store.
Reproducible?
- [ ] I have checked that this issue cannot be reproduced on Mozilla Firefox.
Version
1.0.0-a.15
Severity impact
High
What platform are you seeing the problem on?
Linux
Relevant log output
No response
Do you have any themes installed?
I am also having this issue i am on arch linux + wayland /Hyprland and am using the catppuccin theme on gtk i could not reproduce this on mozilla firefox or on the floorp browser is there a about:config setting i could toggle atm to prevent using the gkt theme?
[Update] @henoktx I fixed this by deleting the flatpak and switching over to to the binary version of zen 1.0.0.a.28-1 from the Arch AUR. Maybe use the binary in the realeases tab? Potential bug with flatpak?
@Yasir-Zafar Maybe. I installed it with AppImage files, and it worked without the bug.
I am facing a similar issue (installed from flatpak)
same. installed with flatpak. (1.0.0-a.37 (64-bit))
This problem occurs because of the installed GTK theme.
If you installed zen via flatpak and you have this issue, you can unset the theme specifically for it by doing something like sudo flatpak override io.github.zen_browser.zen --env=GTK_THEME=“”.
Although this fixed this contrast issue for me, the context menu doesn't seem to follow the browser theme.
I had a very similar issue on my Debian testing install, but with light mode instead. In my case I had to override the theme to specify Adwaita. i.e. in my .desktop files (I'm using the appimage), I had to change the Exec line to:
env GTK_THEME="adwaita" /my/home/.local/share/AppImage/ZenBrowser.AppImage
for some reason, this worked:
flatpak override --user --env=GTK_THEME=Breeze
I guess flatpak didn't pickup the theme before (im on kde plasma)
Hi, @henoktx. I'm helping the desktop team manage their backlog and am marking this issue as stale.
You've reported an issue regarding poor text contrast in the context menu of the Zen application while using dark mode on Linux, which has affected readability. Several users, including Yasir-Zafar and pokhrelashok, have confirmed similar experiences, particularly with Flatpak installations. Solutions discussed include switching to the binary version of Zen or adjusting GTK theme settings, with navoyan providing a command to unset the theme for Flatpak installations.
Could you please let us know if this issue is still relevant to the latest version of the desktop repository? If it is, feel free to comment here to keep the issue open. Otherwise, you can close it yourself, or it will be automatically closed in 7 days. Thank you!
Just updated and I can confirm this issue is present in version 1.0.1-a.17 on Gnome 47 (Wayland on Debian Trixie) using the appimage. Same workaround applies for me (manually forcing the GTK theme to Adwaita before launching).
@mauro-balades, the user has confirmed that the issue with poor text contrast in the context menu while using dark mode on Linux is still present in version 1.0.1-a.17. Could you please assist them with this?
using the portable linux version 1.0.1-a.22 (Firefox 132.0.1) still has the problem
I was having the same issue (on Arch Linux, not using a Flatpak version, running under StumpWM).
Setting env gtk theme things had no effect.
What did work for me was adding custom css to /chrome from https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/menupopup_forced_color_schemes.css
(I.e.
- go to
about:configand create a new boolean prefuserchrome.menupopups.force-dark(or-lightfor light version) and set ittrue. - add file
menupopup_forced_color_schemes.cssto/chromewith content:
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/menupopup_forced_color_schemes.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* This only works on Windows10 when the proton-style context menus are used.
* Purpose of this style is to force either dark or light version of menus
* regardless of the Firefox theme you have.
* This does NOTHING unless you go to about:config and create a new boolean pref
* "userchrome.menupopups.force-light" (or "-dark" for dark version) and set it true.
*
* If both are set true then dark version is used.
* If both are set false then normal Firefox behavior is used (so your theme selects it)
* Changes to the prefs WON'T APPLY before Firefox is restarted.
*/
@media (-moz-bool-pref: "userchrome.menupopups.force-light"){
menupopup{
color-scheme: light !important;
}
}
@media (-moz-bool-pref: "userchrome.menupopups.force-dark"){
menupopup{
color-scheme: dark !important;
}
}
)
Also having this issue: System: OS: Arch WM: Hyprland Installed via AUR GTK: catppuccin-macchiato-lavender-standard+default zen theme: default dark
Temp workaround added userChrome.css
menupopup menuitem {
color: white !important;
}
menupopup menu {
color: white !important;
}
Also having this issue: System: OS: Arch WM: Hyprland Installed via AUR GTK: catppuccin-macchiato-lavender-standard+default zen theme: default dark
Temp workaround added userChrome.css
menupopup menuitem { color: white !important; } menupopup menu { color: white !important; }
send pick of issue.
Also having this issue: System: OS: Arch WM: Hyprland Installed via AUR GTK: catppuccin-macchiato-lavender-standard+default zen theme: default dark Temp workaround added userChrome.css
menupopup menuitem { color: white !important; } menupopup menu { color: white !important; }send pick of issue.
For me, the issue looks exactly like that of the first post in the issue.
I have same issue as the screenshot. I'm on Windows 10. 1.0.2-b.2 (Firefox 133.0.3) (64-bit)
@bithack3r everyone else is having gtk issues. I think you might need to just change Zen's theme in settings to be a dark one, under Settings > General and under Settings > addons & themes. Even if not, your issue is definitely separate.
hey everyone! just checking in if this is still an issue in the latest version? we are aware of bugs regarding the auto-system-theme. could you all clarify if you have your zen theme set to the auto theme or the dark theme?