Closed Bug 865316 Opened 11 years ago Closed 11 years ago

bookmarks dropmarker button has wrong border color when window is unfocused

Categories

(Firefox :: Toolbars and Customization, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 24

People

(Reporter: Gijs, Assigned: Gijs)

References

Details

Attachments

(2 files, 2 obsolete files)

Attached image Screenshot on OSX
STR:

0. Open Firefox
1. Focus another app, but leave the toolbar visible in the background

ER:
Border looks like that of the other buttons

AR:
Border on the dropmarker is much fainter than that on the other buttons, or even that of the left half of the star button itself.
Attached patch Patch (obsolete) — Splinter Review
So this fixes the discrepancy between the button and the dropmarker and makes them look nice and consistent. However, this whole selector block was added as part of the Lion styling update in bug 679708. I'm not sure if this is the right fix, and/or if this also needs to be changed for the disabled state. Dao/Stephen, can you let me know?
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Attachment #747394 - Flags: review?(dao)
Attachment #747394 - Flags: feedback?
Attachment #747394 - Flags: feedback? → feedback?(shorlander)
Comment on attachment 747394 [details] [diff] [review]
Patch

We still need to fade the arrow, right? The selector might just be missing "> .dropmarker-icon"...
Attachment #747394 - Flags: review?(dao) → review-
Attached patch Patch that fades the icon only (obsolete) — Splinter Review
(In reply to Dão Gottwald [:dao] from comment #3)
> Comment on attachment 747394 [details] [diff] [review]
> Patch
> 
> We still need to fade the arrow, right? The selector might just be missing
> "> .dropmarker-icon"...

Ah, I thought it seemed too easy... You're right, of course.

For the disabled state, there are styles for a dropmarker to get a different icon (although it looks really awful - maybe because it's not a retina image? But it doesn't look like the ordinary arrow is, either... not sure what's up there) so I'm taking that out completely in this patch - setting the opacity in addition to the disabled icon there makes it pretty much invisible.
Attachment #747394 - Attachment is obsolete: true
Attachment #747394 - Flags: feedback?(shorlander)
Attachment #747430 - Flags: review?(dao)
Comment on attachment 747430 [details] [diff] [review]
Patch that fades the icon only

>   .toolbarbutton-1[disabled="true"] > .toolbarbutton-menu-dropmarker,
>-  .toolbarbutton-1[disabled="true"] > .toolbarbutton-menubutton-dropmarker,

If the second selector isn't wanted, shouldn't the same be true for the first one?
(In reply to Dão Gottwald [:dao] from comment #5)
> Comment on attachment 747430 [details] [diff] [review]
> Patch that fades the icon only
> 
> >   .toolbarbutton-1[disabled="true"] > .toolbarbutton-menu-dropmarker,
> >-  .toolbarbutton-1[disabled="true"] > .toolbarbutton-menubutton-dropmarker,
> 
> If the second selector isn't wanted, shouldn't the same be true for the
> first one?

I don't know. I tried looking for an example, but it seems we hide it completely on all the browser chrome places I could find (alltabs button, social provider button) and custom style it on the others (bookmarks manager buttons, devtools). I'm happy to remove it if you think that's the right thing to do. :-)
(In reply to :Gijs Kruitbosch from comment #6)
> (In reply to Dão Gottwald [:dao] from comment #5)
> > Comment on attachment 747430 [details] [diff] [review]
> > Patch that fades the icon only
> > 
> > >   .toolbarbutton-1[disabled="true"] > .toolbarbutton-menu-dropmarker,
> > >-  .toolbarbutton-1[disabled="true"] > .toolbarbutton-menubutton-dropmarker,
> > 
> > If the second selector isn't wanted, shouldn't the same be true for the
> > first one?
> 
> I don't know. I tried looking for an example, but it seems we hide it
> completely on all the browser chrome places I could find (alltabs button,
> social provider button)

Well, for testing you can just undo the hiding for one of these buttons in your local tree.
(In reply to Dão Gottwald [:dao] from comment #5)
> Comment on attachment 747430 [details] [diff] [review]
> Patch that fades the icon only
> 
> >   .toolbarbutton-1[disabled="true"] > .toolbarbutton-menu-dropmarker,
> >-  .toolbarbutton-1[disabled="true"] > .toolbarbutton-menubutton-dropmarker,
> 
> If the second selector isn't wanted, shouldn't the same be true for the
> first one?

This took a bit of digging (note: DOMI's "!important" marker is broken!), but the answer seems to be "no", because the first one doesn't get !important in the styling for the dropmarker, like the menubutton does here:

http://mxr.mozilla.org/mozilla-central/source/toolkit/themes/osx/global/toolbarbutton.css#100

TBH, it looks much better when the @2x image doesn't get overriden. So perhaps a better fix would be to remove the !important, but that sounds like asking for trouble...
(In reply to :Gijs Kruitbosch from comment #8)
> http://mxr.mozilla.org/mozilla-central/source/toolkit/themes/osx/global/
> toolbarbutton.css#100
> 
> TBH, it looks much better when the @2x image doesn't get overriden. So
> perhaps a better fix would be to remove the !important

Yep, please drop the !important. Also please completely get rid of the padding property in line 101 while you're at it.
(In reply to Dão Gottwald [:dao] from comment #9)
> (In reply to :Gijs Kruitbosch from comment #8)
> > http://mxr.mozilla.org/mozilla-central/source/toolkit/themes/osx/global/
> > toolbarbutton.css#100
> > 
> > TBH, it looks much better when the @2x image doesn't get overriden. So
> > perhaps a better fix would be to remove the !important
> 
> Yep, please drop the !important. Also please completely get rid of the
> padding property in line 101 while you're at it.

Like this, I presume?
Attachment #747430 - Attachment is obsolete: true
Attachment #747430 - Flags: review?(dao)
Attachment #748783 - Flags: review?(dao)
Comment on attachment 748783 [details] [diff] [review]
Patch improving toolkit while we're at it

Yep, thanks.
Attachment #748783 - Flags: review?(dao) → review+
(In reply to Dão Gottwald [:dao] from comment #11)
> Comment on attachment 748783 [details] [diff] [review]
> Patch improving toolkit while we're at it
> 
> Yep, thanks.

https://hg.mozilla.org/integration/mozilla-inbound/rev/a2ac5b7c690d
https://hg.mozilla.org/mozilla-central/rev/a2ac5b7c690d
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: