Closed Bug 968595 Opened 11 years ago Closed 11 years ago

Update OS X Arrow Panel Styling

Categories

(Toolkit :: Themes, enhancement)

All
macOS
enhancement
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla30
Tracking Status
firefox29 --- verified
firefox30 --- verified

People

(Reporter: shorlander, Assigned: shorlander)

References

(Depends on 1 open bug)

Details

(Whiteboard: [Australis:M?][Australis:P3])

Attachments

(12 files, 3 obsolete files)

582.63 KB, image/png
Details
636.60 KB, image/png
Details
4.89 KB, patch
dao
: review+
Details | Diff | Splinter Review
1.71 KB, patch
dao
: review+
Details | Diff | Splinter Review
720 bytes, patch
dao
: review+
Details | Diff | Splinter Review
910 bytes, patch
dao
: review+
Details | Diff | Splinter Review
7.32 KB, patch
mikedeboer
: review+
Details | Diff | Splinter Review
2.54 KB, patch
mikedeboer
: review+
Details | Diff | Splinter Review
276.65 KB, image/png
Details
220.76 KB, image/png
Details
187.78 KB, image/png
Details
298.24 KB, image/png
Details
Attached patch Update OS X Arrow Panels - 01 (obsolete) — Splinter Review
This patch updates the styles of the menu panels and fixes some inconsistencies. - Reduces the size of the arrow - Lightens them up - Tightens the border-radius - Aligns the styles of the various footers - Adjusts the vertical alignment of the panels - Fixes the missing shadow on the Menu Panel (bug 930064)
Attachment #8371186 - Flags: review?(mdeboer)
Component: Theme → Themes
Product: Firefox → Toolkit
Blocks: 940797
Comment on attachment 8371186 [details] [diff] [review] Update OS X Arrow Panels - 01 >--- a/browser/themes/osx/browser.css >+++ b/browser/themes/osx/browser.css >+#identity-popup { >+ margin-top: -1px; >+} >--- a/browser/themes/osx/downloads/downloads.css >+++ b/browser/themes/osx/downloads/downloads.css >+#downloadsPanel { >+ margin-top: -3px; >+} >--- a/toolkit/themes/osx/global/popup.css >+++ b/toolkit/themes/osx/global/popup.css > panel[type="arrow"] { >+ margin-top: -2px; > -moz-appearance: none; > background: transparent; > transition: opacity 300ms; > } This will hinder users from closing the panel by re-clicking the same spot at the bottom of the anchor that responds to clicks to open the panel. We should probably avoid that. (This issue aside, the margin would also be wrong when the panel opened in a different direction.)
Attachment #8371186 - Flags: review-
Stephen, thanks for working on this! Apart from Dão's concern mentioned above, I think we should look at this together to 1) split up the patch in reasonable chunks, for example to split off the toolkit part and the browser part. 2) think about possible regressions when making the panels opaque, like "Will it negatively affect text rendering?" Let me know what you think!
Status: NEW → ASSIGNED
Assignee: nobody → shorlander
(In reply to Mike de Boer [:mikedeboer] from comment #4) > "Will it negatively affect text rendering?" Since bug 941095 has been backed out completely, making the panel transparent won't affect text rendering on OS X.
(In reply to Mike de Boer [:mikedeboer] from comment #4) > Apart from Dão's concern mentioned above, I think we should look at this > together to > 1) split up the patch in reasonable chunks, for example to split off the > toolkit part and the browser part. Sure thing. How granular do you want it? > 2) think about possible regressions when making the panels opaque, like > "Will it negatively affect text rendering?" As Markus mentions text rendering, on OS X at least, seems to be fine. Could affect legibility if it is too translucent. Could just defer transparency until bug 940797 is fixed.
Attachment #8371186 - Flags: review?(mdeboer)
Stephen, I'd like to suggest the following chunks: 1) toolkit popup.css changes. (In fear of stating the obvious, but here goes!) You need to be aware that any change needs to be valid for each panel position. See https://developer.mozilla.org/en-US/docs/XUL/PopupGuide/Positioning for a complete reference and screenshots. 2) one patch for each panel that you touch. Looking forward to it! :)
Attachment #8371186 - Attachment is obsolete: true
Attachment #8372713 - Flags: review?(mdeboer)
Split-up patches
Attachment #8372719 - Flags: review?(mdeboer)
Comment on attachment 8372713 [details] [diff] [review] change-arrow-size-panel-styling-p01.patch I'm not a toolkit peer, so not eligeble to review this patch.
Attachment #8372713 - Flags: review?(mdeboer) → review?(dao)
Attachment #8372713 - Flags: review?(dao) → review+
Comment on attachment 8372714 [details] [diff] [review] change-identityPanel-styling-p02.patch >+#identity-popup { >+ margin-top: 1px; >+} Why this change? The identity popup can also open above the anchor, by the way.
Attachment #8372714 - Flags: review?(mdeboer) → review-
Attachment #8372715 - Flags: review?(mdeboer) → review+
Attachment #8372718 - Flags: review?(mdeboer) → review+
Comment on attachment 8372716 [details] [diff] [review] change-downloadPanel-styling-and-alignment-p04.patch >+#downloadsPanel { >+ margin-top: -1px; >+} Seems like comment 3 will still be an issue here, even if to a lesser extent.
Comment on attachment 8372716 [details] [diff] [review] change-downloadPanel-styling-and-alignment-p04.patch Review of attachment 8372716 [details] [diff] [review]: ----------------------------------------------------------------- I agree with adjusting the borders, but not with the button styling. This needs more work and I think we need to tackle that in a separate bug that makes these buttons consistent across all platforms.
Attachment #8372716 - Flags: review?(mdeboer) → review-
Comment on attachment 8372719 [details] [diff] [review] change-menuPanelSubview-styling-p06.patch Review of attachment 8372719 [details] [diff] [review]: ----------------------------------------------------------------- These styles defined in this patch also show a lot of overlap with the ones already defined in shared/panelUIOverlay.inc.css. To me they do not look OSX specific per sé... can you take a look which ones you can put in the shared section and which ones are truly OSX-specific?
Attachment #8372719 - Flags: review?(mdeboer) → review-
(In reply to Mike de Boer [:mikedeboer] from comment #18) > Comment on attachment 8372719 [details] [diff] [review] > change-menuPanelSubview-styling-p06.patch > > Review of attachment 8372719 [details] [diff] [review]: > ----------------------------------------------------------------- > > These styles defined in this patch also show a lot of overlap with the ones > already defined in shared/panelUIOverlay.inc.css. To me they do not look OSX > specific per sé... can you take a look which ones you can put in the shared > section and which ones are truly OSX-specific? That is modifying the shared/panelUIOverlay.inc.css
(In reply to Stephen Horlander [:shorlander] from comment #19) > That is modifying the shared/panelUIOverlay.inc.css Oh, bugger. I'll take another look...
Comment on attachment 8372719 [details] [diff] [review] change-menuPanelSubview-styling-p06.patch Review of attachment 8372719 [details] [diff] [review]: ----------------------------------------------------------------- This patch has bitrotted, unfortunately. Can you put up a new one? ::: browser/themes/shared/customizableui/panelUIOverlay.inc.css @@ +557,5 @@ > + background-color: hsla(210,4%,10%,.1); > + border-top: 1px solid hsla(210,4%,10%,.12); > +} > + > +.subviewbutton.panel-subview-footer@buttonStateActive@ { Can you leave the footer styles at it's current location and put the hover/ active states there too?
Attachment #8372719 - Flags: review-
Un-bitrotted. (In reply to Mike de Boer [:mikedeboer] from comment #21) > Can you leave the footer styles at it's current location and put the hover/ > active states there too? I put it at the end of the other .subviewbutton rules because it was picking up those styles.
Attachment #8372719 - Attachment is obsolete: true
Removed styling but left in border-radius and alignment.
Attachment #8372716 - Attachment is obsolete: true
Attachment #8375270 - Flags: review?(mdeboer)
Attachment #8375271 - Flags: review?(mdeboer)
(In reply to Dão Gottwald [:dao] from comment #15) Sorry, totally missed these comments. Thanks for the reviews! :) > Comment on attachment 8372714 [details] [diff] [review] > Why this change? So all the panels open at the same place. > The identity popup can also open above the anchor, by the way. True, I could make it side specific but the other orientation is going to be pretty rare.
(In reply to Stephen Horlander [:shorlander] from comment #24) > > The identity popup can also open above the anchor, by the way. > > True, I could make it side specific but the other orientation is going to be > pretty rare. We should still take care of it.
Also, see comment 16.
Comment on attachment 8375270 [details] [diff] [review] change-menuPanelSubview-styling-p06.patch Review of attachment 8375270 [details] [diff] [review]: ----------------------------------------------------------------- LGTM, thanks!
Attachment #8375270 - Flags: review?(mdeboer) → review+
Comment on attachment 8375271 [details] [diff] [review] change-downloadPanel-styling-and-alignment-p04.patch Review of attachment 8375271 [details] [diff] [review]: ----------------------------------------------------------------- r=me, IF you can make peace with Dão about this negative margin ;-)
Attachment #8375271 - Flags: review?(mdeboer) → review+
(In reply to Dão Gottwald [:dao] from comment #25) > (In reply to Stephen Horlander [:shorlander] from comment #24) > > > The identity popup can also open above the anchor, by the way. > > > > True, I could make it side specific but the other orientation is going to be > > pretty rare. > > We should still take care of it. So, after looking into this a bit, it appears that when the identity panel flips it is also flipping the margin-top. For example this is a setting with margin-top: 30px — http://people.mozilla.org/~shorlander/bugs/Bug-968595-panel-flip.png. I wasn't aware that it was supposed to work that way, so I am not sure if it is a bug. (In reply to Dão Gottwald [:dao] from comment #3) > This will hinder users from closing the panel by re-clicking the same spot > at the bottom of the anchor that responds to clicks to open the panel. We > should probably avoid that. (This issue aside, the margin would also be > wrong when the panel opened in a different direction.) We actually currently have this problem on all of the panels. There are about 3–4 pixels at the bottom of the button where you can activate a panel but not close it by clicking again. I don't think this will make it worse (although we could certainly fix this on all of the panels :)). Also I don't think it is too much of an issue given that you have to click low on the button and not jitter your mouse at all in between a rapidly opening and closing a panel.
(In reply to Stephen Horlander [:shorlander] from comment #29) > So, after looking into this a bit, it appears that when the identity panel > flips it is also flipping the margin-top. For example this is a setting with > margin-top: 30px — > http://people.mozilla.org/~shorlander/bugs/Bug-968595-panel-flip.png. I > wasn't aware that it was supposed to work that way, so I am not sure if it > is a bug. Neil, can you explain this?
Flags: needinfo?(enndeakin)
(In reply to Dão Gottwald [:dao] from comment #30) > (In reply to Stephen Horlander [:shorlander] from comment #29) > > So, after looking into this a bit, it appears that when the identity panel > > flips it is also flipping the margin-top. For example this is a setting with > > margin-top: 30px — > > http://people.mozilla.org/~shorlander/bugs/Bug-968595-panel-flip.png. I > > wasn't aware that it was supposed to work that way, so I am not sure if it > > is a bug. > > Neil, can you explain this? FWIW, if/when there is an explanation for this, it also came by in 940379, so we'd need to adjust both if there is a separate bug here.
When the popup is opening with 'after_start', the top margin specifies how far away the popup is from the bottom edge of the anchor. When the popup gets flipped, the top margin is still used to specify how far away the popup will be from the top edge of the anchor. The bottom margin is used when opening with 'before_start'. I'm assuming you're expecting the top margin to apply when the popup is not flipped and the bottom margin to apply when the popup is flipped. To change this, a few margin references within would need to be adjusted in nsMenuPopupFrame::FlipOrResize, then lots of testing would occur.
Flags: needinfo?(enndeakin)
Attachment #8372714 - Flags: review- → review+
Keywords: checkin-needed
Comment on attachment 8372713 [details] [diff] [review] change-arrow-size-panel-styling-p01.patch [Approval Request Comment] Bug caused by (feature/regressing bug #): Existing panels User impact if declined: Uglier panels Risk to taking this patch (and alternatives if risky): Low risk style/image changes String or IDL/UUID changes made by this patch: None
Attachment #8372713 - Flags: approval-mozilla-aurora?
Comment on attachment 8372714 [details] [diff] [review] change-identityPanel-styling-p02.patch [Approval Request Comment] Bug caused by (feature/regressing bug #): Existing panels User impact if declined: Uglier panels Risk to taking this patch (and alternatives if risky): Low risk style/image changes String or IDL/UUID changes made by this patch: None
Attachment #8372714 - Flags: approval-mozilla-aurora?
Comment on attachment 8372715 [details] [diff] [review] change-sharePanel-alignment-p03.patch [Approval Request Comment] Bug caused by (feature/regressing bug #): Existing panels User impact if declined: Uglier panels Risk to taking this patch (and alternatives if risky): Low risk style/image changes String or IDL/UUID changes made by this patch: None
Attachment #8372715 - Flags: approval-mozilla-aurora?
Comment on attachment 8372718 [details] [diff] [review] change-clickToPlayPanel-styling-p05.patch [Approval Request Comment] Bug caused by (feature/regressing bug #): Existing panels User impact if declined: Uglier panels Risk to taking this patch (and alternatives if risky): Low risk style/image changes String or IDL/UUID changes made by this patch: None
Attachment #8372718 - Flags: approval-mozilla-aurora?
Comment on attachment 8375270 [details] [diff] [review] change-menuPanelSubview-styling-p06.patch [Approval Request Comment] Bug caused by (feature/regressing bug #): Existing panels User impact if declined: Uglier panels Risk to taking this patch (and alternatives if risky): Low risk style/image changes String or IDL/UUID changes made by this patch: None
Attachment #8375270 - Flags: approval-mozilla-aurora?
Comment on attachment 8375271 [details] [diff] [review] change-downloadPanel-styling-and-alignment-p04.patch [Approval Request Comment] Bug caused by (feature/regressing bug #): Existing panels User impact if declined: Uglier panels Risk to taking this patch (and alternatives if risky): Low risk style/image changes String or IDL/UUID changes made by this patch: None
Attachment #8375271 - Flags: approval-mozilla-aurora?
Stephen, your patches need to land on fx-team first, before you can get approval for aurora. Would you like me to do that?
Flags: needinfo?(shorlander)
Missed checkin-needed flag, will do that now.
Flags: needinfo?(shorlander)
Stefen, I am going to uplift your patches once they have reached m-c.
Attachment #8372713 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #8372714 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #8372715 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #8372718 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #8375270 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #8375271 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
There is a discrepancy in the latest nightly—18th Feb, and please let me know if this nightly is not meant to show the changes—with the "Bookmark this page" panel and the "Show your bookmarks" panel. See attached screenshots for reference. Also, please let me know if a new bug would need to be filled and I'll follow up on that.
(In reply to Jose Fandos from comment #46) > There is a discrepancy in the latest nightly—18th Feb, and please let me > know if this nightly is not meant to show the changes—with the "Bookmark > this page" panel and the "Show your bookmarks" panel. See attached > screenshots for reference. I don't see anything amiss. > Also, please let me know if a new bug would need to be filled Yes. Please add more details there.
Attachment #8377570 - Attachment description: Screenshot 2014-02-18 16.03.24.png → Identity panel popping down
(In reply to Jose Fandos from comment #49) > Created attachment 8377570 [details] > Identity panel popping down Again, please file a followup bug. Adding stuff to this bug isn't helpful.
Sorry about that. I reopen bug 940379, since that is exactly what I reported here first and it is not fixed in latest nightly.
remote: https://hg.mozilla.org/releases/mozilla-aurora/rev/11690721732f remote: https://hg.mozilla.org/releases/mozilla-aurora/rev/a1ddd968e1d3 remote: https://hg.mozilla.org/releases/mozilla-aurora/rev/bb9e1bcad0b7 remote: https://hg.mozilla.org/releases/mozilla-aurora/rev/e362f24fe667 remote: https://hg.mozilla.org/releases/mozilla-aurora/rev/e8eecab71e67 remote: https://hg.mozilla.org/releases/mozilla-aurora/rev/01c5b49eeaed (In reply to Jose Fandos from comment #51) > Sorry about that. I reopen bug 940379, since that is exactly what I reported > here first and it is not fixed in latest nightly. OK. Did you file a separate bug for comment 48 / comment 49 yet? (You might as well note in it that this is also an issue for just opening a subview in the main menu panel)
(In reply to :Gijs Kruitbosch from comment #52) > OK. Did you file a separate bug for comment 48 / comment 49 yet? > > (You might as well note in it that this is also an issue for just opening a > subview in the main menu panel) Yes, added bug 974234.
Depends on: 974234
Blocks: 961613
Depends on: 972491
No longer depends on: 972491
QA Contact: cornel.ionce
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:30.0) Gecko/20100101 Firefox/30.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:29.0) Gecko/20100101 Firefox/29.0 The OS X Arrow Panel Styling is updated according to the design on latest Aurora (build ID: 20140406004002) and on Firefox 29 beta 5 (build ID: 20140403132807).
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: