Closed
Bug 932947
Opened 11 years ago
Closed 11 years ago
[Australis] Mouse-down style for buttons in customization mode
Categories
(Firefox :: Toolbars and Customization, defect)
Firefox
Toolbars and Customization
Tracking
()
VERIFIED
FIXED
Firefox 29
People
(Reporter: zfang, Assigned: bwinton)
References
(Blocks 1 open bug)
Details
(Whiteboard: [Australis:P3])
Attachments
(1 file, 3 obsolete files)
2.30 KB,
patch
|
bwinton
:
review+
bwinton
:
ui-review+
|
Details | Diff | Splinter Review |
Improve the mouse-down style for buttons in customization mode (AKA the blue box)
Comment 1•11 years ago
|
||
P-'ing until we know what this should look like. Zhenshuo, did you have a design for what should happen instead?
Flags: needinfo?(zfang)
Whiteboard: [Australis:M?] [Australis:P?] → [Australis:M?] [Australis:P-]
Reporter | ||
Comment 3•11 years ago
|
||
Assigning it "P3" in alignment with other visual design needs
Whiteboard: [Australis:M?] [Australis:P-] → [Australis:M?] [Australis:P3]
Updated•11 years ago
|
Assignee: nobody → psackl
Comment 4•11 years ago
|
||
We should do a combination of things here:
- Get rid of the border/blue box in customization mode alltogether
- Slightly increase the scaling effect that happens when the user starts dragging an icon
- Don't make the icon transparent while dragging
Here's a quick demo:
http://phlsa.github.io/ff-customization-animation
All animation properties and timings are in the CSS
Flags: needinfo?(zfang)
Flags: needinfo?(shorlander)
Is it intentional that the name of the widget disappears during dragging ?
Comment 6•11 years ago
|
||
(In reply to Guillaume C. [:ge3k0s] from comment #5)
> Is it intentional that the name of the widget disappears during dragging ?
Yes, that's intentional.
This makes the item look more »droppable« in the toolbar, because the size of the space and the size of the item being dragged match more closely.
Updated•11 years ago
|
Assignee: psackl → philipp
Comment 7•11 years ago
|
||
That is of course assuming that every item in customization mode has some sort of visual representation/icon. If that is not the case, it's better to have the text visible at all times.
Comment 8•11 years ago
|
||
Philipp, the mockup looks finished to my untrained eyes. Is my perception correct, or was there more you wanted to do here? And, did you want to implement this, or do you want one of us to try to take the mockup and make it happen for real? (you're still assigned, hence my asking)
(In reply to Philipp Sackl [:phlsa] from comment #7)
> That is of course assuming that every item in customization mode has some
> sort of visual representation/icon. If that is not the case, it's better to
> have the text visible at all times.
Unfortunately Addon-SDK-created widgets will only have text (empty space where the widget's content is, when used in the panel/palette). Are you sure you want to show the text always, though, or should we just do it only if there's no icon to show when dragging?
Flags: needinfo?(philipp)
Comment 9•11 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #8)
> Philipp, the mockup looks finished to my untrained eyes. Is my perception
> correct, or was there more you wanted to do here? And, did you want to
> implement this, or do you want one of us to try to take the mockup and make
> it happen for real? (you're still assigned, hence my asking)
You are right, they are finished. Not clearing the assignment is just me still struggling with bugzilla.
> Unfortunately Addon-SDK-created widgets will only have text (empty space
> where the widget's content is, when used in the panel/palette). Are you sure
> you want to show the text always, though, or should we just do it only if
> there's no icon to show when dragging?
If we can make this conditional, that would be great!
Flags: needinfo?(philipp)
Comment 10•11 years ago
|
||
And I did not answer your question: I think it is better if someone else takes care of the implementation. There's people more qualified for that :)
Updated•11 years ago
|
Assignee: philipp → nobody
Assignee | ||
Comment 12•11 years ago
|
||
I basically copied the styles from Philipp's patch, and tested it on Mac.
I don't _think_ we have any tests that check CSS, so I didn't run them, but I'm happy to do a try-build if this seems reasonable.
Attachment #8357973 -
Flags: review?(jaws)
Comment 13•11 years ago
|
||
Thanks for the patch and for sending me a build Blake! Here are a couple of issues:
- The animation itself looks great!
- The effect doesn't work on some icons (Bookmark button/menu, Email link, Cut/copy/paste, Zoom bar)
- As soon as the mouse is moved, the icon gets dimmed (which it shouldn't)
- The reordering animation that is in the current Nightly doesn't work anymore
Bonus points:
- Would it be possible to let the icons move into place when releasing the mouse instead of jumping there?
Assignee | ||
Comment 14•11 years ago
|
||
(The build is at https://people.mozilla.org/~bwinton/temp/firefox-29.0a1.en-US.mac64.dmg)
Replies:
1) Thanks! ;)
2) The scaling effect doesn't work on those icons in regular Nightly, so I think we should file a new bug for that.
3) I'll definitely fix that.
4) Huh. That's odd. I'll need to look into that.
Bonus:
5) In theory, yes. In practice, I'm not sure.
Comment 15•11 years ago
|
||
(In reply to Blake Winton (:bwinton) from comment #14)
> (The build is at
> https://people.mozilla.org/~bwinton/temp/firefox-29.0a1.en-US.mac64.dmg)
>
> Replies:
> 1) Thanks! ;)
> 2) The scaling effect doesn't work on those icons in regular Nightly, so I
> think we should file a new bug for that.
> 3) I'll definitely fix that.
> 4) Huh. That's odd. I'll need to look into that.
>
> Bonus:
> 5) In theory, yes. In practice, I'm not sure.
4 and 5 are to do with the fact that those animations use (transitioned) transforms, too. I... don't know how easy it is to adapt this patch to not mess with them. :-\
Assignee | ||
Comment 16•11 years ago
|
||
Okay, so, here's the status.
3) As soon as the mouse is moved, the icon gets dimmed (which it shouldn't)
Still happens. Surprisingly large pain in the ass to fix.
4) The reordering animation that is in the current Nightly doesn't work anymore
Fixed.
5) Would it be possible to let the icons move into place when releasing the mouse instead of jumping there?
In theory, yes, but in practice, this is related to #3, which I never quite got working.
Thanks,
Blake.
Attachment #8357973 -
Attachment is obsolete: true
Attachment #8357973 -
Flags: review?(jaws)
Attachment #8359837 -
Flags: ui-review?
Attachment #8359837 -
Flags: review?(jaws)
Assignee | ||
Updated•11 years ago
|
Attachment #8359837 -
Flags: ui-review? → ui-review?(philipp)
Updated•11 years ago
|
Attachment #8359837 -
Flags: ui-review?(philipp) → ui-review+
Comment 17•11 years ago
|
||
Comment on attachment 8359837 [details] [diff] [review]
bug932947.patch
Review of attachment 8359837 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/themes/shared/customizableui/customizeMode.inc.css
@@ +71,2 @@
> toolbarpaletteitem > toolbarbutton > .toolbarbutton-icon {
> + transition: transform .3s cubic-bezier(.6, 2, .75, 1.5);
What should happen here for [notransition]?
Attachment #8359837 -
Flags: review?(jaws) → review-
Assignee | ||
Comment 18•11 years ago
|
||
For [notransition] we shouldn't transition. Fixed!
Carrying forward ui-r=phlsa.
Attachment #8359837 -
Attachment is obsolete: true
Attachment #8360262 -
Flags: ui-review+
Attachment #8360262 -
Flags: review?(jaws)
Comment 19•11 years ago
|
||
Comment on attachment 8360262 [details] [diff] [review]
bug932947.patch
Review of attachment 8360262 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM apart from the nits below.
::: browser/themes/shared/customizableui/customizeMode.inc.css
@@ -57,5 @@
> background-attachment: scroll, scroll, fixed, fixed, scroll;
> }
>
> -toolbarpaletteitem {
> - transition: background-color, border-color, box-shadow, border-width;
Please leave the border-width (and its duration+timing-function). It's used for the animation in the toolbar.
@@ +73,3 @@
> }
>
> +.panel-customization-placeholder,
Nit: please remove the placeholder selector for this transform.
Attachment #8360262 -
Flags: review?(jaws) → review+
Assignee | ||
Comment 20•11 years ago
|
||
Carrying forward r=Gijs and ui-r=phlsa.
Attachment #8360262 -
Attachment is obsolete: true
Attachment #8360307 -
Flags: ui-review+
Attachment #8360307 -
Flags: review+
Comment 21•11 years ago
|
||
Status: NEW → ASSIGNED
Whiteboard: [Australis:M?] [Australis:P3] → [Australis:P3][fixed-in-fx-team]
Comment 22•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P3][fixed-in-fx-team] → [Australis:P3]
Target Milestone: --- → Firefox 29
Comment 23•11 years ago
|
||
backed this fix out to see if this fix https://bugzilla.mozilla.org/show_bug.cgi?id=960389
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 24•11 years ago
|
||
Can someone do a push to try to see if this causes the problem?
The try message is: "try: -b o -p win32 -u mochitests[Windows XP] -t none"
Comment 25•11 years ago
|
||
Green on backout.
BTW, for Try pushes, you need to manually enable PGO as well if you want it.
https://wiki.mozilla.org/ReleaseEngineering/TryChooser#What_if_I_want_PGO_for_my_build
Comment 26•11 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-5] from comment #25)
> Green on backout.
>
> BTW, for Try pushes, you need to manually enable PGO as well if you want it.
> https://wiki.mozilla.org/ReleaseEngineering/
> TryChooser#What_if_I_want_PGO_for_my_build
It was backed out together with another patch, so there's no knowing which of these two it was. The other patch is way more suspect, seeing as it touched like all the tests.
Comment 27•11 years ago
|
||
Comment 28•11 years ago
|
||
Re-landed given the try run:
remote: https://hg.mozilla.org/integration/fx-team/rev/356ef7c535f2
Whiteboard: [Australis:P3] → [Australis:P3][fixed-in-fx-team]
Comment 29•11 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P3][fixed-in-fx-team] → [Australis:P3]
Updated•11 years ago
|
QA Contact: cornel.ionce
Comment 30•11 years ago
|
||
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:29.0) Gecko/20100101 Firefox/29.0
Verified as fixed using latest Aurora (build ID: 20140307004002).
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•