Solved How to change hover color in New Email Windows for email address


davidhelp

Member
Local time
2:19 PM
Posts
19
OS
Windows 11 in VirtualBox
How to change hover color in New Email Windows for email address
link for: Screenshots

Thunderbird version 128.3.1
In the new message window when I move my cursor over the email address list my Windows titlebar orange color shows up as half transparent. When I click on an address it uses my light blue color I use in the main window for hover and selected. #52aaff

Question: How to change the hover color in the new email window to match what I have in the main window?

Code:
/* Folder Pane - hover color, once a row is clicked on it will either display the Windows Titlebar color you choose if you do not specify a color here then the hover color will continue on any other row you hover over. light blue specified */

.container:hover {
  background-color: #52aaff !important;
  border: 0px solid #000000 !important;}

/* Folder Pane - light blue specified */
li.selected > .container {
  color: black !important;
  background-color: #52aaff !important;
  border: 0px solid #000000 !important;}
 

My Computer

System One

  • OS
    Windows 11 in VirtualBox
    Computer type
    PC/Desktop
    Manufacturer/Model
    Gigabyte
    CPU
    Intel Core i5 4690K @ 3.50GHz
    Motherboard
    Gigabyte Z97X-UD5H
    Memory
    32GB DDR3
    Graphics Card(s)
    4095MB NVIDIA GeForce GTX 1650
    Sound Card
    Sound Blaster Z
    Monitor(s) Displays
    Dell G3223Q Monitor - 32-Inch 4K Ultra UHD (3840x2160), 144Hz 1Ms Display
    Screen Resolution
    3840x2160@144Hz
    Hard Drives
    Samsung SSD 4TB
    Keyboard
    4Tech
    Mouse
    Jelly Comb
    Internet Speed
    1GB
    Browser
    Firefox
    Antivirus
    Windows Anti-virus
Do you mean the Write New Message Window? If so, maybe try something like this?
Code:
/* Write Window Contacts Panel: address background-color & color AND hover background-color & color*/

/* hover */
#abResultsTree tbody tr:hover {
background-color: #79d2a6 !important;
color:            black   !important;   /* text color if req'd */
outline-offset:  -2px               !important;      
outline:          2px solid #000000 !important;
}
/* selected */
#abResultsTree tbody tr:is(.current,.selected) {
background-color: #79d2a6 !important;
color:            black   !important;   /* text color if req'd */
outline-offset:  -2px               !important;      
outline:          2px solid #000000 !important;
}
Write-Window.png

Works in tbird 128 (not 115).
 

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom
    CPU
    intel i7-8700 (non-K)
    Motherboard
    Asus Z370 TUF Gaming
    Memory
    32Gb
    Graphics Card(s)
    On-board Intel iGPU
    Sound Card
    On-board Realtek
    Hard Drives
    Samsung_SSD_850_EVO
    PSU
    Corsair Rm850X
    Cooling
    All air
Thanks a lot! This works :-).

This is for the Write New Message Window.
I removed the border and used these colors for my hover: #66CDAA (light green) and for selected: #52aaff (light blue).
How did you find the names like:
#abResultsTree tbody tr:is(.current,.selected) and #abResultsTree tbody tr:hover ?

I have looked over here but do not know how to use.
Hamburger menu button (3 lines)> Tools> Developer Tools
or Ctrl + Shift + I > click OK button>
ctrl + F for search box.

My Contacts/address book colors.

address.jpg
 
Last edited:

My Computer

System One

  • OS
    Windows 11 in VirtualBox
    Computer type
    PC/Desktop
    Manufacturer/Model
    Gigabyte
    CPU
    Intel Core i5 4690K @ 3.50GHz
    Motherboard
    Gigabyte Z97X-UD5H
    Memory
    32GB DDR3
    Graphics Card(s)
    4095MB NVIDIA GeForce GTX 1650
    Sound Card
    Sound Blaster Z
    Monitor(s) Displays
    Dell G3223Q Monitor - 32-Inch 4K Ultra UHD (3840x2160), 144Hz 1Ms Display
    Screen Resolution
    3840x2160@144Hz
    Hard Drives
    Samsung SSD 4TB
    Keyboard
    4Tech
    Mouse
    Jelly Comb
    Internet Speed
    1GB
    Browser
    Firefox
    Antivirus
    Windows Anti-virus
I'll let you know the details later, time permitting.
 

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom
    CPU
    intel i7-8700 (non-K)
    Motherboard
    Asus Z370 TUF Gaming
    Memory
    32Gb
    Graphics Card(s)
    On-board Intel iGPU
    Sound Card
    On-board Realtek
    Hard Drives
    Samsung_SSD_850_EVO
    PSU
    Corsair Rm850X
    Cooling
    All air
Normally in the Browser Toolbox for Thunderbird, you can inspect the "Chrome" elements by clicking on the picker icon at the top left of that Toolbox and check the code in the Inspector Tab (on the left) & the Inspector Tab Rules Panel (on the right).

ElementPicker.png

However, the Write Email Window and the Address Book Panel there, are in separate iFrames, so in this case we need to pick the Address Panel using the "iFrame selector icon" (on the top right hand side), "after" opening a Write Message Window.
ElementPicke2.png

In the resulting Inspector view on the left, when we hover the mouse over the various blocks of elements, it highlights the related element in the main Address Panel, and also gives us a rough idea of the element id and class names that are used there.

Copy all the Code you think might be relevant for the address rows eg. right cick the element block and select Copy Path (in other cases we can even start testing the elements properties directly in the right hand Rules panel - although I couln't see anything there for the email rows so we will test using the #abResultsTree elements).
AddressPanel_iFrame.png

We next need to "live" test the css in our own userChrome.css file; so close & re-open the Browser Toolbox, and this time select the Style Editor Tab and filter the list to get to our own userChrome.css file.

As soon as we enter #abResultsTree into the userChrome.css file, we see a nice helpful dropdown with all the AutoSuggest class names related to the #abResultsTree and if you follow on through a particular class it will even show you whole chains of classes. Then (for me at least) it is a matter of trial & error selecting the autosuggested names and see if we can get the address panel to respond to them using basic properties such as background-color, color etc.

As you may be aware, if the test css works, either copy it outside the Browser Toolbox to your own notes, or you can save it to your current (live) userChrome.css file using the Save button next to the name in left hand panel, but in any case always keep backups in case of an oops!
ElementAutoComplete.png

For further guidance you can always search for the codes related to the various elements in SearchFox. eg:

I am not an expert in using the Toolbox or CSS so this is only my point of view on testing.
 

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom
    CPU
    intel i7-8700 (non-K)
    Motherboard
    Asus Z370 TUF Gaming
    Memory
    32Gb
    Graphics Card(s)
    On-board Intel iGPU
    Sound Card
    On-board Realtek
    Hard Drives
    Samsung_SSD_850_EVO
    PSU
    Corsair Rm850X
    Cooling
    All air
#5 You should submit your walkthru to those running the site for a tutorial.
 

My Computer

System One

  • OS
    Windows 11 in VirtualBox
    Computer type
    PC/Desktop
    Manufacturer/Model
    Gigabyte
    CPU
    Intel Core i5 4690K @ 3.50GHz
    Motherboard
    Gigabyte Z97X-UD5H
    Memory
    32GB DDR3
    Graphics Card(s)
    4095MB NVIDIA GeForce GTX 1650
    Sound Card
    Sound Blaster Z
    Monitor(s) Displays
    Dell G3223Q Monitor - 32-Inch 4K Ultra UHD (3840x2160), 144Hz 1Ms Display
    Screen Resolution
    3840x2160@144Hz
    Hard Drives
    Samsung SSD 4TB
    Keyboard
    4Tech
    Mouse
    Jelly Comb
    Internet Speed
    1GB
    Browser
    Firefox
    Antivirus
    Windows Anti-virus
As I said, this is only my own methodology (with all its shortcomings) and barely touches on the capabilities/usage of either the Browser Toolbox or indeed CSS coding which plays an even more important part in getting one's own modified code to work. There are far more useful resources on the web including those from contributors on Reddit and Mozillazine.
 

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom
    CPU
    intel i7-8700 (non-K)
    Motherboard
    Asus Z370 TUF Gaming
    Memory
    32Gb
    Graphics Card(s)
    On-board Intel iGPU
    Sound Card
    On-board Realtek
    Hard Drives
    Samsung_SSD_850_EVO
    PSU
    Corsair Rm850X
    Cooling
    All air

Latest Tutorials

Back
Top Bottom