MozillaZine

S3.Translator for TB 60.7.0 with dark theme?

Talk about add-ons and extension development.
Centauri39
 
Posts: 346
Joined: November 25th, 2006, 2:18 pm

Post Posted June 15th, 2019, 6:55 am

On a Linux Mint 19.1 MATE 64bit, how can I make S3.Translator using a dark background, please?
No matter what I try, it is still bright white, which is very ugly, when Thunderbird is set to a dark theme.

morat
 
Posts: 3439
Joined: February 3rd, 2009, 6:29 pm

Post Posted June 15th, 2019, 7:47 pm

I can change the color using the userChrome.css file.

Code: Select all
/* Thunderbird userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");

html|div[id="s3gt_translate_tooltip"] {
  background-color: #353431 !important;
  color: #E6E6E6 !important;
  border: 1px solid #CCCCCC !important;
  box-shadow: 0 0 5px 2px rgba(40, 40, 40, 0.7) !important;
}

I got the css from the dark.css file in the extension's .xpi file.

S3.Google Translator 5.38
Thunderbird 60.7.1
Windows 7 SP1 32-bit

S3.Google Translator
http://addons.thunderbird.net/thunderbird/addon/986302

Centauri39
 
Posts: 346
Joined: November 25th, 2006, 2:18 pm

Post Posted June 17th, 2019, 2:00 pm

Great! It's working!
Thank you very much!

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 2 guests