Changing home-button, back-button, forward-button colours

Discussion of general topics about Mozilla Firefox
User avatar
LuvKomputrs
Posts: 659
Joined: June 9th, 2010, 8:15 am

Changing home-button, back-button, forward-button colours

Post by LuvKomputrs »

Wanted to tweak the appearance of my Firefox 57 further. :wink:
Did not like the flat appearance of the home and the dull grey of the back and forward buttons.

I added this to my userChrome.css

Code: Select all

#home-button
{
  fill: brown !important;
}
#back-button {
fill: green !important;
}
#forward-button {
fill: green !important;
}
You can change the colour depending on the theme or theme(originally called Persona) that you are using. :)

https://s8.postimg.org/3kqrhmtmt/luvkom ... tweaks.png
Last edited by LuvKomputrs on November 21st, 2017, 6:02 pm, edited 2 times in total.
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Changing home-button, back-button, forward-button colour

Post by therube »

+1+1
(I was just going to, +1, but the board said it was too few characters, to I +1+1'd it.)
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
BuddhaNature
Posts: 537
Joined: January 3rd, 2008, 9:44 am
Location: Scotland

Re: Changing home-button, back-button, forward-button colour

Post by BuddhaNature »

Thanks very much for that, LuvKomputrs. Have applied to my own FF now. :)

However, you need to edit the code you have posted. There is a missing } bracket. That should be the last line of the code you posted. (When I first pasted your code in my userChrome.css file and then relaunched FF all of my other code seemed not to work - then I noticed the missing }.)

Also for those of us that still use the "reload" button the following code works:

Code: Select all

#reload-button {
  fill: red !important;
}
Last edited by BuddhaNature on January 20th, 2018, 6:59 am, edited 3 times in total.
OS: Windows 10 Pro. x64
User avatar
LuvKomputrs
Posts: 659
Joined: June 9th, 2010, 8:15 am

Re: Changing home-button, back-button, forward-button colour

Post by LuvKomputrs »

therube wrote:+1+1
(I was just going to, +1, but the board said it was too few characters, to I +1+1'd it.)
Thank You. :)
User avatar
LuvKomputrs
Posts: 659
Joined: June 9th, 2010, 8:15 am

Re: Changing home-button, back-button, forward-button colour

Post by LuvKomputrs »

BuddhaNature wrote:Thanks very much for that, LuvKomputrs. Have applied to my own FF now. :)

However, you need to edit the code you have posted. There is a missing } bracket. That should be the last line of the code you posted. (When I first pasted your code in my userChrome.css file and then relaunched FF all of my other code seemed not to work - then I noticed the missing }.)

You're Most Welcome! :D

Added the } bracket to the last line of code and edited my post. :wink:

Thanks! :)
hch
Posts: 111
Joined: July 24th, 2008, 2:45 pm

Re: Changing home-button, back-button, forward-button colour

Post by hch »

LuvK ... thank you. That adds some well needed color.
User avatar
BuddhaNature
Posts: 537
Joined: January 3rd, 2008, 9:44 am
Location: Scotland

Re: Changing home-button, back-button, forward-button colour

Post by BuddhaNature »

For a list of colours that it might be possible to use see this page: CSS Colors
OS: Windows 10 Pro. x64
User avatar
LuvKomputrs
Posts: 659
Joined: June 9th, 2010, 8:15 am

Re: Changing home-button, back-button, forward-button colour

Post by LuvKomputrs »

BuddhaNature wrote:For a list of colours that it might be possible to use see this page: CSS Colors
Some CSS colours are different when applied to XUL coding as opposed to HTML coding.
e.g. The colour red. CSS colour code is #BF0040 this can be used easily in HTML, but, in XUL you may need to type in the word red for the colour.
User avatar
BuddhaNature
Posts: 537
Joined: January 3rd, 2008, 9:44 am
Location: Scotland

Re: Changing home-button, back-button, forward-button colour

Post by BuddhaNature »

I was kind of wondering about that myself. I've tried typing in some of the colour-names in the userChrome.css file and it worked fine for every colour I tried. Haven't tried the corresponding hex codes at all. In any case, I've got my FF the way I want it now and am happy with the result.

Thanks for the additional information, LuvKomputrs.
OS: Windows 10 Pro. x64
flaneurb
Posts: 622
Joined: December 10th, 2011, 3:50 am

Re: Changing home-button, back-button, forward-button colour

Post by flaneurb »

I use hex codes for colors in my userChrome.css without any issue.
User avatar
LuvKomputrs
Posts: 659
Joined: June 9th, 2010, 8:15 am

Re: Changing home-button, back-button, forward-button colour

Post by LuvKomputrs »

BuddhaNature wrote:I was kind of wondering about that myself. I've tried typing in some of the colour-names in the userChrome.css file and it worked fine for every colour I tried. Haven't tried the corresponding hex codes at all. In any case, I've got my FF the way I want it now and am happy with the result.

Thanks for the additional information, LuvKomputrs.
You're Most Welcome! :)

I'd also recommend using the hex codes here for the colours.
User avatar
LuvKomputrs
Posts: 659
Joined: June 9th, 2010, 8:15 am

Re: Changing home-button, back-button, forward-button colour

Post by LuvKomputrs »

flaneurb wrote:I use hex codes for colors in my userChrome.css without any issue.
Good to know. :) However some hex codes for colours are better than others.
The shorter hex codes are the best(IMHO personal and professional opinion)when adding hex codes in XUL in a userChrome.css file.
e.g The hex codes here at the forums are excellent. :wink:
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Changing home-button, back-button, forward-button colour

Post by therube »

48 65 78 20 69 73 20 6d 79 20 66 61 76 6f 72 69 74 65 20 74 6f 6f 2c 20 75 6e 6c 65 73 73 20 79 6f 75 20 67 65 74 20 68 65 78 65 64 21
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Ed1
Posts: 1059
Joined: January 30th, 2005, 2:33 pm

Re: Changing home-button, back-button, forward-button colour

Post by Ed1 »

Thanks for all of these postings!

Does anyone know the code to change the color of any of these toolbar buttons: Addons, Options, Bookmarks, Sidebar, Search and what looks like a shelf of books button to "View History, Saved Bookmarks and more"? (With the examples posted above, perhaps all that is needed would be the first line of code for any of these buttons.)
User avatar
Frank Lion
Posts: 21177
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom
Contact:

Re: Changing home-button, back-button, forward-button colour

Post by Frank Lion »

Ed1 wrote:Does anyone know the code to change the color of any of these toolbar buttons
You do.

Put chrome://browser/skin/browser.css in the addressbar and press Enter. All the internal IDs for all the toolbarbuttons are there. Just do Ctrl + F down the file searching for # or toolbarbutton, etc.

For example, you already know from above that #reload-button is for the Reload button, see?
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)
.
Post Reply