https://bugs.kde.org/show_bug.cgi?id=413915

hexchain <i...@hexchain.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |i...@hexchain.org

--- Comment #8 from hexchain <i...@hexchain.org> ---
I'm afraid this change did not fix anything for me. Now the menu bar items in
Electron are hardly readable. A screenshot is attached.

It could be stale configurations on my side, but I am sure I have a fresh
~/.config/gtk-3.0/colors.css.

Electron uses a set of CSS selectors to get color for the menubar item text
from the current theme, see [1]. I've written a simple script to replicate most
of this logic according to [1] and [2], and the result is indeed
unsatisfactory.

Currently, to work around this issue, I have the following lines in
~/.config/gtk-3.0/gtk.css:

window.background.chromium menubar, window.background.chromium .menubar {
    color: @theme_fg_color;
}

[1]
https://sourcegraph.com/github.com/electron/electron@v7.1.9/-/blob/shell/browser/ui/views/menu_bar.cc#L294-297
[2]
https://source.chromium.org/chromium/chromium/src/+/master:chrome/browser/ui/libgtkui/gtk_util.cc;l=474;drc=3085f123db39ded55bccebcd1e508ad94bc8ef50?originalUrl=https:%2F%2Fcs.chromium.org%2F

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to