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

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

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

Post by uu22m »

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: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: I want to remove the calendar tab button and task tab b

Post by morat »

Try setting the toolkit.legacyUserProfileCustomizations.stylesheets pref to true in about:config, then restart. (default false)
uu22m
Posts: 6
Joined: July 13th, 2020, 6:44 pm

Re: I want to remove the calendar tab button and task tab b

Post by uu22m »

Thank you.
But the button did not disappear.
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: I want to remove the calendar tab button and task tab b

Post by morat »

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
uu22m
Posts: 6
Joined: July 13th, 2020, 6:44 pm

Re: カレンダータブボタンとタスクタブを削除したい

Post by uu22m »

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.
User avatar
pdrummond
Posts: 128
Joined: December 31st, 2004, 1:23 pm
Location: Ottawa Canada
Contact:

Re: I want to remove the calendar tab button and task tab b

Post by pdrummond »

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

Re: カレンダータブボタンとタスクタブを削除したい

Post by Waldemar Brisk »

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: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: I want to remove the calendar tab button and task tab b

Post by morat »

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

Re: I want to remove the calendar tab button and task tab b

Post by Waldemar Brisk »

Thanks, it worked! :-)
tonynyc
Posts: 53
Joined: August 9th, 2013, 12:20 pm

Re: I want to remove the calendar tab button and task tab b

Post by tonynyc »

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: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: I want to remove the calendar tab button and task tab b

Post by morat »

Tony got it working in another thread.

More info: http://forums.mozillazine.org/viewtopic ... &t=3064772
tonynyc
Posts: 53
Joined: August 9th, 2013, 12:20 pm

Re: I want to remove the calendar tab button and task tab b

Post by tonynyc »

morat wrote:Tony got it working in another thread.

More info: http://forums.mozillazine.org/viewtopic ... &t=3064772
Any way to get rid of the "Today Pane" button in the bottom right corner of the status bar? Thanks.
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: I want to remove the calendar tab button and task tab b

Post by morat »

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? ... eactivated
tonynyc
Posts: 53
Joined: August 9th, 2013, 12:20 pm

Re: I want to remove the calendar tab button and task tab b

Post by tonynyc »

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? ... eactivated
It worked, thank you for such precise instructions.
breaux
Posts: 53
Joined: February 5th, 2003, 12:06 pm

Re: I want to remove the calendar tab button and task tab b

Post by breaux »

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.
Post Reply