Category colours.. again..

For discussing the Mozilla Calendar, Sunbird and Lightning projects.
Post Reply
pete of ebor
Posts: 141
Joined: February 18th, 2012, 8:41 am

Category colours.. again..

Post by pete of ebor »

Just upgraded to TB115.3.1 [on Linux Mint 21.2] and it seems like the category colour bar has been made a bit smaller. It is now completely hidden by the scroll-bar when there are more than 3 or 4 entries in a single day. Some other posts seem to suggest that the previous methods to change it using CSS no longer work. Does anyone know any way to either move the category colour bar over to the right-hand side of the event or make it bigger so that it is not completely hidden by the scrollbar.
If you do know how to do it, can you please publish explicit instructions of how to do it as I'm not a coder.. but I'm prepared to try and learn and give it a go..
Thanks.
morat
Posts: 6195
Joined: February 3rd, 2009, 6:29 pm

Re: Category colours.. again..

Post by morat »

Can you post a screenshot?

No problems here on Windows.

Screenshot
http://imgur.com/jmU5ncT
pete of ebor
Posts: 141
Joined: February 18th, 2012, 8:41 am

Re: Category colours.. again..

Post by pete of ebor »

hopefully it works...

here's two screenshots - one normal and one with the category colours covered..

Image

Image
pete of ebor
Posts: 141
Joined: February 18th, 2012, 8:41 am

Re: Category colours.. again..

Post by pete of ebor »

Well that didn;t work.. hopefully it works this time...

here's two screenshots - one normal and one with the category colours covered..

https://photos.app.goo.gl/BdMc9HMYABs6s2AW6

https://photos.app.goo.gl/xzz942fh7Q8RF1rT8
morat
Posts: 6195
Joined: February 3rd, 2009, 6:29 pm

Re: Category colours.. again..

Post by morat »

Can you post the "previous methods" to fix the issue?

AFAICT, the calendar styling in TB 102 isn't much different from the calendar styling in TB 115.

...

Try this:

* <profile folder>\chrome\userChrome.css

Code: Select all

/* Thunderbird userChrome.css */

div.calendar-category-box {
  width: 8px !important; /* default 4px */
  inset-inline-end: 8px !important; /* default 2px */
}
Or

Code: Select all

/* Thunderbird userChrome.css */

div.calendar-category-box {
  inset-inline-end: unset !important;
  inset-inline-start: 0px !important;
}
If the entry doesn't work, then place the entry above the @namespace lines.

Reference
http://searchfox.org/comm-esr115/search ... -views.css
pete of ebor
Posts: 141
Joined: February 18th, 2012, 8:41 am

Re: Category colours.. again..

Post by pete of ebor »

The first screenshot shows the calendar in its usual state.
The second one is what happens when I mouse over the entry to select a different event. As I have up to five events on some days, the category colours often get hidden.
Sorry to appear a bit slow, but what do you mean by "@namespace" ?
morat
Posts: 6195
Joined: February 3rd, 2009, 6:29 pm

Re: Category colours.. again..

Post by morat »

I understand the screenshots.
pete wrote:Some other posts seem to suggest that the previous methods to change it using CSS no longer work.
morat wrote:AFAICT, the calendar styling in TB 102 isn't much different from the calendar styling in TB 115.
I meant to say the calendar css files in TB 102 source isn't much different from the calendar css files in TB 115 source - so if you know a fix in TB 102, then you should post it.

...

Most people recommend not using the @namespace lines in Thunderbird 115.

Addon developer opinion on @namespace lines
http://www.userchrome.org/adding-style- ... namespaces

Firefox userChrome.css Guide by jscher2000
http://www.userchrome.org/
http://www.userchrome.org/how-create-us ... e-css.html
morat
Posts: 6195
Joined: February 3rd, 2009, 6:29 pm

Re: Category colours.. again..

Post by morat »

Try the style by Agent virtuel.

More info: viewtopic.php?f=46&t=3115694
robert ben34
Posts: 3
Joined: November 20th, 2023, 3:27 am

Re: Category colours.. again..

Post by robert ben34 »

To address the issue with the category color bar being hidden in Thunderbird 115.3.1 on Linux Mint 21.2, you can try the following steps:

Create a Custom Style Sheet (CSS):

Open a text editor (like Gedit or Pluma) and create a new file, e.g., userChrome.css.

Add the following CSS code:

css
Copy code
/* Move category color bar to the right */
.calendar-list-tree {
margin-right: 18px !important;
}
Save the file.

Copy the CSS File to Thunderbird Profile:

Open your file manager and navigate to your Thunderbird profile folder. It's usually located at ~/.thunderbird/{your-profile-name}/.
Inside the profile folder, create a new folder named chrome if it doesn't exist.
Copy your userChrome.css file into the chrome folder.
Restart Thunderbird:

Restart Thunderbird for the changes to take effect.
This CSS code attempts to move the category color bar to the right. If it doesn't work as expected, you may need to explore further adjustments. Keep in mind that Thunderbird updates may sometimes affect customizations, and you might need to adapt the CSS accordingly.

If you encounter issues or need further assistance, consider reaching out to Thunderbird forums or support channels for dedicated help.
Post Reply