Closed
Bug 368558
Opened 13 years ago
Closed 13 years ago
add colors to Lightning calendars tab
Categories
(Calendar :: Lightning Only, defect)
Not set
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: thomas.benisch, Assigned: thomas.benisch)
References
Details
Attachments
(3 files, 1 obsolete file)
8.99 KB,
image/png
|
Details | |
8.59 KB,
patch
|
thomas.benisch
:
first-review+
mvl
:
second-review+
thomas.benisch
:
ui-review+
|
Details | Diff | Splinter Review |
1.08 KB,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
The calendar colors are not displayed in the Lightning calendars tab. This is a major usability issue.
Assignee | ||
Comment 1•13 years ago
|
||
This patch implements color boxes for Lightning's calendars tab. The color boxes are added between the checkbox and the calendar name, see http://wiki.mozilla.org/Calendar:Calendar_View for more details.
Assignee: nobody → thomas.benisch
Status: NEW → ASSIGNED
Attachment #253168 -
Flags: ui-review?(mvl)
Attachment #253168 -
Flags: first-review?(lilmatt)
Assignee | ||
Comment 2•13 years ago
|
||
This is a screenshot of the calendars tab with color boxes added.
Comment 3•13 years ago
|
||
See bug 298360 for the same issue.
Assignee | ||
Comment 4•13 years ago
|
||
(In reply to comment #3) > See bug 298360 for the same issue. Thanks, I didn't find this one. Should I set this issue to duplicate and add my patches to Bug #298360?
Comment 5•13 years ago
|
||
I'd dupe it the other way around. This bug has more recent patches (read: less bit-rot)
Comment 6•13 years ago
|
||
Comment on attachment 253168 [details] [diff] [review] calendar colors ui-review=mvl
Attachment #253168 -
Flags: ui-review?(mvl) → ui-review+
Comment 7•13 years ago
|
||
Comment on attachment 253168 [details] [diff] [review] calendar colors >- if (col.id == "col-calendar-Checkbox") { >+ if (col.id == "col-calendar-Checkbox" || col.id == "col-calendar-Color") { Please move col.id == "col-calendar-Color" to the next line. >+function getDefaultCalendarColor() { >+ return "#A8C2E1"; >+} Rather than hardcoding this, it should really be in a custom CSS selector of its own in lightning.css, so that it can be changed by theme authors, etc. r=lilmatt with those.
Attachment #253168 -
Flags: first-review?(lilmatt) → first-review+
Assignee | ||
Comment 8•13 years ago
|
||
This patch fixes all remarks from comment #7. I carried over the ui-review+ and first-review+ flags from the last patch.
Attachment #253168 -
Attachment is obsolete: true
Attachment #253314 -
Flags: ui-review+
Attachment #253314 -
Flags: second-review?(mvl)
Attachment #253314 -
Flags: first-review+
Comment 10•13 years ago
|
||
Comment on attachment 253314 [details] [diff] [review] calendar colors v2 > + return "color-" + (color ? color.substr(1) : "default"); Add a comment explaining that you strip the # r2=mvl with that
Attachment #253314 -
Flags: second-review?(mvl) → second-review+
Assignee | ||
Comment 11•13 years ago
|
||
Thanks for those fast reviews. Patch checked in on HEAD and MOZILLA_1_8_BRANCH.
Assignee | ||
Updated•13 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 12•13 years ago
|
||
I reopened this bug because I found another problem. After application startup the color boxes for unchecked calendars (calendars which are not in the composite calendar) are not shown. Only after selecting those calendars the color boxes are shown.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 13•13 years ago
|
||
This patch fixes the problem with the missing color boxes for unchecked calendars after application startup.
Attachment #258541 -
Flags: first-review?(mvl)
Comment 14•13 years ago
|
||
Comment on attachment 258541 [details] [diff] [review] missing color boxes for unchecked calendars >+ for (var i = 0; i < gCalendars.length; ++i) { >+ updateLtnStyleSheet(gCalendars[i]); >+ } You might want to do something like: for each (var cal in gCalendars) { updateLtnStyleSheet(cal); } (not tested for syntax errors etc) r=mvl with that.
Attachment #258541 -
Flags: first-review?(mvl) → first-review+
Assignee | ||
Comment 15•13 years ago
|
||
(In reply to comment #14) > You might want to do something like: > for each (var cal in gCalendars) { > updateLtnStyleSheet(cal); > } > (not tested for syntax errors etc) done
Assignee | ||
Comment 16•13 years ago
|
||
patch checked in on HEAD and MOZILLA_1_8_BRANCH
Assignee | ||
Updated•13 years ago
|
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Comment 17•13 years ago
|
||
Verified with Lightning/0.5pre (2007032003) and Thunderbird/1.5.0.10 (20070221)
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•