Closed
Bug 1075415
Opened 10 years ago
Closed 10 years ago
Bookmarks chevron does not get inverted with dark lightweight themes
Categories
(Firefox :: Theme, defect)
Firefox
Theme
Tracking
()
VERIFIED
FIXED
Firefox 36
People
(Reporter: bgrins, Assigned: bgrins)
References
Details
Attachments
(4 files, 1 obsolete file)
60.97 KB,
image/png
|
Details | |
4.44 KB,
application/zip
|
Details | |
10.09 KB,
patch
|
Gijs
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
60.79 KB,
image/png
|
Details |
STR:
Apply this lightweight theme https://addons.mozilla.org/en-US/firefox/addon/three-wolf-moon-shirt/
Show bookmarks toolbar
Shrink window so that the chevron for more bookmarks appears
Notice that this icon is not inverted, but all of the others are (see screenshot)
Comment 1•10 years ago
|
||
This is a problem on Windows and OS X, but not on Linux because we use default button styling in the bookmarks toolbar...
OS: Mac OS X → All
Summary: Chevron does not get inverted with dark lightweight themes → Bookmarks chevron does not get inverted with dark lightweight themes
Assignee | ||
Comment 2•10 years ago
|
||
Looked a bit more into this. The element is using the the toolbarbutton.chevron selector.
In OSX [0] it is using: toolkit/themes/osx/global/icons/chevron.png and toolkit/themes/osx/global/icons/chevron@2x.png
In Linux [1] it is using chrome://global/skin/toolbar/chevron.gif, which I'm assuming is a built-in icon as per Comment 1.
In Windows [2] it is using toolkit/themes/windows/global/toolbar/chevron.gif
[0]: http://dxr.mozilla.org/mozilla-central/source/browser/themes/osx/browser.css#212
[1]: http://dxr.mozilla.org/mozilla-central/source/browser/themes/linux/browser.css#1908
[2]: http://dxr.mozilla.org/mozilla-central/source/browser/themes/windows/browser.css#1975
Assignee | ||
Comment 3•10 years ago
|
||
Stephen, can you please provide an inverted version of these icons?
1) https://mxr.mozilla.org/mozilla-central/source/toolkit/themes/windows/global/toolbar/chevron.gif
2) https://mxr.mozilla.org/mozilla-central/source/toolkit/themes/osx/global/icons/chevron.png
3) https://mxr.mozilla.org/mozilla-central/source/toolkit/themes/osx/global/icons/chevron@2x.png
Flags: needinfo?(shorlander)
Comment 4•10 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #2)
> Looked a bit more into this. The element is using the the
> toolbarbutton.chevron selector.
>
> In OSX [0] it is using: toolkit/themes/osx/global/icons/chevron.png and
> toolkit/themes/osx/global/icons/chevron@2x.png
>
> In Linux [1] it is using chrome://global/skin/toolbar/chevron.gif, which I'm
> assuming is a built-in icon as per Comment 1.
The Linux icon comes from the Windows icon, because of this construction:
http://mxr.mozilla.org/mozilla-central/source/toolkit/themes/moz.build
Comment 5•10 years ago
|
||
Flags: needinfo?(shorlander)
Assignee | ||
Comment 6•10 years ago
|
||
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Attachment #8506575 -
Flags: review?(gijskruitbosch+bugs)
Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8506575 [details] [diff] [review]
chevron-inverted.patch
Nevermind, this is not building in windows and linux because of a typo
Attachment #8506575 -
Flags: review?(gijskruitbosch+bugs)
Assignee | ||
Comment 8•10 years ago
|
||
Had to only use the inverted icon when there wasn't a hover happening on linux - at least on Ubuntu the native hover styling would cause the white icon to be invisible. This wasn't an issue on Windows or OSX. I think it looks OK to switch back to the normal icon on hover in this case, but I'm not sure if this would hold true across all linux platforms - is the native styling the same across all distros?
Attachment #8506575 -
Attachment is obsolete: true
Attachment #8507461 -
Flags: review?(gijskruitbosch+bugs)
Assignee | ||
Comment 9•10 years ago
|
||
A screenshot with the inverted chevron icon using a dark lw theme
Comment 10•10 years ago
|
||
Comment on attachment 8507461 [details] [diff] [review]
chevron-inverted.patch
Review of attachment 8507461 [details] [diff] [review]:
-----------------------------------------------------------------
Apologies for the delay here, I was traveling and/or jetlagged. (OK, I'm still jetlagged, but not so badly anymore)
(In reply to Brian Grinstead [:bgrins] from comment #8)
> Created attachment 8507461 [details] [diff] [review]
> chevron-inverted.patch
>
> Had to only use the inverted icon when there wasn't a hover happening on
> linux - at least on Ubuntu the native hover styling would cause the white
> icon to be invisible. This wasn't an issue on Windows or OSX. I think it
> looks OK to switch back to the normal icon on hover in this case, but I'm
> not sure if this would hold true across all linux platforms - is the native
> styling the same across all distros?
I don't know (I suspect not, in fact), but I don't know how we can fix that; we do bright text detection but not for hover states. I think it's just a bug that the hover state swaps colors around, but fixing the hover state for all of the bookmarks toolbar here is kind of out of scope... Can you file a followup bug and fx-backlog+ it, and make it dependent on bug 734326 ?
(also, d'oh, I forgot to hit submit on this earlier, sorry...)
Attachment #8507461 -
Flags: review?(gijskruitbosch+bugs) → review+
Assignee | ||
Comment 11•10 years ago
|
||
Keywords: checkin-needed
Assignee | ||
Comment 12•10 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 13•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 36
Assignee | ||
Comment 14•10 years ago
|
||
Comment on attachment 8507461 [details] [diff] [review]
chevron-inverted.patch
Approval Request Comment
[Feature/regressing bug #]: 1054353
[User impact if declined]: We need this for 1054353
[Risks and why]: It's a CSS only change for dark lightweight themes
Attachment #8507461 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
Attachment #8507461 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 15•10 years ago
|
||
status-firefox35:
--- → fixed
status-firefox36:
--- → fixed
Comment 16•10 years ago
|
||
Verified fixed on Windows 7 64-bit, Mac OS X 10.9.5 and Ubuntu 12.04 32-bit using:
- Latest Nightly, build ID: 20141029030207
- Firefox Developer Edition, build ID: 20141028155607
You need to log in
before you can comment on or make changes to this bug.
Description
•