I want to change the tab icon of the add-ons manager

Discussion of general topics about Mozilla Thunderbird
Post Reply
1618年
Posts: 13
Joined: September 19th, 2019, 5:17 pm

I want to change the tab icon of the add-ons manager

Post by 1618年 »

I'm sorry. I want to change the icon displayed on the tab when the Add-ons manager is opened. Isn't it possible with userChrome.css?

The name of the icon displayed on the tab of the chat can be changed by checking with .tabmail-tab [type = "chat"] and the developer tool.

However, the icon on the tab of the Add-ons manager is displayed as .tab-icon-image in the developer tool, and it is the name used in many places. You can't change the image you want to use for this code.

Sorry for the confusing English.
How can I change the tab icon that appears when I open the Add-ons Manager? Thank you.

Thunderbird 68.1.2 (64bit)
morat
Posts: 6424
Joined: February 3rd, 2009, 6:29 pm

Re: I want to change the tab icon of the add-ons manager

Post by morat »

The src attribute of the xul:image tag overrides the list-style-image property so use the background-image property instead.

Fails:

Code: Select all

tab.tabmail-tab[label="Add-ons Manager"] image.tab-icon-image {
  list-style-image: url("chrome://global/skin/icons/heart.svg") !important;
  -moz-image-region: auto !important;
}
Succeeds:

Code: Select all

tab.tabmail-tab[label="Add-ons Manager"] image.tab-icon-image {
  width: 0 !important;
  padding-right: 16px !important;
  background-image: url("chrome://global/skin/icons/heart.svg") !important;
}
Similar thread: http://forums.mozillazine.org/viewtopic ... &t=3043928
1618年
Posts: 13
Joined: September 19th, 2019, 5:17 pm

Re: I want to change the tab icon of the add-ons manager

Post by 1618年 »

Thank you.
However, the icon cannot be changed.
It ’s still a Default black icon.

It was not possible to change even if only this code was entered and confirmed.

Is it impossible to change just with userchrome.css?
Do need javascript?
morat
Posts: 6424
Joined: February 3rd, 2009, 6:29 pm

Re: I want to change the tab icon of the add-ons manager

Post by morat »

It works here.

I'm using an English build so the tab label is "Add-ons Manager" for me.

If you are using a German build, then change the tab label to German.
1618年
Posts: 13
Joined: September 19th, 2019, 5:17 pm

Re: I want to change the tab icon of the add-ons manager

Post by 1618年 »

Sorry to bother you again.

As you told me,
If I change the label to my region's letters,
Icon change succeeded.

I am very happy.
I'm really thankful to you.
JYLD
Posts: 305
Joined: July 18th, 2019, 9:59 am

Re: I want to change the tab icon of the add-ons manager

Post by JYLD »

Thanks to the OP for asking the question and to Morat for the code references.

I used the code to change my Calendar and Address Book Icons. Thanks!!

Image
Post Reply