Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.]

User Help for Mozilla Firefox
Post Reply
Beach71
Posts: 40
Joined: September 24th, 2021, 5:34 pm

Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.]

Post by Beach71 »

I am using OpenSuse 15.3, fully updated, with Firefox 78.13.2 ESR 64bit from the repository. Theme scrollbars and sliders are honored.

I also have 92.0.1 installed locally, using a separate profile. Menubars, tabs and fonts all honor the system theme, scrollbars and sliders do not. I have the apparently standard thin trough and light/dark grey slider.

How can I force 92.0.1 to honor the theme scrollbar/sliders?

Any and all help appreciated.
Last edited by LIMPET235 on September 25th, 2021, 7:35 am, edited 1 time in total.
Reason: Added [Linux.] to the title.
User avatar
Grumpus
Posts: 13239
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.

Post by Grumpus »

There are a number of theme items in about:config.
The ones with non-native in the text may relate to the issue.
Changing one or several may affect the scroll bar display.
Non-native is not explicit, is it Firefox or system.
You can toggle true or false and see what happens, make sure you keep track of any changes.
It can all be returned to default or what they were before starting.
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
Beach71
Posts: 40
Joined: September 24th, 2021, 5:34 pm

Re: Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.

Post by Beach71 »

widget.non-native-theme.enabled: changed to false ... the scrollbars/sliders in about:config, settings, addon & themes, print, page source are honored, but scrollbars/sliders for web pages are not.
And the bookmarks tool bar doesn't honor the theme, while the file toolbar does.

And I found the one to put the arrows back on the ends of the scrollbars.
User avatar
Grumpus
Posts: 13239
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.

Post by Grumpus »

Just make sure you take notes of any changes.
It helps to post any solution the solution and put solution in the title of the thread. ;)
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
Beach71
Posts: 40
Joined: September 24th, 2021, 5:34 pm

Re: Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.

Post by Beach71 »

I have only a partial solution, which I posted above.

Firefox is still not honoring the system's scrollbars/sliders.
User avatar
Grumpus
Posts: 13239
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.

Post by Grumpus »

See if changing this helps as it is theme related.
browser.display.use_system_colors - set to opposite of current setting
Sometimes themes do not cover all the bases, theme folks might be a help.
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
Beach71
Posts: 40
Joined: September 24th, 2021, 5:34 pm

Re: Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.

Post by Beach71 »

Changing browser.display.use_system_colors does not help.

It seems only web browsers don't properly honor the theme scrollbars/sliders.
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.

Post by morat »

You can use the userContent.css file to style the scrollbar.

userContent.css
http://kb.mozillazine.org/UserContent.css

CSS scrollbar properties
http://developer.mozilla.org/docs/Web/C ... lbar-color
http://developer.mozilla.org/docs/Web/C ... lbar-width

Code: Select all

:root {
  scrollbar-color: yellow blue !important;
  scrollbar-width: thin !important;
}
More info: http://forums.mozillazine.org/viewtopic ... &t=3079797

Remember to set the toolkit.legacyUserProfileCustomizations.stylesheets preference to true, then restart.
Beach71
Posts: 40
Joined: September 24th, 2021, 5:34 pm

Re: Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.

Post by Beach71 »

morat:

The above did not work. I installed Custom Scrollbars extension, which at least allows me to change the scrollbar/slider colors.

Still looking to a way to use an image for the slider, and a way to get the bookmark toolbar menus/folders tp honor the theme.
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.

Post by morat »

The addon uses * instead of :root in the generated css.

Code: Select all

* {
  scrollbar-color: yellow blue !important;
  scrollbar-width: thin !important;
}
Custom Scrollbars
http://addons.mozilla.org/firefox/addon/2620007
http://github.com/WesleyBranton/Custom- ... rateCSS.js
Beach71
Posts: 40
Joined: September 24th, 2021, 5:34 pm

Re: Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.

Post by Beach71 »

Still no joy :-)

Edit... I renamed the file to userContent... small case "u"... now works.
Now ... ya think here's any way to use an image for the slider?

Edit: The above code does work... throughout Firefox, but it also overrides the internal pages that were honoring the theme.
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.

Post by morat »

I can set the slider image using a userChrome.js hack, but that's too much trouble for most users. (see above "More info" link)

Code: Select all

/* AGENT_SHEET */

scrollbar {
  width: 35px !important;
}
scrollbar thumb {
  -moz-appearance: none !important;
  background-image: url("https://www.w3schools.com/cssref/paper.gif") !important;
}
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.

Post by morat »

Beach71 wrote:overrides the internal pages
You could restrict the style rules using the url-prefix trick.

Code: Select all

@-moz-document url-prefix("about:") {...}
@-moz-document url-prefix("chrome:") {...}
@-moz-document url-prefix("http:"), url-prefix("https:") {...}
Beach71
Posts: 40
Joined: September 24th, 2021, 5:34 pm

Re: Forefox 92.0.1 Not using theme scrollbar sliders.[Linux.

Post by Beach71 »

userChrome.js didn't work and don't understand the url-prefix trick.

Thanks
Post Reply