Closed
Bug 401215
Opened 18 years ago
Closed 18 years ago
Background banding for the download manager
Categories
(Toolkit :: Downloads API, defect)
Toolkit
Downloads API
Tracking
()
VERIFIED
FIXED
mozilla1.9beta1
People
(Reporter: ventnor.bugzilla, Assigned: ventnor.bugzilla)
References
Details
Attachments
(4 files, 2 obsolete files)
|
43.68 KB,
image/png
|
Details | |
|
35.00 KB,
image/png
|
Details | |
|
5.29 KB,
patch
|
beltzner
:
approvalM9+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
|
31.25 KB,
image/png
|
Details |
In the mockup each download has alternating backgrounds to make them easier to separate.
Attachment #286271 -
Flags: review?(comrade693+bmo)
Comment 2•18 years ago
|
||
Requesting the blocking that Bug 392109 had...
Status: NEW → ASSIGNED
Flags: blocking-firefox3?
Target Milestone: --- → Firefox 3 M10
Comment 3•18 years ago
|
||
Comment on attachment 286271 [details] [diff] [review]
Patch
> /**
>+ * Gives every second cell an odd attribute so they can receive alternating
>+ * backgrounds from the stylesheets.
>+ */
>+function evenOddCellAttribution()
>+{
>+ var alternateCell = false;
>+ var allDownloadsInView = gDownloadsView.getElementsByTagName("richlistitem");
>+ var currentNode;
>+
>+ for (var i = 0; i < allDownloadsInView.length; i++) {
use let here please
>+ if (currentNode.getAttribute("type") != "download")
>+ continue;
this shouldn't be necessary.
>Index: toolkit/themes/pinstripe/mozapps/downloads/downloads.css
>+richlistitem[type="download"][alternate="true"]:not([selected="true"]) {
>+ background-color: ThreeDLightShadow;
>+}
This isn't correct for the mac. Please see the discussion in Bug 392109 - perhaps Colin can help clarify the correct colors.
Attachment #286271 -
Flags: review?(comrade693+bmo) → review-
Comment 4•18 years ago
|
||
See http://mxr.mozilla.org/seamonkey/source/widget/src/cocoa/nsLookAndFeel.mm
We probably should look at using NSColor for some of those. Particularly:
+ (NSArray *)controlAlternatingRowBackgroundColors
Returns an array containing the system specified background colors for alternating rows in tables and lists. You should not assume the array will contain only two colors. For general information on system colors, see “Accessing System Colors”.
Honestly, it might be better to just hardcode light blue, and leave it up to themes to change this if they are themeing the entire OS.
CC'ing Josh to see if we want to do anything about this.
| Assignee | ||
Comment 5•18 years ago
|
||
For now this hardcodes the same blue as Safari's DL manager. This could probably make it for M9...
Attachment #286271 -
Attachment is obsolete: true
Attachment #286356 -
Flags: review?(comrade693+bmo)
Comment 6•18 years ago
|
||
(In reply to comment #4)
> We probably should look at using NSColor for some of those. Particularly:
Can we get that stuff from CSS?
Comment 7•18 years ago
|
||
Comment 8•18 years ago
|
||
Comment 9•18 years ago
|
||
Comment on attachment 286356 [details] [diff] [review]
Patch 2
This would in fact be nice to have for the beta.
r=sdwilsh
Attachment #286356 -
Flags: review?(comrade693+bmo)
Attachment #286356 -
Flags: review+
Attachment #286356 -
Flags: approvalM9?
Attachment #286356 -
Flags: approval1.9?
Comment 10•18 years ago
|
||
(In reply to comment #6)
> (In reply to comment #4)
> > We probably should look at using NSColor for some of those. Particularly:
> Can we get that stuff from CSS?
>
That's what I was talking about implementing. From the way I'm reading the current code, it doesn't look like there's anything like that in there.
Comment 11•18 years ago
|
||
I'm inclined to fix that in a follow-up bug then.
Comment 12•18 years ago
|
||
This patch no longer applies cleanly.
| Assignee | ||
Comment 13•18 years ago
|
||
Attachment #286356 -
Attachment is obsolete: true
Attachment #286446 -
Flags: approvalM9?
Attachment #286446 -
Flags: approval1.9?
Attachment #286356 -
Flags: approvalM9?
Attachment #286356 -
Flags: approval1.9?
Comment 14•18 years ago
|
||
Comment on attachment 286446 [details] [diff] [review]
Unbitrot
a=endgame drivers are fine for M9, please do file the followup patch for non-hard-coded CSS in pinstripe
Attachment #286446 -
Flags: approvalM9?
Attachment #286446 -
Flags: approvalM9+
Attachment #286446 -
Flags: approval1.9?
Attachment #286446 -
Flags: approval1.9+
Updated•18 years ago
|
Flags: in-testsuite-
Flags: in-litmus-
Keywords: checkin-needed
Target Milestone: Firefox 3 M10 → Firefox 3 M9
Comment 15•18 years ago
|
||
Checking in toolkit/mozapps/downloads/content/downloads.js;
/cvsroot/mozilla/toolkit/mozapps/downloads/content/downloads.js,v <-- downloads.js
new revision: 1.97; previous revision: 1.96
done
Checking in toolkit/themes/pinstripe/mozapps/downloads/downloads.css;
/cvsroot/mozilla/toolkit/themes/pinstripe/mozapps/downloads/downloads.css,v <-- downloads.css
new revision: 1.19; previous revision: 1.18
done
Checking in toolkit/themes/winstripe/mozapps/downloads/downloads.css;
/cvsroot/mozilla/toolkit/themes/winstripe/mozapps/downloads/downloads.css,v <-- downloads.css
new revision: 1.23; previous revision: 1.22
done
I grabbed tinderbox builds from: ftp://ftp.mozilla.org/pub/firefox/tinderbox-builds;
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a9pre) Gecko/2007102913 Minefield/3.0a9pre
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a9pre) Gecko/2007102912 Minefield/3.0a9pre
and
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a9pre) Gecko/2007102913 Minefield/3.0a9pre
Verified FIXED; I made sure to check both downloading and 'completed' states.
Status: RESOLVED → VERIFIED
Updated•18 years ago
|
Flags: wanted-firefox3+
Flags: blocking-firefox3?
Flags: blocking-firefox3-
Comment 17•18 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a9pre) Gecko/2007103004 Minefield/3.0a9pre ID:2007103004
I think the striping is too dark.
Comment 18•18 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a9pre) Gecko/2007103010 Minefield/3.0a9pre ID:2007103010
No offense, but this looks absolutely horrible and is inconsistent with other parts of FF's UI.
Why don't we use a gray dotted border to separate the downloads ?
Same as how in the in add-ons manager ,Extensions,Themes and Plugins are separated.
Please file spin-off bugs; thanks.
Comment 20•18 years ago
|
||
Updated•17 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•