No color bars showing in calendar categories
Categories
(Calendar :: Preferences, defect)
Tracking
(Not tracked)
People
(Reporter: acdp, Assigned: darktrojan)
References
Details
(Keywords: regression)
Attachments
(12 files, 3 obsolete files)
83.63 KB,
image/png
|
Details | |
65.52 KB,
image/png
|
Details | |
4.10 KB,
text/plain
|
Details | |
91.00 KB,
image/png
|
Details | |
64.95 KB,
image/png
|
Details | |
59.18 KB,
image/png
|
Details | |
50.50 KB,
image/png
|
Details | |
7.89 KB,
text/calendar
|
Details | |
66.24 KB,
image/png
|
Details | |
4.24 KB,
patch
|
Fallen
:
review+
Fallen
:
approval-calendar-beta+
Fallen
:
approval-calendar-esr+
|
Details | Diff | Splinter Review |
10.31 KB,
patch
|
Fallen
:
review+
Fallen
:
approval-calendar-beta+
|
Details | Diff | Splinter Review |
10.31 KB,
patch
|
darktrojan
:
review+
darktrojan
:
approval-calendar-esr+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0
Steps to reproduce:
open up preferences: calendar: views
Colour bars for each catagory not showing, only when a catagory is selected
and no marker to show which catagory is being selected
Actual results:
Colour bars for each catagory not showing, only when a catagory is selected
and no marker to show which catagory is being selected
Expected results:
I would expect to see all current colours that each catagory has related to it in the "Catagories" option
(also, there are four options General, Alarms, Catagories, Views - no indication on the menu bar as to which one is selected (I know - do appreicate that really this should be evident :-) )
Comment 1•6 years ago
|
||
Did you mean open Preferences > Calendar > Categories?
I see the color bars in my preferences using Thunderbird 66.0b3 with Lightning 6.8.
Each tab selection is also highlighted.
Updated•6 years ago
|
Comment 3•6 years ago
|
||
Do you get any messages in the error console while reproducing this?
Comment 4•6 years ago
|
||
Does this reproduce with all addons but Lightning disabled and TB restarted?
Comment 5•6 years ago
|
||
yes that's what i mean Walt... you see them? I dont and here is a snapshot (I hope)
Richard - not as far as I know, did check as that crossed my mind
(In reply to [:MakeMyDay] from comment #3)
Do you get any messages in the error console while reproducing this? No
And for your 2nd questiomn: If I disable Lightning then I will not see the catagories!
Comment 9•6 years ago
|
||
I asked to disable all addons except of Lightning and restart TB. That you cannot see the categories if you disable Lightning is obvious.
Comment 10•6 years ago
|
||
I can't reproduce this in Thunderbird 66.0b3 on Windows 10, Ubuntu 18.04 or Linux Mint 19.1.
I can reproduce using Daily 67.0a1, Lightning 6.9a1 on Windows 10, but not on Ubuntu 18.04 or Linux Mint 19.1.
Lightning is the only extension in Daily.
Comment 11•6 years ago
|
||
Let's try this one instead.
Comment 12•6 years ago
|
||
No chrome package registered for chrome://browser/skin/identity-icon.svg
doesn't look like a calendatr issue. Richard, do you have any idea on this?
Comment 13•6 years ago
|
||
(In reply to [:MakeMyDay] from comment #12)
No chrome package registered for chrome://browser/skin/identity-icon.svg
doesn't look like a calendatr issue. Richard, do you have any idea on this?
This is a toolkit file with a reference to browser: https://searchfox.org/comm-central/source/mozilla/toolkit/themes/shared/in-content/common.inc.css#825
Maybe worth for a bug to move the icon to toolkit.
Reporter | ||
Comment 14•6 years ago
|
||
(In reply to [:MakeMyDay] from comment #9)
I asked to disable all addons except of Lightning and restart TB. That you cannot see the categories if you disable Lightning is obvious.
You did.. apologies....
Will do that and feed back
Reporter | ||
Comment 15•6 years ago
|
||
Reporter | ||
Comment 16•6 years ago
|
||
Only ext is the google provider and no themes, dictionary std also disabled - still same issue with display for Cal pref, in fact as per new screenshot, porb is TB not just Lightning
Reporter | ||
Comment 17•6 years ago
|
||
(In reply to [:MakeMyDay] from comment #3)
Do you get any messages in the error console while reproducing this?
No messages... suspect not condiered as an error/fault of any sort
As remarked in an earlier comment, some poss issue with pref or setting, but not using any theme
Reporter | ||
Comment 18•6 years ago
|
||
I noticed this strange behaviour from time when Preferences Option became integrated as a tab rather than a "pop-up" dialogue box
Comment 19•6 years ago
|
||
So there are 2 bugs here?
- The color bars don't show in Preferences > Calendar > Categories
- There is no definition of tab selection in any of Thunderbird's preferences with multiple selections such as Formatting, Tags, Advanced in Preferences > Display and others.
Have you tested a new profile?
https://support.mozilla.org/en-US/kb/using-multiple-profiles
Reporter | ||
Comment 20•6 years ago
|
||
(In reply to WaltS48 [:walts48] from comment #19)
So there are 2 bugs here?
- The color bars don't show in Preferences > Calendar > Categories
- There is no definition of tab selection in any of Thunderbird's preferences with multiple selections such as Formatting, Tags, Advanced in Preferences > Display and others.
Have you tested a new profile?
https://support.mozilla.org/en-US/kb/using-multiple-profiles
Walt - not sure about two bugs - think both related to same strange issue
I realize that the problem is with Preferences as a layout - not just limited to the Calendar tab.
I will try a new profile.
What I have done (as requested above regard errors) is cleaned the console (yes did a copy first as well) and then closed and reopend Prefs tab and got this:
TypeError: this._prefsBundle is undefined[Learn More] applications.js:189:7
get typeDescription chrome://messenger/content/preferences/applications.js:189
sortByType chrome://messenger/content/preferences/applications.js:1305
comparefn self-hosted:247
InsertionSort self-hosted:6429
MergeSort self-hosted:6489
sort self-hosted:250
_sortVisibleTypes chrome://messenger/content/preferences/applications.js:1315
_delayedPaneLoad chrome://messenger/content/preferences/applications.js:922
β
Very similar to the bigger dump copied, which is in a word doc if of use
Reporter | ||
Comment 21•6 years ago
|
||
Reporter | ||
Comment 22•6 years ago
|
||
Walt
New profile works fine!!!!! Will post screen shot
Reporter | ||
Comment 23•6 years ago
|
||
(In reply to Antony from comment #22)
Walt
New profile works fine!!!!! Will post screen shot
Now why did I not think of that!!!!
Reporter | ||
Comment 24•6 years ago
|
||
so what drives the theme layout in the prefs.js file. I notice that the new profile (obviously) is very thin which helps, so looking for differences
Or is there a separate file that prefs uses for the theme layout
Reporter | ||
Comment 25•6 years ago
|
||
Ok found the problem!!!!
user_pref("browser.display.document_color_use", 2);
user_pref("browser.display.foreground_color", "#333333");
user_pref("browser.display.use_document_colors", false);
Take these out and colours restored!
Snapshot to show result
This is on my original profile NOT the new one.
Comment 26•6 years ago
|
||
Happy to hear you have your problems sorted.
My prefs in Daily 67.0a1 on Windows 10 are
browser.display.document_color_use;0
browser.display.foreground_color;#000000
and I don't have any colors in Categories.
I mentioned in comment 10 that I do have them in my 67.0a1 on Linux using my production profile.
I see what is missing on Windows!!
In TB on Linux I have calendar.category.color preferences that show as modified strings.
calendar.category.color.anniversary;#333333
calendar.category.color.birthday;#996633
Twenty two of them in total, and they are all missing from my 67.0a1 on Windows 10.
To complicate matters even more. If I launch TB 66.0b3 or TB 67.0a1 with a new profile on Linux, all those preferences are nonexistent like TB 67.0a1 on Windows.
Any idea what's going on here?
Reporter | ||
Comment 27•6 years ago
|
||
Ok found the problem!!!!
user_pref("browser.display.document_color_use", 2);
user_pref("browser.display.foreground_color", "#333333");
user_pref("browser.display.use_document_colors", false);
Take these out and colours restored!
Snapshot to show result
This is on my original profile NOT the new one.(In reply to WaltS48 [:walts48] from comment #26)
Happy to hear you have your problems sorted.
My prefs in Daily 67.0a1 on Windows 10 are
browser.display.document_color_use;0
browser.display.foreground_color;#000000and I don't have any colors in Categories.
I mentioned in comment 10 that I do have them in my 67.0a1 on Linux using my production profile.
I see what is missing on Windows!!
In TB on Linux I have calendar.category.color preferences that show as modified strings.
calendar.category.color.anniversary;#333333
calendar.category.color.birthday;#996633Twenty two of them in total, and they are all missing from my 67.0a1 on Windows 10.
To complicate matters even more. If I launch TB 66.0b3 or TB 67.0a1 with a new profile on Linux, all those preferences are nonexistent like TB 67.0a1 on Windows.
Any idea what's going on here?
Walt
You are not going to have any cal cat prefs showing in a new profile until you set one up. (If I understood you correctly). To prove set up a catagory with a colour then look it up in the prefs tab.
In the prefs.js all your cal cat colours will show on the main profile, however, if not showing in the tab in the app, suggest you make a copy of the prefs.js and then edit the live one (with TB clossed first) and "remark out" or delete all the lines refering to browser.display as they are set to "0" strings and see if that shows the colours up when you restart TB in Windows
Comment 28•6 years ago
|
||
I should not need to edit anything.
I believe a default set of categories and colors are already coded into the Lightning extension. When Lightning is enabled and the user has access to Options/Preferences > Calendar the colors should appear in the Categories tab along with the category names.
Preferences > Calendar is nonexistent if Lightning is disabled.
I don't recall ever creating a category in any version of Thunderbird.
Comment 29•6 years ago
|
||
I don't know. Maybe this is a issue of the new overlay loader. N-i Geoff.
Geoff, please read comment 26.
Reporter | ||
Comment 30•6 years ago
|
||
(In reply to WaltS48 [:walts48] from comment #28)
I should not need to edit anything.
I only suggested an edit to prove one way or the other
I believe a default set of categories and colors are already coded into the Lightning extension. When Lightning is enabled and the user has access to Options/Preferences > Calendar the colors should appear in the Categories tab along with the category names.
Been such a long time since I edited all mine can't remember - however, reckon there were std catagories and you are right.
Preferences > Calendar is nonexistent if Lightning is disabled. - This is true of course
I don't recall ever creating a category in any version of Thunderbird. - changed all mine!
Assignee | ||
Comment 32•6 years ago
|
||
I think this does the job. I'm having other calendar startup issues at the moment so I'm not sure. My theory is that if calendar.categories.names
is set too early, the category colour prefs are never set up in setupDefaultCategories
.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Comment 33•6 years ago
|
||
Just started testing TB 60.6.0 rc (build2) with Lightning 6.2.6 on Linux Mint 19.1 and no color bars for the categories.
Not sure how far this goes back because I also don't see them in the Ubuntu supplied 60.5.1 and Thunderbird supplied 60.5.3 with test profiles.
I do have them in my production profiles because I have been using them for years. Except the Daily on Windows 10 which I did create a new profile for maybe 66.0a1 sometime in its lifetime.
I never use categories.
Updated•6 years ago
|
Comment 34•6 years ago
|
||
Did a little more detective work and found Thunderbird 60.0 with Lightning 6.2 to be okay.
The first version with no color bars under Categories is TB 60.2.1 with Lightning 6.2.2.1 Built from https://hg.mozilla.org/releases/comm-esr60/rev/8d71faee5dcdd0773b7e0830b8fad96a6bda559b
Assignee | ||
Comment 35•6 years ago
|
||
That more or less confirms my thought in comment 31.
Comment 36•6 years ago
|
||
Assignee | ||
Comment 37•6 years ago
|
||
No I'm not. The code that sets up the colour prefs relies on the absence of the category names pref, or it doesn't run.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 38•6 years ago
|
||
Comment 40•6 years ago
|
||
(In reply to David Hedlund from comment #38)
Because there are no category colors it looks like the Events you created pick up the color of the Home calendar.
I just downloaded this file, opened Thunderbird 60.6.1 with Lightning 6.2.6.1 with a test profile on Linux Mint 19 Cinnamon.
Imported the file into the default Home calendar and all them were the color of the Home calendar.
Right clicked on Home, selected Properties and changed the color of the Home calendar to Red (255,0,0), clicked Select, then OK.
All the events became red.
Same for any color I created.
Comment 41•6 years ago
|
||
(In reply to WaltS48 [:walts48] from comment #40)
(In reply to David Hedlund from comment #38)
Because there are no category colors it looks like the Events you created pick up the color of the Home calendar.
Yes that was expected. The test file I provided is just used to evaluate the status of this bug.
Comment 42•6 years ago
|
||
Seeing that this bug is still open and I suspect the patch hasn't been applied yet.
Here is what I recently discovered using TB 60.6.1 with Lightning 6.2.6.1 and a test profile.
Select the first category "Anniversary".
Click Edit. Notice "Use Color" is not enabled.
Enable "Use Color"
Click OK.
The Anniversary category now has a color.
Repeat for all the other categories.
Somewhere enabling the colors by default got changed. Probably Lightning 6.2.2.1 since it is the first version I found with the problem.
The colors are there. Just not enabled by default like they have been in previous versions.
Thanks to David for putting me on that path.
Comment 43•6 years ago
|
||
(In reply to WaltS48 [:walts48] from comment #42)
Created attachment 9058179 [details]
fixed-colors.pngSeeing that this bug is still open and I suspect the patch hasn't been applied yet.
Here is what I recently discovered using TB 60.6.1 with Lightning 6.2.6.1 and a test profile.
Select the first category "Anniversary".
Click Edit. Notice "Use Color" is not enabled.
Enable "Use Color"
Click OK.
The Anniversary category now has a color.
Repeat for all the other categories.Somewhere enabling the colors by default got changed. Probably Lightning 6.2.2.1 since it is the first version I found with the problem.
The colors are there. Just not enabled by default like they have been in previous versions.
Thanks to David for putting me on that path.
Thank you for the demonstration. The fastest way is to simply put these lines in prefs.js that Thunderbird stopped generate:
user_pref("calendar.category.color.anniversary", "#333333");
user_pref("calendar.category.color.birthday", "#996633");
user_pref("calendar.category.color.business", "#FFFFCC");
user_pref("calendar.category.color.calls", "#99FF99");
user_pref("calendar.category.color.clients", "#FF9900");
user_pref("calendar.category.color.competition", "#CC9933");
user_pref("calendar.category.color.customer", "#CCCCCC");
user_pref("calendar.category.color.favorites", "#3366FF");
user_pref("calendar.category.color.follow_up", "#6600CC");
user_pref("calendar.category.color.gifts", "#FF99FF");
user_pref("calendar.category.color.holidays", "#663366");
user_pref("calendar.category.color.ideas", "#003333");
user_pref("calendar.category.color.issues", "#99FFFF");
user_pref("calendar.category.color.meeting", "#FFFF66");
user_pref("calendar.category.color.miscellaneous", "#FFCC00");
user_pref("calendar.category.color.personal", "#003333");
user_pref("calendar.category.color.projects", "#FFCC99");
user_pref("calendar.category.color.public_holiday", "#FFCC66");
user_pref("calendar.category.color.status", "#FFFF33");
user_pref("calendar.category.color.suppliers", "#000099");
user_pref("calendar.category.color.travel", "#663300");
user_pref("calendar.category.color.vacation", "#660000");
Comment 44•6 years ago
|
||
Well, for users that aren't technically savvy I think the best way would be for the developers to fix the bug by fixing whatever broke causing "Use Colors" to be disabled by default in Lightning 6.2.2.1. Instead of enabled by default like they are with Lightning 6.2.
I've been using release, beta and nightly builds for years with basically the same profile and have all the color bars in my Lightnings shipped with each.
I think using Preferences > Calendar > Categories, clicking Edit and enabling "Use Colors" would be the way I would provide support to a user. Alos the method I would use.
Geoff any idea why the "Use Colors" was disabled?
Assignee | ||
Comment 45•6 years ago
|
||
Yes. The prefs are missing. I've already posted a solution to this problem, but MakeMyDay disagrees with it.
I can also show you where the breaking change landed in 6.2.2.1.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 46•6 years ago
|
||
Same patch as before, because I'm still convinced it's right, but I found an indentation error.
Updated•6 years ago
|
Comment 47•6 years ago
|
||
Assignee | ||
Comment 48•6 years ago
|
||
Here's where it happens with my patch, which isn't clear by just looking at the patch:
Assignee | ||
Comment 49•6 years ago
|
||
Okay, a different approach. Set all the prefs on the first start.
I put them on the default branch too, before they were on the user branch. I think that makes sense. I also fixed up a different call into cal.category.setupDefaultCategories
which was essentially a copy of cal.category.fromPrefs
.
Test coming in a separate patch when I've written one.
Assignee | ||
Comment 50•6 years ago
|
||
At last, a test. I've put it and testAlarmDefaultValue.js into a folder.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 52•6 years ago
|
||
Updated•6 years ago
|
Comment 53•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/dcdb5b8b12f2
Initialise calendar category colours on first startup. r=philipp
https://hg.mozilla.org/comm-central/rev/c6e75d5488e5
Test for category colours in the preferences. r=philipp
Updated•6 years ago
|
Comment 54•6 years ago
|
||
TB 69 beta / Cal 7.1:
https://hg.mozilla.org/releases/comm-beta/rev/8f2a29618eed9f467cc11c2aeff48a216a29d736
https://hg.mozilla.org/releases/comm-beta/rev/eef322757b67ee75b7d1cf8834580bf23bcc08e5
Comment 55•6 years ago
•
|
||
Failing your own test? EDIT: ... due to test-rot :-( - I had to do some rebasing on C-C: https://hg.mozilla.org/comm-central/rev/c6e75d5488e5#l3.56
So let's see whether it fails on the beta as well.
Comment 56•6 years ago
•
|
||
Looks like this needs to be adapted to the reshuffling of the preferences. Hopefully we won't see this issue in the beta.
EDIT: Beta is green, so just a patch that waited to long in the queue while the world changed around it.
Comment 57•6 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/166ccd934db3
follow-up - Update test for new preferences tab; rs=bustage-fix
Assignee | ||
Updated•6 years ago
|
Comment 58•6 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #54)
TB 69 beta / Cal 7.1:
https://hg.mozilla.org/releases/comm-beta/rev/8f2a29618eed9f467cc11c2aeff48a216a29d736
https://hg.mozilla.org/releases/comm-beta/rev/eef322757b67ee75b7d1cf8834580bf23bcc08e5
Pardon my confusion.
Is TB 69 beta reverting to using old calendar versioning, or is that Cal 7.1 just for Bugzilla purposes?
I though Lightning versions were now matching Thunderbird versions. TB 69.0b1 would have Lightning 69.0b1 and so on.
Assignee | ||
Comment 59•6 years ago
|
||
Yes, we are matching versions. It's just taking a while to change some things over. The 7.0 and 7.1 targets may never be renamed and that's okay, we know what it means.
Comment 60•6 years ago
|
||
TB 68 matches Cal 7.0 in BMO, Lightning 68 in the add-on,
TB 69 matches Cal 7.1 in BMO, Lightning 69 in the add-on,
TB 70 matches Cal 70 in BMO. Lightning 70 in the add-on,
Note that the Lightning add-on announces itself with the same version number as TB from 68 onwards.
Assignee | ||
Comment 61•6 years ago
|
||
The test as written doesn't work on ESR, here's a fixed version.
Comment 62•6 years ago
|
||
Maybe you want to remove the flag from the other patch then since I see you have been duly empowered.
Assignee | ||
Comment 63•6 years ago
|
||
Comment 64•6 years ago
|
||
TB 68.0 ESR / Cal 7.0:
https://hg.mozilla.org/releases/comm-esr68/rev/947aaaef2aecc37446a6ab2f25ce87fb7e9d7e24
https://hg.mozilla.org/releases/comm-esr68/rev/46c4bf1e10af41cc445b00014935961101822ec3
Comment 65•6 years ago
|
||
Bonus points for submitting an ESR test that passed :-)
Description
•