We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How do I change the toolbar icons?

  • 5 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 fnordbric

more options

Hi!

I find the flat, low-contrast, grey toolbar icons boring and a bit difficult to recognize. Most applications offer some form of relieve,for example with gimp it is just one click in the preferences to change to a colourful icon theme, intellij IDEA has a plugin to get rid of those bland, boring, dull grey things. Is there a way to install a different icon set in firefox quantum? As I understand it, complete themes have been abolished and there i not a word about how to replace them on the customization page.

Hi! I find the flat, low-contrast, grey toolbar icons boring and a bit difficult to recognize. Most applications offer some form of relieve,for example with gimp it is just one click in the preferences to change to a colourful icon theme, intellij IDEA has a plugin to get rid of those bland, boring, dull grey things. Is there a way to install a different icon set in firefox quantum? As I understand it, complete themes have been abolished and there i not a word about how to replace them on the customization page.

被選擇的解決方法

Update 2: Now it works.... (see picture)

the icon ids are from the toolbarbutton-icons.inc.css file.

The !important flags seem to be important...

從原來的回覆中察看解決方案 👍 0

所有回覆 (5)

more options

Hi, I do not have my notes tonight so no long list of sites for you.

About 230 million ways to customize Firefox with userChrome

Place to ask questions and get code for usserChrome : https://www.reddit.com/r/firefox/ A extension :

At this time those sort of Extensions that modified Firefox Controls are not allowed due to security and stop those things from crashing Firefox. Maybe in the near future as there is a new standard people are writing code for it to make new extensions that are compatible.

more options

Update: It looks like the icons and their animations are svg vector graphics files defining the shapes , located in the source repository at browser/themes/shared/icons, with the css for icons and fill colours probably defined in browser/themes/shared/toolbarbutton-icons.inc.css. It does not seem to work to change them from a userChrome.css file (tried replacing forward.svg with back.svg in #forward-button) . I guess I leave it there. It is not that important, just a minor nuisance.

more options

選擇的解決方法

Update 2: Now it works.... (see picture)

the icon ids are from the toolbarbutton-icons.inc.css file.

The !important flags seem to be important...

由 fnordbric 於 修改

more options

Note that fill-opacity is not a color value, but a number between 0 and 1.

You should always use the important flag when you want to override a defined property, but I think that using only the fill property to set the (text) color would be sufficient (why override the forward button with the icon of the back button??)


#back-button {
 fill: #ff3010 ! important;
/*  list-style-image: url("chrome://browser/skin/back.svg"); */
}

#forward-button {
 fill: #ff3010 ! important;
/* list-style-image: url("chrome://browser/skin/forward.svg"); */
}
more options

I did not know exactly what fill-opacity was for, so I just tried to set a different color there to see if there was any effect. Overriding the forward button with the back button was just to find out if I could override the icon there. At the end, I just changed the forward/back buttons to blue, reload to green and stop to red for now, without changing the shapes.