prevent scrollbar buttons from being shown on Linux with the non-native theme
Categories
(Core :: Widget: Gtk, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: heycam, Assigned: heycam)
References
Details
Attachments
(2 files)
The non-native theme on Linux has scrollbars that look like Adwaita. Even if the Gtk theme indicates that it does have scrollbar buttons, we still shouldn't show them.
Comment hidden (obsolete) |
Assignee | ||
Comment 2•4 years ago
|
||
Whether scrollbar buttons are shown is currently determined by
LookAndFeel values, and these are exposed through system metric media
features. LookAndFeel values are process-wide, but which theme is in
use is document-specific. (It can be the platform's native theme or the
native basic theme, depending on Document::ShouldAvoidNativeTheme.) So
if nsNativeBasicTheme on Linux needs to not support scrollbar buttons,
we can't do this by forcing the LookAndFeel values to be false.
So instead, we change the media features so that instead of being system
metrics they have their own evaluation function that also calls into a
function on the theme the document is using.
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
Assignee | ||
Comment 5•4 years ago
|
||
Comment 7•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/89bf76725360
https://hg.mozilla.org/mozilla-central/rev/be330dd56b10
Description
•