Closed
Bug 397331
Opened 17 years ago
Closed 17 years ago
Autocomplete dropmarker cleanup
Categories
(Firefox :: Address Bar, defect)
Tracking
()
RESOLVED
FIXED
Firefox 3 beta3
People
(Reporter: dao, Assigned: dao)
References
Details
(Keywords: perf, polish)
Attachments
(3 files, 9 obsolete files)
5.83 KB,
image/png
|
Details | |
11.84 KB,
patch
|
asaf
:
review+
mtschrep
:
approval1.9+
|
Details | Diff | Splinter Review |
972 bytes,
patch
|
asaf
:
review+
mtschrep
:
approval1.9+
|
Details | Diff | Splinter Review |
What I'd like to do is:
- Make the dropmarker visually less obtrusive (e.g. more Vista-like)
- Move the browser-specific style from autocomplete.css (toolkit) to browser.css
- Remove the Winstripe dropmarker binding
Assignee | ||
Comment 1•17 years ago
|
||
Attachment #282104 -
Flags: ui-review?(beltzner)
Assignee | ||
Comment 2•17 years ago
|
||
Assignee | ||
Comment 3•17 years ago
|
||
Comment 4•17 years ago
|
||
Why don't make it native again for Windows XP and earlier? For Vista your patch looks good. IIRC it is now possible (or it will possible in near future) to make OS specific CSS.
Assignee | ||
Updated•17 years ago
|
Attachment #282104 -
Attachment is obsolete: true
Attachment #282104 -
Flags: ui-review?(beltzner)
Assignee | ||
Comment 5•17 years ago
|
||
Attachment #283166 -
Attachment is obsolete: true
Attachment #283167 -
Attachment is obsolete: true
Assignee | ||
Comment 6•17 years ago
|
||
Assignee | ||
Updated•17 years ago
|
Attachment #295859 -
Attachment description: patch v2 (wip) → patch v2
Attachment #295859 -
Flags: review?(mconnor)
Assignee | ||
Comment 8•17 years ago
|
||
Comment on attachment 295861 [details]
screenshots of second option
userChrome.css for this:
#urlbar[level="high"][pageproxystate="valid"] > .autocomplete-history-dropmarker ,
#urlbar[level="low"][pageproxystate="valid"] > .autocomplete-history-dropmarker {
background-color: #F5F6BE !important; /* #F7F898; */
}
#urlbar > .autocomplete-history-dropmarker {
-moz-binding: url(chrome://global/content/bindings/autocomplete.xml#history-dropmarker) !important;
-moz-appearance: none !important;
padding: 0 !important;
background-color: transparent !important;
border: none !important;
list-style-image: url(chrome://global/skin/arrow/arrow-dn.gif) !important;
-moz-image-region: auto !important;
}
#urlbar > .autocomplete-history-dropmarker > .dropmarker-icon {
padding: 0 6px !important;
}
#urlbar > .autocomplete-history-dropmarker:hover > .dropmarker-icon {
padding: 6px 4px 7px !important;
background-image: url(chrome://browser/skin/tabbrowser/tab-active-bkgnd.png) !important;
border: 2px solid !important;
-moz-border-left-colors: threedlightshadow threedshadow !important;
-moz-border-top-colors: threedlightshadow threedshadow !important;
-moz-border-bottom-colors: threedlightshadow threedshadow !important;
-moz-border-right-colors: threedlightshadow threedshadow !important;
-moz-border-radius: 4px !important;
}
#urlbar > .autocomplete-history-dropmarker:active > .dropmarker-icon {
-moz-border-left-colors: threedlightshadow threeddarkshadow !important;
-moz-border-top-colors: threedlightshadow threeddarkshadow !important;
-moz-border-bottom-colors: threedlightshadow threeddarkshadow !important;
-moz-border-right-colors: threedlightshadow threeddarkshadow !important;
}
Assignee | ||
Comment 9•17 years ago
|
||
Assignee | ||
Comment 10•17 years ago
|
||
Comment on attachment 296995 [details]
screenshot of third option
userChrome.css:
#urlbar > .autocomplete-history-dropmarker {
-moz-binding: url(chrome://global/content/bindings/autocomplete.xml#history-dropmarker) !important;
-moz-appearance: toolbox ! important;
outline: threedshadow solid 1px;
-moz-margin-end: -1px !important;
-moz-outline-radius-topright: 2px;
-moz-outline-radius-bottomright: 2px;
list-style-image: url(chrome://global/skin/arrow/arrow-dn.gif) !important;
-moz-image-region: auto !important;
}
#urlbar > .autocomplete-history-dropmarker:hover {
outline-color: threeddarkshadow;
}
Comment 11•17 years ago
|
||
Dao: what do you think of having the drop marker be inside of the text field, similar to the star? It would have a white background normally but we would probably want it to pick up a button affordance on hover similar to IE7. I sort of remember seeing this either mocked up or implemented at some point.
This would make the interface visually simpler, and create symmetry between the location bar and the search bar.
Assignee | ||
Comment 12•17 years ago
|
||
Not sure what IE7 does, but your description sounds like attachment 295861 [details] from above :)
Comment 13•17 years ago
|
||
>sounds like attachment 295861 [details] from above :)
Yep, what do you think of that as the initial state, and for the hover state we go with the toolbox styling, but perhaps inside of the location bar instead of caped on the end?
Assignee | ||
Comment 14•17 years ago
|
||
(In reply to comment #13)
> Yep, what do you think of that as the initial state, and for the hover state we
> go with the toolbox styling, but perhaps inside of the location bar instead of
> caped on the end?
I think that's another valid approach. Not sure which one I like best, though.
Assignee | ||
Updated•17 years ago
|
Attachment #295859 -
Flags: review?(mconnor)
Assignee | ||
Updated•17 years ago
|
Attachment #295861 -
Attachment description: screenshots → screenshots of second option
Assignee | ||
Comment 15•17 years ago
|
||
Comment on attachment 297011 [details]
screenshot of fourth option
userChrome.css:
#urlbar[level="high"][pageproxystate="valid"] > .autocomplete-history-dropmarker ,
#urlbar[level="low"][pageproxystate="valid"] > .autocomplete-history-dropmarker {
background-color: #F5F6BE !important;
}
#urlbar > .autocomplete-history-dropmarker {
-moz-binding: url(chrome://global/content/bindings/autocomplete.xml#history-dropmarker) !important;
-moz-appearance: none ! important;
margin: 1px !important;
padding: 0 !important;
background-color: transparent !important;
border: none !important;
list-style-image: url(chrome://global/skin/arrow/arrow-dn.gif) !important;
-moz-image-region: auto !important;
height: auto !important;
width: 15px !important;
}
#urlbar > .autocomplete-history-dropmarker:hover {
-moz-appearance: toolbox ! important;
outline: threedshadow solid 1px;
-moz-outline-radius: 2px;
-moz-outline-offset: -1px;
}
#urlbar > .autocomplete-history-dropmarker:active {
outline-color: threeddarkshadow;
}
Assignee | ||
Updated•17 years ago
|
Attachment #295859 -
Attachment description: patch v2 → patch for second option
Assignee | ||
Updated•17 years ago
|
Attachment #297011 -
Flags: ui-review?(faaborg)
Assignee | ||
Comment 16•17 years ago
|
||
Comment 17•17 years ago
|
||
Comment on attachment 297011 [details]
screenshot of fourth option
I had a chance to talk to beltzner about this. We both like the surface of the button matching the search engine button and the site button (using toolbox), but we think it will look better if hover state expands to fill the location bar, like the first proposal.
Comment 18•17 years ago
|
||
Here is the style that beltzner and I thought would look right, and also give us a visual simplicity win.
Assignee | ||
Updated•17 years ago
|
Attachment #297011 -
Attachment is obsolete: true
Attachment #297011 -
Flags: ui-review?(faaborg)
Assignee | ||
Updated•17 years ago
|
Attachment #297127 -
Attachment is obsolete: true
Assignee | ||
Updated•17 years ago
|
Attachment #296995 -
Attachment is obsolete: true
Assignee | ||
Updated•17 years ago
|
Attachment #295861 -
Attachment is obsolete: true
Assignee | ||
Updated•17 years ago
|
Attachment #295859 -
Attachment is obsolete: true
Assignee | ||
Comment 20•17 years ago
|
||
Attachment #297262 -
Flags: review?(mconnor)
Assignee | ||
Comment 21•17 years ago
|
||
Comment on attachment 297262 [details] [diff] [review]
patch
Seems like this shifts the dropmarker on hover at times. New patch coming later today.
Attachment #297262 -
Attachment is obsolete: true
Attachment #297262 -
Flags: review?(mconnor)
Assignee | ||
Comment 22•17 years ago
|
||
Assignee | ||
Updated•17 years ago
|
Attachment #297372 -
Flags: review?(mano)
Comment 23•17 years ago
|
||
What's your plan for gnomestripe and pinstripe here? We should remove the toolkit rules together, if possible.
Assignee | ||
Comment 24•17 years ago
|
||
Gnomestripe's autocomplete.css is now using a native widget (bug 405210). We should probably have a look at pinstripe once the new theme has landed.
Comment 25•17 years ago
|
||
>We should probably have a look at pinstripe once the new theme has landed.
The current approach in proto of placing the drop marker inside of the field with no hover effect seems to fit nicely with platform conventions on OS X.
Assignee | ||
Comment 26•17 years ago
|
||
(In reply to comment #25)
> The current approach in proto of placing the drop marker inside of the field
> with no hover effect seems to fit nicely with platform conventions on OS X.
But does it fit better than |-moz-appearance: menulist-button|, generally and for all apps using autocomplete?
Comment 27•17 years ago
|
||
>But does it fit better than |-moz-appearance: menulist-button|, generally and
>for all apps using autocomplete?
By all apps do you mean all apps that have autocomplete on OS X, or all apps across all platforms? If you mean autocomplete on OS X, I actually don't know of an instance of this type of drop down control in a text field. For instance, Safari doesn't have one.
Assignee | ||
Comment 28•17 years ago
|
||
I mean on OS X, as pinstripe isn't meant to be used on other platforms.
Comment 29•17 years ago
|
||
>I mean on OS X, as pinstripe isn't meant to be used on other platforms.
Without any similar widgets in other apps to compare to, we can't really match platform conventions. But I think the current approach of an arrow inside of the field with no hover state feels like other text field buttons in OS X, like the magnifying glass. For instance, in Vista the magnifying glass turns into a button on hover.
Assignee | ||
Comment 30•17 years ago
|
||
Here's what we can do for gnomestripe :)
|-moz-appearance: menulist-button| is already part of dropmarker.css.
Attachment #297888 -
Flags: review?(mano)
Comment 31•17 years ago
|
||
Comment on attachment 297372 [details] [diff] [review]
patch v2
r=mano
Attachment #297372 -
Flags: review?(mano) → review+
Comment 32•17 years ago
|
||
Comment on attachment 297888 [details] [diff] [review]
gnomestripe patch
r=mano.
Attachment #297888 -
Flags: review?(mano) → review+
Assignee | ||
Updated•17 years ago
|
Attachment #297372 -
Flags: approval1.9?
Assignee | ||
Updated•17 years ago
|
Attachment #297888 -
Flags: approval1.9?
Updated•17 years ago
|
Attachment #297372 -
Flags: approval1.9? → approval1.9+
Updated•17 years ago
|
Attachment #297888 -
Flags: approval1.9? → approval1.9+
Updated•17 years ago
|
Keywords: checkin-needed
Comment 33•17 years ago
|
||
Checking in browser/themes/winstripe/browser/browser.css;
/cvsroot/mozilla/browser/themes/winstripe/browser/browser.css,v <-- browser.css
new revision: 1.148; previous revision: 1.147
done
Checking in toolkit/themes/winstripe/global/autocomplete.css;
/cvsroot/mozilla/toolkit/themes/winstripe/global/autocomplete.css,v <-- autocomplete.css
new revision: 1.27; previous revision: 1.26
done
Checking in toolkit/themes/winstripe/global/globalBindings.xml;
/cvsroot/mozilla/toolkit/themes/winstripe/global/globalBindings.xml,v <-- globalBindings.xml
new revision: 1.15; previous revision: 1.14
done
Checking in toolkit/themes/winstripe/global/jar.mn;
/cvsroot/mozilla/toolkit/themes/winstripe/global/jar.mn,v <-- jar.mn
new revision: 1.40; previous revision: 1.39
done
Removing toolkit/themes/winstripe/global/icons/autocomplete-dropmark-arrow.png;
/cvsroot/mozilla/toolkit/themes/winstripe/global/icons/autocomplete-dropmark-arrow.png,v <-- autocomplete-dropmark-arrow.png
new revision: delete; previous revision: 1.2
done
Removing toolkit/themes/winstripe/global/icons/autocomplete-dropmark-bkgnd-mid-bottom.png;
/cvsroot/mozilla/toolkit/themes/winstripe/global/icons/autocomplete-dropmark-bkgnd-mid-bottom.png,v <-- autocomplete-dropmark-bkgnd-mid-bottom.png
new revision: delete; previous revision: 1.2
done
Removing toolkit/themes/winstripe/global/icons/autocomplete-dropmark-bkgnd-mid-top.png;
/cvsroot/mozilla/toolkit/themes/winstripe/global/icons/autocomplete-dropmark-bkgnd-mid-top.png,v <-- autocomplete-dropmark-bkgnd-mid-top.png
new revision: delete; previous revision: 1.2
done
Removing toolkit/themes/winstripe/global/icons/autocomplete-dropmark-bkgnd.png;
/cvsroot/mozilla/toolkit/themes/winstripe/global/icons/autocomplete-dropmark-bkgnd.png,v <-- autocomplete-dropmark-bkgnd.png
new revision: delete; previous revision: 1.2
done
Checking in toolkit/themes/gnomestripe/global/autocomplete.css;
/cvsroot/mozilla/toolkit/themes/gnomestripe/global/autocomplete.css,v <-- autocomplete.css
new revision: 1.14; previous revision: 1.13
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
OS: Windows XP → All
Resolution: --- → FIXED
Target Milestone: Firefox 3 → Firefox 3 M11
You need to log in
before you can comment on or make changes to this bug.
Description
•