Closed Bug 1584853 Opened 5 years ago Closed 4 years ago

Cannot remove color for default categories like Birthday, category no longer retains "Use Color" unchecked state

Categories

(Calendar :: Preferences, defect)

Lightning 68
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
68.5.0

People

(Reporter: rogid, Assigned: darktrojan)

References

Details

(Keywords: regression)

Attachments

(2 files)

Lightning 68.1.0

Under Edit->Preferences->Calendar->Categories, highlight "Birthday", select "Edit...", uncheck "Use Color", and select "OK" ... at this point I expect no color to be shown next to "Birthday", but instead a brown color is shown; if I select "Edit..." again I see that "Use Color" is checked again.

I believe this issue did not apply in Thunderbird 60.x

This issue is not occurring with any of my other categories (e.g. "Holiday")

Lightning ships with a default list of categories that includes "Birthday". Unfortunately those default categories always get a default color assigned, i.e. you cannot unset/remove the color because it falls back to the default color. If your other category was named "Holidays" instead of "Holiday" you would observe same problem.

it seems like it could be fixed to remember the "Use Color" state -- after all, this brown turd color wasn't showing up before updating to Thunderbird 68 -- or if it won't be fixed, it seems the "Use Color" checkbox should not be shown for the default categories since it doesn't work for them in 68.

Workaround:
In Options > Calendar set a color for the category. Open Options > Advanced > Config Editor. Search for the preference that matches your category, e.g. "calendar.category.color.birthday". Replace the current color value (e.g. "#FF0000") with "transparent" (all without quotes). After restart the color should be gone.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Summary: Birthday category no longer retains "Use Color" unchecked state → Cannot remove color for default categories like Birthday, category no longer retains "Use Color" unchecked state
Version: unspecified → Lightning 7.0

thanks for workaround - works well :-)

So will the Edit unpick the "Use Color" check box not working be fixed?

Still not working in Daily Version 74.0a1 Build ID 20200113101537

It's your lucky day Walt. I happened to come across this in a list of bugs.

Assignee: nobody → geoff
Status: NEW → ASSIGNED
Attachment #9120666 - Flags: review?(paul)
Attachment #9120666 - Flags: approval-calendar-esr?(paul)
Attachment #9120666 - Flags: approval-calendar-beta?(paul)

It's my lucky day, too. Thank you very much :-)

Comment on attachment 9120666 [details] [diff] [review]
1584853-category-colour-clear-1.diff

Review of attachment 9120666 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM.  I checked that this does allow the user to remove a color on a built-in category.
Attachment #9120666 - Flags: review?(paul)
Attachment #9120666 - Flags: review+
Attachment #9120666 - Flags: approval-calendar-esr?(paul)
Attachment #9120666 - Flags: approval-calendar-esr+
Attachment #9120666 - Flags: approval-calendar-beta?(paul)
Attachment #9120666 - Flags: approval-calendar-beta+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/805903736871
When removing a category colour, set pref value to empty string instead of clearing it; r=pmorris

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 74
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/b11d7c703f33
follow-up - Fix linting error; rs=linting
Comment on attachment 9120666 [details] [diff] [review]
1584853-category-colour-clear-1.diff

This does not apply cleanly to esr68. xul -> xhtml differences I'm not comfortable fixing.
Flags: needinfo?(paul)

My fault. The XUL to XHTML change was only a comment, but the change to the test doesn't apply because the test doesn't exist on ESR. I've removed the change.

Flags: needinfo?(paul)
Attachment #9125261 - Flags: review+
Attachment #9125261 - Flags: approval-calendar-esr+
Target Milestone: 73 → 68.5.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: