Closed Bug 371485 Opened 17 years ago Closed 17 years ago

Selected item text should be white instead of black (given dark blue background color)

Categories

(Toolkit :: Downloads API, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha4

People

(Reporter: jruderman, Assigned: stefanh)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 3 obsolete files)

The background color for selected list items was recently changed to dark blue in bug 371053.  The text color in Firefox's download manager should be changed to be readable / look good against the new background.
Flags: blocking-firefox3?
Depends on: 371487
No longer depends on: 371487
We didn't change the text color before since we used the lighter system color. What's good is that we now can use HighlightText instead of hard-coding a white text color.
Assignee: nobody → stefanh
Status: NEW → ASSIGNED
Attachment #256283 - Flags: review?(mano)
Note that the background-color of selected list items in dm isn't changeable via system prefs. This is because we use "Highlight" instead of "-moz-mac-alternateprimaryhighlight" and the "Highlight" color is hard-coded to blue.
Filed bug 371609 for the "Highlight" issue.
Blocks: 371646
Comment on attachment 256283 [details] [diff] [review]
One-liner, use HighlightText as color

r=mano.
Attachment #256283 - Flags: review?(mano) → review+
Attachment #256283 - Flags: ui-review?(beltzner)
Target Milestone: --- → Firefox 3 alpha3
Version: unspecified → Trunk
Bug 372427 points out that the download progress information (which is gray) is even harder to read against the dark blue background than the black text.
Blocks: 372427
Comment on attachment 256283 [details] [diff] [review]
One-liner, use HighlightText as color

(In reply to comment #5)
> Bug 372427 points out that the download progress information (which is gray) is
> even harder to read against the dark blue background than the black text.
>
Indeed. Better fix that in here as well.
Attachment #256283 - Flags: ui-review?(beltzner)
OK, so I had this idea that I could keep the gray text for non-selected download's. But it turns out that you'll have to use pretty expensive css in order to achieve this:

download[selected="true"] vbox:first-child > label:last-child,
download[selected="true"] hbox:last-child > label:last-child {
  color: highlightText;
}

Now, we could add an id to the relevant label in download.xml. But that would still leaves us with a style rule with 4 child selectors.

So, for anyone that has read http://developer.mozilla.org/en/docs/Writing_Efficient_CSS this feels a bit expensive ;) .
See comment #7 for why I prefer removing the gray color. I fixed a few empty lines in the file as well.
Attachment #257138 - Flags: review?(mano)
Attachment #256283 - Attachment is obsolete: true
Comment on attachment 257138 [details] [diff] [review]
Same as previous, but remove gray color

Uh, wrong patch :(
Attachment #257138 - Attachment is obsolete: true
Attachment #257138 - Flags: review?(mano)
Attached patch Correct patch (obsolete) — Splinter Review
Sorry, picked wrong tree.
Attachment #257139 - Flags: review?(mano)
No longer blocks: 372427
(In reply to comment #0)
> The background color for selected list items was recently changed to dark blue
> in bug 371053.

This might seem silly - but shouldn't the fix for this be just changing the background color back to what it used to be - i.e., the selection color? That's what Safari uses, and I don't see a reason we should do anything different in this case. 
(In reply to comment #12)
> (In reply to comment #0)
> > The background color for selected list items was recently changed to dark blue
> > in bug 371053.
> 
> This might seem silly - but shouldn't the fix for this be just changing the
> background color back to what it used to be - i.e., the selection color? That's
> what Safari uses, and I don't see a reason we should do anything different in
> this case. 
>
 "Highlight" is supposed to be "Item(s) selected in a control", according to the specs.

Apple uses two selection colors (10.3 and higher):

1) a text selection color (the one you set in your system prefs, background of selected text). This was the color we used before.
2) a darker version of the text selection color, used in listboxes etc (10.3 and higher). You can see this color in the Finder list views. We use this color in xul trees/listboxes (but it's currently not through the "Highlight" color)

Note that I'm now only talking about the OS selection colors, so I'm not necessarily arguing against you. I have always thought of "Highlight" as the color that is used in selected listboxes etc, though. But I could be wrong.


Right, thanks (and I also now see comment #2, which I missed before - sorry).
So I'll follow bug 371609.
Comment on attachment 257139 [details] [diff] [review]
Correct patch

Please keep the gray text for now, we can tweak the download bindings later to make this cheaper.
Attachment #257139 - Flags: review?(mano) → review-
I'll get to this in a few days
OK, this one will keep the gray "progresstext" when items are non-selected. Do I (really) need ui-review?
Attachment #257139 - Attachment is obsolete: true
Attachment #260032 - Flags: review?(mano)
Comment on attachment 260032 [details] [diff] [review]
New version (keep gray text)

r=mano, thanks.
Attachment #260032 - Flags: review?(mano) → review+
mozilla/toolkit/themes/pinstripe/mozapps/downloads/downloads.css 1.13
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: Firefox 3 alpha3 → Firefox 3 alpha4
Flags: blocking-firefox3?
Blocks: 382025
No longer blocks: 382025
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: