搜尋 Mozilla 技術支援網站

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

Learn More

firefox scrollbar color

  • 6 回覆
  • 0 有這個問題
  • 178 次檢視
  • 最近回覆由 nickfox

more options

Hi

I have a new mac mini with ventura. I am trying to transition from Chrome to Firefox and I have one single thing that is stopping me from doing that.

It is the color of the scrollbar thumb. Currently it is light grey on slightly lighter grey. Almost impossible for me to see with my older eyes.

What I've done so far is to set this to true in the firefox config:

toolkit.legacyUserProfileCustomizations.stylesheets

and created the userChrome.css in the correct profile folder (from firefox troubleshooting information page)

What I want is that anytime the scrollbar displays, I want the thumb to be blue so I can see it. I've not been able to find the css to do this.

Please help me with this, Chrome has become almost unusable and I need to switch to Firefox.

thanks Nick

Hi I have a new mac mini with ventura. I am trying to transition from Chrome to Firefox and I have one single thing that is stopping me from doing that. It is the color of the scrollbar thumb. Currently it is light grey on slightly lighter grey. Almost impossible for me to see with my older eyes. What I've done so far is to set this to true in the firefox config: toolkit.legacyUserProfileCustomizations.stylesheets and created the userChrome.css in the correct profile folder (from firefox troubleshooting information page) What I want is that anytime the scrollbar displays, I want the thumb to be blue so I can see it. I've not been able to find the css to do this. Please help me with this, Chrome has become almost unusable and I need to switch to Firefox. thanks Nick
附加的畫面擷圖

被選擇的解決方法

No restart is required when changing these colors.

Set toolkit.legacyUserProfileCustomizations.stylesheets to false then restart to avoid interference.

Change the style of the scrollbar with widget.non-native-theme.scrollbar.style to 2 or larger (non-Mac style).

Having high contrast enabled will override any custom colors (widget.non-native-theme.always-high-contrast).

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

所有回覆 (6)

more options

Go to about:config in the address bar and create ui.themedScrollbarThumb (String) with value blue. No userChrome.css required.

Scrollbar colors that can be modified: ui.themedScrollbar ui.themedScrollbarInactive ui.themedScrollbarThumb ui.themedScrollbarThumbHover ui.themedScrollbarThumbActive ui.themedScrollbarThumbInactive

more options

Those preferences aren't available in my browser. The following code in userContent.css works for me. That file goes in the same folder as userChrome.css. You may not need the first line; I need it for some code in my userContent.css file.

@namespace html url("http://www.w3.org/1999/xhtml");

  :root { scrollbar-color: #6495ed #d9d9d9 !important; }

That is a Cornflower blue (the first colour) thumb on a light grey.

more options

I have just posted a reply which has to be moderated.

more options

zeroknight said

Go to about:config in the address bar and create ui.themedScrollbarThumb (String) with value blue. No userChrome.css required.

Thanks for responding. I added a string value to about:config with the value "blue" (also tried #0000FF) and restarted firefox but it's still grey.

I checked my add-ons, there is nothing that affects scrollbars.

I think I did it right. You can see what I did at the very bottom of the attached image.

more options

選擇的解決方法

No restart is required when changing these colors.

Set toolkit.legacyUserProfileCustomizations.stylesheets to false then restart to avoid interference.

Change the style of the scrollbar with widget.non-native-theme.scrollbar.style to 2 or larger (non-Mac style).

Having high contrast enabled will override any custom colors (widget.non-native-theme.always-high-contrast).

more options

zeroknight said

No restart is required when changing these colors. Set toolkit.legacyUserProfileCustomizations.stylesheets to false then restart to avoid interference. Change the style of the scrollbar with widget.non-native-theme.scrollbar.style to 2 or larger (non-Mac style). Having high contrast enabled will override any custom colors (widget.non-native-theme.always-high-contrast).

Thank you very much.

widget.non-native-theme.scrollbar.style worked great.

This is a little bit of a sad day for me. I've been using Chrome since it was in beta but it got to the point where it just became non-responsive. Clicking on buttons quit working, etc. Even after getting my new mac mini a few months ago.

But it's time for me to move forward and now I am total happy with Firefox. Thanks!