Archive for November, 2017

Black on black tooltips in Firefox with Kubuntu

24/11/2017

I use Firefox on Kubuntu, and for a long time I had an issue with the tooltips: the characters were printed in black on a black background (a slightly different shade of black, but still very difficult to read).

I used to have a solution with Stylish, but it broke in Firefox 57 (Firefox Quantum). Here is a solution which works now, for anyone else with the same issue.

  • Navigate to ~/.mozilla/firefox/
  • Find your Firefox profile: a folder with a name like 1rsnaite.default
  • Navigate to ~/.mozilla/firefox/1rsnaite.default/chrome/ or whatnot (you might need to create the chrome/ folder)
  • Using your favourite text editor, open the file ~/.mozilla/firefox/1rsnaite.default/chrome/userChrome.css (creating it if necessary)
  • In this file, put the following code:
  • /* AGENT_SHEET */
    
    @namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
    
    #btTooltip,
    #un-toolbar-tooltip,
    #tooltip,
    .tooltip,
    #aHTMLTooltip,
    #urlTooltip,
    tooltip,
    #aHTMLTooltip,
    #urlTooltip,
    #brief-tooltip,
    #btTooltipTextBox,
    #un-toolbar-tooltip
    {
     color:#FFFFFF !important;
    }
  • Save and restart Firefox.
  • If you have several profiles, repeat for the other profiles.

I am not an expert at these things; if this does not work for you, I won’t be able to help you any better than Google.

I used the following sites to find this solution:

Advertisements