Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark menu with dark text in electron applications #969

Closed
paulwellnerbou opened this issue Nov 16, 2018 · 12 comments
Closed

Dark menu with dark text in electron applications #969

paulwellnerbou opened this issue Nov 16, 2018 · 12 comments

Comments

@paulwellnerbou
Copy link

Actual Behavior

I am using Yaru (not the dark one) on a fresh Ubuntu 18.10 installation. There are some applications not picking up the correct color for menus:

This is gnome-terminal (this is how it is supposed to be, I suppose):

screenshot from 2018-11-16 08-02-10

This is how Slack looks (not as it is expected to be, but readably):

screenshot from 2018-11-16 08-03-00

And this is how Skype and Atom beta look like (not readable at all):

screenshot from 2018-11-16 08-04-04

Atom at least shows the text of the menus when the window does not have the focus, while skype does not show them at all.

Is there a tweak I can do at the theme to change this menu color? Switching to Yaru dark fixes it, alle fonts are bright then and readable. But I'd prefer the light one.

Thanks!

@Feichtmeier
Copy link
Member

Hi there, I believe electron apps have some problems with reading the dark/light gtk themes currently. Could you check how other gtk themes behave? Thanks for reporting

@clobrano
Copy link
Member

Atom 1.32.2 works just fine, considering the old issue with menubars #715

image

@fitojb
Copy link
Contributor

fitojb commented Nov 17, 2018

There is nothing to do here except waiting for affected applications to update away from the buggy Electron version they’re using. It appears that the problem is fixed in Electron 3.0.1.

@clobrano
Copy link
Member

Thanks @fitojb, closing this then. Feel free to reopen it if there are new info

@merlijn-sebrechts
Copy link
Member

merlijn-sebrechts commented Nov 28, 2018

@fitojb this might not fixed in Electron 3.0.1. according to electron/electron#13381. That issue was fixed in 3.0.1. but it introduced a new issue. Can you confirm that the new issue is now also fixed?

it turns out, the electron change to honor GTK theme preferences was incomplete. Now electron honors the menubar background color but uses the incorrect foreground color. Instead, the menubar foreground color is sourced from the context menu foreground color. Since Yaru uses a black bg with white text for the menubar and a white bg with black text for the context menus, you get black text on a black bg.

See the following screenshots.

It also shows in the just released Mattermost desktop client (4.2.0) snapcrafters/mattermost-desktop#16 (comment)

Before "fix"

image

After "fix"

image

@fitojb
Copy link
Contributor

fitojb commented Nov 28, 2018

@galgalesh No, I can’t confirm. I avoid Electron programs altogether. I was just reporting a finding.

@Feichtmeier
Copy link
Member

I can confirm this using vscode!

@Feichtmeier
Copy link
Member

Feichtmeier commented Nov 29, 2018

We could eventually fix this with the jet menus (not popovers) for the light theme, or by changing our menubar to white
Here test the branch: #989

screenshot from 2018-11-29 11-54-55

@merlijn-sebrechts merlijn-sebrechts changed the title Dark menu with dark text in some applications using Yaru Dark menu with dark text in electron applications Nov 29, 2018
@merlijn-sebrechts
Copy link
Member

Update: proposed patch in electron: electron/electron#15878

It will probably take a while for all the applications to use the updated electron version, so temporarily patching this in Yaru might be a good idea.

@clobrano
Copy link
Member

We could eventually fix this with the jet menus (not popovers) for the light theme, or by changing our menubar to white

I would prefer the first

@Feichtmeier
Copy link
Member

Ah never mind then if the fix is happening :) Maybe we should close it here? vscode is usally pretty fast with including the upstream code.
Black menus for the dark theme are a lot easier than black menus for the light theme so it would be a lot of hassle just for this issue.

@clobrano
Copy link
Member

clobrano commented Dec 3, 2018

Maybe we should close it here?

Right, closing this now, thanks all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants