MozillaZine

I want to remove the calendar tab button and task tab butto

User Help for Mozilla Thunderbird
nmboon16
 
Posts: 6
Joined: July 13th, 2020, 6:44 pm

Post Posted July 16th, 2020, 9:40 pm

Thunderbird 78
How do I hide # calendar-tab-button and # task-tab-button in the upper right?

The following code in userchrome.css did not hide it.

#calendar-tab-button, #task-tab-button {
-moz-appearance:none !important;
display:none !important; }

Thank you in advance.

morat
 
Posts: 3936
Joined: February 3rd, 2009, 6:29 pm

Post Posted July 17th, 2020, 8:18 am

Try setting the toolkit.legacyUserProfileCustomizations.stylesheets pref to true in about:config, then restart. (default false)

nmboon16
 
Posts: 6
Joined: July 13th, 2020, 6:44 pm

Post Posted July 17th, 2020, 10:45 pm

Thank you.
But the button did not disappear.

morat
 
Posts: 3936
Joined: February 3rd, 2009, 6:29 pm

Post Posted July 18th, 2020, 5:36 am

The following style works for me with Thunderbird Release 68.10.0 and Thunderbird Beta 79.0b1.

Code: Select all
/* Thunderbird userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#calendar-tab-button,
#task-tab-button {
  display: none !important;
}

Check if the chrome\userChrome.css file is really in the profile folder.

Help > Troubleshooting Information > Profile Folder: Open Folder

The userChrome.css file name is case sensitive.

Windows hides file extensions by default. Novice users may end up mistakingly naming the file userChrome.css.txt without realizing it.

Try testing another style to see if the userChrome.css file is working correctly.

Code: Select all
/* Thunderbird userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

* { background-color: orange !important; }

Thunderbird must be restarted for the changes to take effect.

userChrome.css
http://kb.mozillazine.org/UserChrome.css

nmboon16
 
Posts: 6
Joined: July 13th, 2020, 6:44 pm

Post Posted July 19th, 2020, 3:28 am

Hello.
It seems that the code I wrote elsewhere in userChrome.css affected it.
I was able to erase it with the code I was told.
Thank you.

I want to close this topic, but I don't understand.

pdrummond

User avatar
 
Posts: 128
Joined: December 31st, 2004, 1:23 pm
Location: Ottawa Canada

Post Posted September 8th, 2020, 11:46 am

A bit off-topic but I've used this in userChrome.css since 2005 to change background color:

/* userChrome.css - Folder & Subject panes to pale yellow */
treechildren {background-color: #FFFFCC !important;}

Waldemar Brisk
 
Posts: 4
Joined: January 19th, 2015, 2:01 pm

Post Posted September 12th, 2020, 1:45 pm

nmboon16 wrote:Hello.
It seems that the code I wrote elsewhere in userChrome.css affected it.
I was able to erase it with the code I was told.


Hi. I've just updated from 68 to 78.2.2 and I also want to get rid of those two buttons steeling space from more tabs, since I don't use neither the calendar nor the tasks. Can you specify the code you wrote, please?

morat
 
Posts: 3936
Joined: February 3rd, 2009, 6:29 pm

Post Posted September 12th, 2020, 8:09 pm

The following style works in Thunderbird 78.

Code: Select all
/* Thunderbird userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#calendar-tab-button
{ display: none !important; }

#task-tab-button
{ display: none !important; }

Remember to set the toolkit.legacyUserProfileCustomizations.stylesheets pref to true in about:config, then restart.

Waldemar Brisk
 
Posts: 4
Joined: January 19th, 2015, 2:01 pm

Post Posted September 13th, 2020, 1:33 pm

Thanks, it worked! :-)

tonynyc
 
Posts: 36
Joined: August 9th, 2013, 12:20 pm

Post Posted September 19th, 2020, 10:34 am

morat wrote:The following style works in Thunderbird 78.

Code: Select all
/* Thunderbird userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#calendar-tab-button
{ display: none !important; }

#task-tab-button
{ display: none !important; }

Remember to set the toolkit.legacyUserProfileCustomizations.stylesheets pref to true in about:config, then restart.



For some reason, this is not working for me, I downloaded the zip file available from Mozilla for the Thunderbird userChrome.css, unzipped it in the profile folder, set the toolkit.legacyUserProfileCustomizations.stylesheets pref to true in about:config, copied and pasted the above code, still not working the background-color: orange code didn't work either, don't know why??

morat
 
Posts: 3936
Joined: February 3rd, 2009, 6:29 pm

Post Posted September 19th, 2020, 12:24 pm

Tony got it working in another thread.

More info: viewtopic.php?f=39&t=3064772

tonynyc
 
Posts: 36
Joined: August 9th, 2013, 12:20 pm

Post Posted September 19th, 2020, 12:27 pm

morat wrote:Tony got it working in another thread.

More info: viewtopic.php?f=39&t=3064772


Any way to get rid of the "Today Pane" button in the bottom right corner of the status bar? Thanks.

morat
 
Posts: 3936
Joined: February 3rd, 2009, 6:29 pm

Post Posted September 19th, 2020, 2:21 pm

When all calendars are disabled...

* open calendar tab
* right click on a calendar in calendar list
* click "Properties"
* uncheck "Enable This Calendar"
* click "OK"

...the today pane, today pane button, "Events and Tasks" menu (in menu bar and app menu) are hidden.

Adapt the UI when users are not using Calendar
http://bugzilla.mozilla.org/show_bug.cgi?id=1617786

For reading only as Bugzilla is not a forum.

Reference
http://searchfox.org/comm-esr78/search?q=hide-when-calendar-deactivated

tonynyc
 
Posts: 36
Joined: August 9th, 2013, 12:20 pm

Post Posted September 20th, 2020, 9:29 pm

morat wrote:When all calendars are disabled...

* open calendar tab
* right click on a calendar in calendar list
* click "Properties"
* uncheck "Enable This Calendar"
* click "OK"

...the today pane, today pane button, "Events and Tasks" menu (in menu bar and app menu) are hidden.

Adapt the UI when users are not using Calendar
http://bugzilla.mozilla.org/show_bug.cgi?id=1617786

For reading only as Bugzilla is not a forum.

Reference
http://searchfox.org/comm-esr78/search?q=hide-when-calendar-deactivated


It worked, thank you for such precise instructions.

breaux
 
Posts: 53
Joined: February 5th, 2003, 12:06 pm

Post Posted September 21st, 2020, 7:38 am

Not sure if I've got some non-default setting affecting this, but disabling the one, Home calendar did not make the buttons go away for me.

Return to Thunderbird Support


Who is online

Users browsing this forum: No registered users and 4 guests