Yaru: Some electron based applications use a white menu background color

Created on 14 Aug 2018  路  22Comments  路  Source: ubuntu/yaru

image

Atom and Visual Studio Code have a white toolbat, making very ugly to look.

Other GTK 2 applications like franz, work nice:
image

But, when try to change theme to adwaita, it have a black toolbar, even when i restart the application.
image

Electron upstream

All 22 comments

Hi thanks for reporting.

Both are based on electron, and are now using gtk3 =)
Just for the record!

Doesn't reduce the fact that they have the wrong color ofc :)

That's an anomaly I see when on communitheme snap with some applications,Gtk2 apps included. While trying to change theme some parts of communitheme are still present. It looks like a bug in snap session.
@otavioschwanck , are you seeing this issue using snap session?

@Paz-it yes, using snap session. I'll try gnome session and Ubuntu session with XORG \ Wayland. Report here soon.

@Paz-it same results in all sessions.

New informations:

  • On Arc Darker Theme, same result. White Toolbar on Atom \ VSCode.
  • The ambiance theme is the only fine. Black toolbar on VSCODE \ Atom and Franz.

Ambiance:
image

Arc Darker:

image

i installed ubuntu 2 days ago.
In this two days, the VSCODE \ Atom bar are black on communittheme. Today i upgraded my system and the bar is white.

New information:

VS Code in ElementaryOS after upgrade, changed the toolbar to the inverse color, like in communittheme. Maybe is a electron issue?

Gtk2 apps included. While trying to change theme some parts of communitheme are still present

Have you tried rebooting Gnome shell? Those might be server side decorations that don't go away otherwise

@clobrano yes. Rebooted gnome shell in every change using "r". Also rebooted the system too. Problem persist.

@otavioschwanck Ok, @Paz-it you did the same?

The menus are also white with the .deb version of atom.

But maybe we should first check if "they" really suck up the gtk code for the menus :)

I'm using a deb version of atom, vscode and franz.

@clobrano Yes, I did the same.

I don't understand this...

Electron uses GTK3 dialogues now.
But is it possible that the menu is still styled with gtk2 styling? :thinking:

Same here. Using communitheme snap, vscode (deb) shows a white menu bar.

image

Not sure if it helps but the menu bar follows _Adwaita-dark_ theme.

image

Both are based on electron, and are now using gtk3

@Feichtmeier when did this change happen? I remember electron apps where styled after gtk2

@clobrano some weeks ago

Weird, because in #728 menu bar works like it's using GTK2 colors

Prbly because they didn't merge the newer electron code yet :D

But anyways I don't know why for example atom, which clearly uses the gtk3 filechoser , doesnt use our menu colour

@otavioschwanck

VS Code in ElementaryOS after upgrade, changed the toolbar to the inverse color, like in communittheme. Maybe is a electron issue?

not sure if I understood. Who changed the toolbar?

However, electron project opened a bug about this and there's a PR in progress, so I guess it's an upstream issue

https://github.com/electron/electron/issues/13381

I'd say let's close this here then? :) If it's handled upstream

@clobrano
Funny random coincidence, this would be fixed by the jet menus =)
https://discourse.ubuntu.com/t/mockups-new-design-discussions/1898/311

Since the fix is in electron let's close it here

Was this page helpful?
0 / 5 - 0 ratings