Closed
Bug 371609
Opened 18 years ago
Closed 18 years ago
CSS2 system color "Highlight" should obey color changes in system prefs
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha5
People
(Reporter: stefanh, Assigned: stefanh)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
272 bytes,
application/xhtml+xml
|
Details | |
1.08 KB,
patch
|
jaas
:
review+
asaf
:
review+
vlad
:
superreview+
|
Details | Diff | Splinter Review |
25.50 KB,
image/png
|
Details |
If you change selection color in system prefs the "Highlight" color doesn't change, it's still blue. You can see this in Firefox's download manager, in multiple <select>:s etc.
Rather than using "-moz-mac-alternateprimaryhighlight" instead of "Highlight", cocoa look and feel should be changed. This will require that we use "-moz-menuhover" for <select>:s styled as menulists (since the selection color in those always should be blue).
Assignee | ||
Comment 1•18 years ago
|
||
Assignee | ||
Comment 2•18 years ago
|
||
Note that I think most browsers will produce a "lighter" Highlight color, ie the normal text selection bg color that we use before bug 371053.
But IMO this is the way to go if we're going to use a darker highlight color. Note that this will make the selection color in <select>:s change according to system prefs. This seems correct in <select>:s styled as listboxes, but not in <select>:s styled as menulists. I don't know the plans for forms.css, but one solution could be to use -moz-menuhover instead. The only problem with that is that it might not be correct for gtk2 (windows and gtk1 uses same color for Highlight and -moz-menuhover, though).
Assignee | ||
Comment 3•18 years ago
|
||
Comment on attachment 257154 [details] [diff] [review]
Use kThemeBrushAlternatePrimaryHighlightColor instead of hard-coded blue
I'll file a follow-up bug for replacing our current "-moz-mac-alternateprimaryhighlight" style rules with "Highlight" if this gets through.
Thanks for the patch. It'll be a bit until I get to this, I want to consider it when I'm looking at some similar issues soon.
Updated•18 years ago
|
Flags: blocking1.9?
Updated•18 years ago
|
Flags: blocking1.9? → blocking1.9-
Whiteboard: [wanted-1.9]
Comment 5•18 years ago
|
||
The CSS2 descriptions for Highlight are:
Highlight
Item(s) selected in a control.
HighlightText
Text of item(s) selected in a control.
I don't think those should depend on the user's text selection color, since that's not what they appear to describe. I think the current trunk behavior is the correct behavior based on the description.
Comment 6•18 years ago
|
||
(In reply to comment #2)
> This seems correct in <select>:s styled as listboxes, but not in
> <select>:s styled as menulists.
I'm also not clear on why changing to the text highlight color would be correct for listbox selects; all similar controls I can think of on the OS--table views, outline views, Finder's column view, Safari's implementation of exactly the same control--use the system's white-on-blue select style, not the text selection highlight.
![]() |
||
Comment 7•18 years ago
|
||
Stuart, change your System to use the Graphite theme instead of the Aqua one (System Preferences > Appearance 'Appearance' and 'Highlight' - try Graphite + Gold ). Then Finder, Safari, and others use those colours, whereas Minefield has the white-on-blue hard-coded (as in in <select> listboxes and a bunch of other places in Minefield).
At least in 10.3, the "Highlight" pref actually has the hint text "For selected text and lists".
Beyond that, for each selected color in that "Highlight" list, you actually get two slightly different colors, one lighter one for selected text, and one darker one for selected list items--which I'm sure everyone already knows.
(When the "Highlight" color is set to "Blue", the selected list item color is very close to the "Blue" [non-"Graphite"] menu item color.)
Sooo many colors ;)
Comment 9•18 years ago
|
||
Wow, now I feel stupid. Sorry about that, I thought that pref was just the selected text highlight based on the 10.4 tip ("For selected text").
I should add, it would be nice if this happened live, too (we've had bugs on this before which were duped to bug 122000, but maybe live updating belongs, or is already fixed by the patch, here).
Assignee | ||
Comment 11•18 years ago
|
||
(In reply to comment #10)
> I should add, it would be nice if this happened live, too (we've had bugs on
> this before which were duped to bug 122000, but maybe live updating belongs, or
> is already fixed by the patch, here).
>
Live updating is unfortunately not fixed by the patch here. The patch I have submitted simply switches the hard-coded blue color to a constant that'll make the color change according to your system prefs.
Note btw, that the text selection color and list selection color was the same before 10.3. This could be the reason why most browsers still uses the "lighter" color for selected items.
Comment 12•18 years ago
|
||
Comment on attachment 257154 [details] [diff] [review]
Use kThemeBrushAlternatePrimaryHighlightColor instead of hard-coded blue
I'd like Mano to review this as well.
Attachment #257154 -
Flags: review?(mano)
Attachment #257154 -
Flags: review?(joshmoz) → review+
Assignee | ||
Updated•18 years ago
|
Target Milestone: --- → mozilla1.9alpha6
Comment 13•18 years ago
|
||
Comment on attachment 257154 [details] [diff] [review]
Use kThemeBrushAlternatePrimaryHighlightColor instead of hard-coded blue
r=mano
Attachment #257154 -
Flags: review?(mano) → review+
Assignee | ||
Updated•18 years ago
|
Attachment #257154 -
Flags: superreview?(mikepinkerton)
Assignee | ||
Updated•18 years ago
|
Attachment #257154 -
Flags: superreview?(mikepinkerton) → superreview?(vladimir)
Attachment #257154 -
Flags: superreview?(vladimir) → superreview+
Assignee | ||
Comment 14•18 years ago
|
||
Checking in nsLookAndFeel.mm;
/cvsroot/mozilla/widget/src/cocoa/nsLookAndFeel.mm,v <-- nsLookAndFeel.mm
new revision: 1.10; previous revision: 1.9
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•18 years ago
|
Target Milestone: mozilla1.9alpha6 → mozilla1.9alpha5
Comment 15•18 years ago
|
||
The latest color scheme still breaks the colors of the download manager.
Using
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a5pre) Gecko/20070508 Minefield/3.0a5pre
-> the progress bar disappears against the background
-> the "cancel" and "pause" texts are hard to read.
Assignee | ||
Comment 16•18 years ago
|
||
> -> the progress bar disappears against the background
I don't see this - the progress bar displays just fine. Note, btw, that this bug didn't really change the default selection color (since the default selection color is blue). But if you change your selection color, you'll now see the new color in DM. For instance, I tend to use "Gold" as selection color - selected items in DM then has a gold-yellowish background-color.
Comment 17•18 years ago
|
||
(In reply to comment #16)
> > -> the progress bar disappears against the background
>
> I don't see this - the progress bar displays just fine. Note, btw, that this
> bug didn't really change the default selection color (since the default
> selection color is blue). But if you change your selection color, you'll now
> see the new color in DM. For instance, I tend to use "Gold" as selection color
> - selected items in DM then has a gold-yellowish background-color.
You're right. Just after i posted the screenshot i downloaded some other files and that problem was not reproducible anymore. However, the observation about hard-to-read texts is still valid.
Assignee | ||
Comment 18•18 years ago
|
||
Yeah, it's not optional (another bug?).
Comment 19•18 years ago
|
||
Updated•17 years ago
|
Flags: wanted1.9+
Whiteboard: [wanted-1.9]
You need to log in
before you can comment on or make changes to this bug.
Description
•