Firefox Text Select Colors


Recommended Posts

I've been trying to set the text selection colors by editing user.js, but I've had no luck...or rather, its doing the exact opposite of what I'm telling it to do.

This is the entry in user.js:

// set selection color to light blue
user_pref("ui.textSelectBackground", "#D9F7FF");
user_pref("ui.textSelectForeground", "#000000");

As you can see, I'm trying to set the foreground color (I'm assuming this means the color of the text, could be the problem...) to black, and the background color to a light blue.

This is about:config registering my changes, and the address bar shows what I'm getting - black background, light blue text. If I switch the values around, I get the exact same thing.

post-17075-1121504937.png

So how do I get black text, and a light blue background behind it?

*Edit: Also, where are the attributes for the category headings under about:config? I'm trying to make the VS skin those as opposed to the FF theme.

Edited by Relativity_17
Link to comment
Share on other sites

If you mean the Firefox theme I'm using, that doesn't seem to be the case. I've commented out the changes in user.js, but the colors haven't defaulted to any set value yet, they're still the same colors I specified in user.js. What file would they be specified in anyway?

If you mean the VS, that's not the case either. InspiratSE uses a bright blue background color behind black text.

Link to comment
Share on other sites

userContent.css

/* Text highlight...also goes in userChrome.css */
::-moz-selection {
color: #D1FFFF !important;
background: #006699 !important; } 

Edited by supernova_00
Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.