Closed
Bug 336457
Opened 18 years ago
Closed 18 years ago
Mark selected search engine in the drop-down list
Categories
(Firefox :: Search, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: pamg.bugs, Assigned: pamg.bugs)
References
Details
Attachments
(2 files, 2 obsolete files)
33.41 KB,
image/png
|
Details | |
4.12 KB,
patch
|
mozilla
:
review+
bugs
:
superreview+
|
Details | Diff | Splinter Review |
Indicate which search engine is currently selected in the drop-down list on the searchbar.
Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•18 years ago
|
Assignee: nobody → pamg.bugs
Status: ASSIGNED → NEW
Comment 1•18 years ago
|
||
brainstormed ideas on how to do this, comments below: - overlay the search icon with a checkmark - replace the search icon with a checkmark (since it will be in the search box) - place a checkmark at the end of the search engine name string - always have the active engine at the top of the list - show the active engine as greyed out Of these, I think one of the checkmark solutions is easiest and simplest.
Assignee | ||
Comment 2•18 years ago
|
||
If possible, I'd vote for a checkmark to the left of the menu item, matching what happens in a standard system menu.
Comment 3•18 years ago
|
||
(In reply to comment #1) > - replace the search icon with a checkmark (since it will be in the search > box) maybe not optimal ... uses like to go by icons. > - always have the active engine at the top of the list User will be confused if the search engines jump around. > - show the active engine as greyed out I would like this one, if it doesn't look disabled (not available, uninstalled). Maybe if it was marked selected before user move the mouse over the list? Maybe it looks just perfect if you bold the text? <-- I would like to see how that would look
Assignee | ||
Comment 4•18 years ago
|
||
True -- bold text looks nice, clean and obvious, where a checkmark plus an icon might be a bit cluttered.
Assignee | ||
Comment 5•18 years ago
|
||
The changes in this patch only do what they're described to do after the changes in the patch for bug 335441 are applied. Until that patch is in, this one will highlight the engine that is selected when you first launch the browser. I'd rather have done everything in series, but reviewers are busy and deadlines loom. (Also this is a very small patch.)
Attachment #220880 -
Flags: ui-review?(beltzner)
Attachment #220880 -
Flags: superreview?(bugs)
Attachment #220880 -
Flags: review?(joe)
Comment 6•18 years ago
|
||
IDs should be unique to an element. Can't you use the class to style the element instead?
Updated•18 years ago
|
Attachment #220880 -
Flags: ui-review?(beltzner) → ui-review+
Assignee | ||
Comment 7•18 years ago
|
||
Using a class rather than an ID. Also, because of some concurrent changes to the patch for bug 335441, this patch is now independent of that one and works just as it is.
Attachment #220880 -
Attachment is obsolete: true
Attachment #220889 -
Flags: superreview?(bugs)
Attachment #220889 -
Flags: review?(joe)
Attachment #220880 -
Flags: superreview?(bugs)
Attachment #220880 -
Flags: review?(joe)
Comment 8•18 years ago
|
||
Comment on attachment 220889 [details] [diff] [review] Patch addressing Gavin's comments + menuitem.setAttribute("class", "menuitem-iconic searchbar-engine-menuitem"); + if (this._engines[i] == this.currentEngine) + menuitem.setAttribute("selected", "true"); If the style is keyed to the "selected" attribute, why do you need to set the class? (Also, how does the "selected" attribute get cleared?)
Comment 9•18 years ago
|
||
(In reply to comment #8) > Also, how does the "selected" attribute get cleared? I guess that was initially done by the rebuilding of the menu in the previous patches.
Assignee | ||
Comment 10•18 years ago
|
||
(In reply to comment #8) > (From update of attachment 220889 [details] [diff] [review] [edit]) > + menuitem.setAttribute("class", "menuitem-iconic > searchbar-engine-menuitem"); > + if (this._engines[i] == this.currentEngine) > + menuitem.setAttribute("selected", "true"); > > If the style is keyed to the "selected" attribute, why do you need to set the > class? (Also, how does the "selected" attribute get cleared?) The class has to be set to menuitem-iconic in any case, so adding searchbar-engine-menuitem has very little cost, and would allow a theme to distinguish between these add-engine items and other items in the list. The menu is now rebuilt when a new engine is selected, as well as when one is added or removed, which keeps the "selected" attribute in sync. If we want, that could be done with a different function that only updates the "selected" mark on an "engine-current" notification.
Assignee | ||
Comment 11•18 years ago
|
||
Attachment #221002 -
Flags: superreview?(bugs)
Attachment #221002 -
Flags: review?(joe)
Assignee | ||
Updated•18 years ago
|
Attachment #220889 -
Attachment is obsolete: true
Attachment #220889 -
Flags: superreview?(bugs)
Attachment #220889 -
Flags: review?(joe)
Updated•18 years ago
|
Attachment #221002 -
Flags: review?(joe) → review+
Comment 12•18 years ago
|
||
Comment on attachment 221002 [details] [diff] [review] Added comments explaining clearing of "selected" attribute sr=ben@mozilla.org
Attachment #221002 -
Flags: superreview?(bugs) → superreview+
Comment 13•18 years ago
|
||
fixed-1.8-branch, fixed-on-trunk
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 14•18 years ago
|
||
cool feature.
You need to log in
before you can comment on or make changes to this bug.
Description
•