Materia-theme: Color problem with some software

Created on 19 Jan 2020  路  3Comments  路  Source: nana-4/materia-theme

I have a problem with the materia theme and Anydesk and VMware Horizon Client. I send emails many times to Anydesk support but they did not answer at all.
I also ask help from VMware site but not answer.
Is there a way to fix this? the problem's for materia theme or software?

  • Materia version: 20191017
  • GTK3 version: 3.22.30-1ubuntu4
  • Distribution: Ubuntu 18.04
  • Desktop environment: Gnome 3.28.4
  • Related applications: Anydesk 5.5.1 | VMware Horizon Client 5.3.0

Screenshot from 2020-01-20 00-10-35

question

Most helpful comment

Hi,

the problem's for materia theme or software?

Since it can be reproduced even with the upstream Adwaita-dark, I'd say it's not the theme problem.

Is there a way to fix this?

Those apps seem to use the theme's text colors while hard-coding the background colors, so I think there is no way to fix it on the theme side. It must be fixed on the apps side.

As a temporary workaround, I think you can specify a light theme only for those apps like

Exec=env GTK_THEME=Materia <app-name> %U

in their .desktop files. See https://www.linuxuprising.com/2019/10/how-to-use-different-gtk-3-theme-for.html

All 3 comments

Hi,

the problem's for materia theme or software?

Since it can be reproduced even with the upstream Adwaita-dark, I'd say it's not the theme problem.

Is there a way to fix this?

Those apps seem to use the theme's text colors while hard-coding the background colors, so I think there is no way to fix it on the theme side. It must be fixed on the apps side.

As a temporary workaround, I think you can specify a light theme only for those apps like

Exec=env GTK_THEME=Materia <app-name> %U

in their .desktop files. See https://www.linuxuprising.com/2019/10/how-to-use-different-gtk-3-theme-for.html

@nana-4
Thanks for help
It work for VMware Horizon Client but Anydesk it looks like use GTK 2.0, right?

:~$ ldd /usr/bin/anydesk | grep gtk
    libgtk-x11-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 (0x00007f47d6a65000)
    libgtkglext-x11-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgtkglext-x11-1.0.so.0 (0x00007f47d29be000)

So I use this in the terminal but Anydesk opens dark again. but if I change theme of the system to light Anydesk its OK.

GTK2_RC_FILES=/usr/share/themes/Materia/gtk-2.0/gtkrc /usr/bin/anydesk %u

I've only tested with the flatpak version of Anydesk, but it seems GTK_THEME=Materia works fine to me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

torqueyy picture torqueyy  路  3Comments

n3oxmind picture n3oxmind  路  4Comments

TechnoSparks picture TechnoSparks  路  3Comments

mabod picture mabod  路  4Comments

whnr picture whnr  路  5Comments