Closed Bug 1749531 Opened 4 years ago Closed 4 years ago

Use non-native themed scrollbars in browser chrome

Categories

(Core :: Widget, enhancement)

All
Unspecified
enhancement

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: aminomancer, Assigned: aminomancer)

References

Details

Attachments

(4 files, 1 obsolete file)

In bug 1719427 support was added for switching between non-native scrollbar styles with a pref, but these styles aren't yet applied to scrollbars in the browser chrome or dialogs, which will continue to use the platform style.

STR:

  1. Set widget.non-native-theme.scrollbar.style to a number that doesn't match your environment (1 for macOS, 2 for GTK, 3 for android, 4 for win 10, 5 for win 11)
  2. View a page in a browser and confirm the scrollbar style has changed.
  3. Open some scrollable chrome control, e.g., the all tabs menu, the bookmarks sidebar or the page info dialog.

Expected:
The chrome scrollbars match the content scrollbars

Actual:
The chrome scrollbars continue to use default platform style

See Also: → 1719427

So this is kind of expected, fwiw. But anyhow, if we want to change this fix should be straight-forward. Changing this and the relevant GTK line to use ScrollbarStyle(), and maybe make it react to the pref dynamically.

Assignee: nobody → shmediaproductions
Status: NEW → ASSIGNED

Looking into this a bit more we can make it work more consistently pretty easily, let me try...

Flags: needinfo?(emilio)

Will most likely not get to it today though I don't think this is super-urgent.

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Attachment #9258507 - Attachment is obsolete: true

This is not fixed?

Status: RESOLVED → REOPENED
Flags: needinfo?(emilio)
Resolution: FIXED → ---

Isn't it? Seems to be working in the views I was worried about

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6d1e386d334b Manage native theme lifetime from Theme.cpp. r=mstange https://hg.mozilla.org/integration/autoland/rev/1fa55e27c971 Move RecomputeScrollbarParams call to SetScrollbarDrawing. r=mstange https://hg.mozilla.org/integration/autoland/rev/4b4804252e15 Remove scrollbar drawing code from nsNativeThemeCocoa, use ThemeCocoa drawing. r=mstange https://hg.mozilla.org/integration/autoland/rev/7049c6e86a3e Allow to override native theme scrollbar styles. r=mstange
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: