MozillaZine

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

Discussion of general topics about Mozilla Thunderbird
bee1618
 
Posts: 13
Joined: September 19th, 2019, 5:17 pm

Post Posted October 21st, 2019, 9:47 pm

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

Post Posted October 22nd, 2019, 3:56 am

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: viewtopic.php?f=38&t=3043928

bee1618
 
Posts: 13
Joined: September 19th, 2019, 5:17 pm

Post Posted October 22nd, 2019, 6:15 am

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

Post Posted October 22nd, 2019, 7:40 am

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.

bee1618
 
Posts: 13
Joined: September 19th, 2019, 5:17 pm

Post Posted October 22nd, 2019, 10:34 am

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: 148
Joined: July 18th, 2019, 9:59 am

Post Posted October 22nd, 2019, 10:21 pm

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

Return to Thunderbird General


Who is online

Users browsing this forum: No registered users and 1 guest