Closed Bug 1590854 Opened 5 years ago Closed 3 years ago

Non-overlay scrollbars are light under dark mode

Categories

(Core :: Widget: Cocoa, enhancement, P2)

Desktop
macOS
enhancement

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: kirillcool, Assigned: spohl)

References

Details

(Whiteboard: [mac:darkmode])

Attachments

(2 files, 1 obsolete file)

Attached image scrollbar.png

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:70.0) Gecko/20100101 Firefox/70.0

Steps to reproduce:

Open a site that supports the recently added dark mode and observe the vertical scroll bar. Try https://512pixels.net/ or https://sixcolors.com/

Actual results:

The vertical scroll bar is light

Expected results:

The vertical scroll bar should be dark (as in Safari)

Component: Untriaged → Theme
OS: Unspecified → macOS
Hardware: Unspecified → Desktop
Component: Theme → Widget: Cocoa
Product: Firefox → Core
See Also: → 1578377
Priority: -- → P2
Status: UNCONFIRMED → NEW
Type: defect → enhancement
Ever confirmed: true
Version: 70 Branch → Trunk
Attached patch poc patch (obsolete) — Splinter Review

This is a PoC patch which tries to use overlay scrollbar for scrollbar on dark background. This looks better than current, but still less than ideal. Maybe need some investigation into how Safari renders the dark version of scrollbar.

Also, I suspect this would need to be guarded behind widget.disable-dark-scrollbar pref added in bug 1578377, otherwise we may have problems on reftests as well.

(I may not have time recently to investigate further.)

Summary: Scroll bars are light under dark mode → Non-overlay scrollbars are light under dark mode
Whiteboard: [mac:darkmode]
Assignee: nobody → spohl.mozilla.bugs
Attachment #9104467 - Attachment is obsolete: true
Pushed by spohl@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b4a9a44a5e96
Add support for dark non-overlay scrollbars to macOS. r=mac-reviewers,bradwerth
Regressions: 1703691
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: