With a custom dark theme, text in some programs is virtually invisible.

Forum rules
Before you post please read how to get help
User avatar
pepperminty
Level 5
Level 5
Posts: 688
Joined: Thu Jun 23, 2011 10:51 pm

With a custom dark theme, text in some programs is virtually invisible.

Postby pepperminty » Fri Feb 03, 2017 7:10 pm

Using Mint 18.1 Sarah MATE 64-bit.

To reproduce this bug, go to Appearance Preferences, then while on the Theme tab, click the Customize button (near the lower right of window).
In the Controls tab, select Mint-Y-Dark.
In Colors tab, choose black (or a very dark color) for all 4 "backgrounds" (i.e. background for Window, Input boxes, Selected Items, Tooltips).
Choose white (or a very light color for the 4 "texts".
Click the Window Border tab, and choose Mint-Y-Dark.
Click close.
Log out of Mint.
Log back in.

Go to https://login.launchpad.net/+login (logout of launchpad if needed). Enter your email address in the box.
Open Audacity with an audio file (or create a new audio file).

http://imgur.com/a/25yf3

User avatar
xenopeek
Level 24
Level 24
Posts: 21468
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: With a custom dark theme, text in some programs is virtually invisible.

Postby xenopeek » Sat Feb 04, 2017 1:14 am

That is unfortunate but a known issue of web browsers; they don't handle dark themes well. One solution is to set it so the Mint-Y-Darker:lighter theme is used for programs that don't handle dark themes well, which should fit well with overall Mint-Y-Dark theme for other programs.

For this first remove Firefox from your menu favorites and from your panel (the quick launch icon). Then just right-click Firefox in your menu and select to edit properties. Change the command from firefox %u to:
bash -c "GTK_THEME=Mint-Y-Darker:light firefox"
Afterwards you can add it back to your favorites and panel.

Here is how your example looks with that theme:
Image

For Audacity you can do the same. To test it first open a terminal and run this command and see how Audacity looks:
GTK_THEME=Mint-Y-Darker:light audacity
Image

User avatar
pepperminty
Level 5
Level 5
Posts: 688
Joined: Thu Jun 23, 2011 10:51 pm

Re: With a custom dark theme, text in some programs is virtually invisible.

Postby pepperminty » Sun Feb 12, 2017 10:33 pm

xenopeek wrote:That is unfortunate but a known issue of web browsers; they don't handle dark themes well. One solution is to set it so the Mint-Y-Darker:lighter theme is used for programs that don't handle dark themes well, which should fit well with overall Mint-Y-Dark theme for other programs.

Xenopeek, i didn't think there was an easy way to have different themes for different programs. So thankful to read your comment. I'm typing this reply on an Android tablet. I plan to try your suggestions when I get into my Linux box. :D

a-bentofreire
Level 1
Level 1
Posts: 18
Joined: Sat Jan 14, 2017 4:02 am

Re: With a custom dark theme, text in some programs is virtually invisible.

Postby a-bentofreire » Sun Feb 12, 2017 11:44 pm

I'm having the same problem using a dark theme on Linux Mint 18.1 Cinnamon.
I tried many combinations to fix the icons on the toolbars,
but there is still many programs what go along with dark themes specially on rulers and edit boxes.
I'm attaching for the case of Audacity, LibreOffice and Beyond Compare, but there are many more,
specially KDE programs and Mono programs running on Cinnamon.

User avatar
pepperminty
Level 5
Level 5
Posts: 688
Joined: Thu Jun 23, 2011 10:51 pm

Re: With a custom dark theme, text in some programs is virtually invisible.

Postby pepperminty » Mon Feb 13, 2017 12:29 am

xenopeek wrote:bash -c "GTK_THEME=Mint-Y-Darker:light firefox"
To test it first open a terminal and run this command and see how Audacity looks:
GTK_THEME=Mint-Y-Darker:light audacity


xenopeek, i'm now on (one of) my Linux boxes. The firefox command you shared worked. But the Audacity command results in the same-looking Audacity.

User avatar
xenopeek
Level 24
Level 24
Posts: 21468
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: With a custom dark theme, text in some programs is virtually invisible.

Postby xenopeek » Mon Feb 13, 2017 3:20 am

May be an error on my part. That GTK_THEME is Firefox specific or not all programs honor the setting.
Image

User avatar
pepperminty
Level 5
Level 5
Posts: 688
Joined: Thu Jun 23, 2011 10:51 pm

Re: With a custom dark theme, text in some programs is virtually invisible.

Postby pepperminty » Tue Feb 14, 2017 1:53 am

xenopeek wrote:May be an error on my part. That GTK_THEME is Firefox specific or not all programs honor the setting.

OK. maybe someone else on this forum will know re: Audacity.

User avatar
Fromax
Level 1
Level 1
Posts: 28
Joined: Thu Oct 27, 2011 2:42 am
Location: Denmark, EU

Re: With a custom dark theme, text in some programs is virtually invisible.

Postby Fromax » Sun Oct 29, 2017 6:01 pm

I know it's a very old thread, but I've also been fiddling with this problem lately.
xenopeek wrote:May be an error on my part. That GTK_THEME is Firefox specific or not all programs honor the setting.

No, you were right, it's not Firefox specific. And no, not all programs honor the setting.
For example, env GTK_THEME=:light xed (if your current theme supports dark and light variants) or env GTK_THEME=Adwaita:light xed or env GTK_THEME=Mint-X xed work fine.

As to Audacity, it seems to work only with older GTK2 themes.
For these progs, the GTK2 syntax includes a complete path to the theme's gtkrc, for example env GTK2_RC_FILES=/usr/share/themes/Redmond/gtk-2.0/gtkrc audacity
So far I only got it working with Redmond and Industrial GTK2 themes. Most other themes I've tried either don't work at all or only work partially, even if they are GTK2-only.
Linux User #348237 | LMDE 2 | BunsenLabs | Linux Mint 18.2

User avatar
pepperminty
Level 5
Level 5
Posts: 688
Joined: Thu Jun 23, 2011 10:51 pm

Re: With a custom dark theme, text in some programs is virtually invisible.

Postby pepperminty » Mon Oct 30, 2017 4:59 pm

Fromax wrote:I know it's a very old thread, but I've also been fiddling with this problem lately.



Hi Fromax. Thanks for your contribution on this problem.

a-bentofreire
Level 1
Level 1
Posts: 18
Joined: Sat Jan 14, 2017 4:02 am

Re: With a custom dark theme, text in some programs is virtually invisible.

Postby a-bentofreire » Thu Nov 16, 2017 6:51 am

The latest version of Audacity has great improvements on the dark theme.
Now works well.
But there is still many programs that is hard to see anything, specially on hyperlinks, as in the case of Thunderbird.
I'm using Mint-Y-Yltra-Dark. It's a great theme. It's beautiful but still has this major issue like probably using any dark theme.
This is an update on post: posting.php?mode=reply&f=206&t=239013#pr1278499

User avatar
all41
Level 11
Level 11
Posts: 3569
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: With a custom dark theme, text in some programs is virtually invisible.

Postby all41 » Thu Nov 16, 2017 12:07 pm

my workaround in the browser has been an add-on called 'Color toggle' for
use on those pages. You can define a second color profile and switch back and forth
at the click of a button.
Proud to be a supporter and monthly contributor to Mint.


Return to “MATE”