Making To, Cc, Bcc Boxes White in Thunderbird 60?

User Help for Mozilla Thunderbird
Post Reply
Gav80K
Posts: 10
Joined: March 1st, 2011, 8:24 am

Making To, Cc, Bcc Boxes White in Thunderbird 60?

Post by Gav80K »

I was using the below code to change the colour of the From, Subject, To, Cc, Bcc boxes to white. Since I upgraded to 60.2.1 the From and Subject boxes are still white, but the To, Cc, Bcc has changed to being filled in. I've tried to find an updated version of the code for Thunderbird 60, but I can't remember where I got it from.

Does anybody know what needs changing to get the To, Cc, Bcc boxes back to white?

Code: Select all

/* Do not remove the @namespace line -- it's required for correct functioning */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");


/* From */
#msgIdentity {
   background-color: -moz-Field !important;
   transition: border .0s, background-color .0s !important;
   border-radius: 2px !important;
}

@media not all and (-moz-windows-default-theme) {
   #msgIdentity {
     -moz-border-top-colors: ThreeDShadow ThreeDLightShadow !important;
     -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow !important;
     -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow !important;
     -moz-border-left-colors: ThreeDShadow ThreeDLightShadow !important;
  }

  #msgIdentity:hover,
  #msgIdentity[focused="true"] {
     background-color: -moz-Field !important;
     -moz-border-top-colors: ThreeDShadow ThreeDLightShadow !important;
     -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow !important;
     -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow !important;
     -moz-border-left-colors: ThreeDShadow ThreeDLightShadow !important;
  }
}


/* To, Cc, Bcc Boxes*/
@media not all and (-moz-windows-default-theme) {
  .aw-menulist {
     margin-top: 0px !important;
     -moz-margin-end: 4px !important;
     border-width: 2px !important;
     -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight !important;
     -moz-border-right-colors: ThreeDDarkShadow ThreeDLightShadow !important;
     -moz-border-bottom-colors: ThreeDDarkShadow ThreeDLightShadow !important;
     -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight !important;
     background-color: rgba(128, 128, 128, .15) !important;
     transition: background-color .05s ease-in !important;
     border-radius: 2px !important;
  }

  .aw-menulist:hover {
     background-color: rgba(128, 128, 128, .3) !important;
  }

  .aw-menulist[open="true"] {
     background-color: rgba(128, 128, 128, .05) !important;
  }

  .aw-menulist:-moz-window-inactive {
     opacity: .7 !important;
  }
}

.aw-menulist > .menulist-label-box {
   margin: 1px 0 -1px 0 !important;
}


/* Addressing Widget */
#textcol-addressingWidget {
   background-color: -moz-Field !important;
   border: 1px solid ThreeDShadow !important;
   border-radius: 2px !important;
}

.textbox-addressingWidget {
   margin-bottom: -5px !important;
   margin-bottom: -2px !important;
   transition: border .0s, background-color .0s !important;
}

.dummy-row-cell:not(:first-child) {
   margin-bottom: 0px !important;
}

@media not all and (-moz-windows-default-theme) {
  .textbox-addressingWidget {
     background-color: transparent !important;
     border: 2px solid transparent !important;
     -moz-border-top-colors: transparent transparent !important;
     -moz-border-right-colors: transparent transparent !important;
     -moz-border-bottom-colors: #CACAFF   transparent !important;
     -moz-border-left-colors: transparent transparent !important;
  }

  .dummy-row-cell:not(:first-child) {
     background-color: transparent !important;
     border: 2px solid transparent !important;
     -moz-border-top-colors: transparent transparent !important;
     -moz-border-right-colors: transparent transparent !important;
     -moz-border-bottom-colors: #CACAFF  transparent !important;
     -moz-border-left-colors: transparent transparent !important;
  }

  .textbox-addressingWidget:hover,
  .textbox-addressingWidget[focused="true"] {
     background-color: transparent !important;
     -moz-border-top-colors: transparent transparent !important;
     -moz-border-right-colors: transparent transparent !important;
     -moz-border-bottom-colors: #CACAFF   transparent !important;
     -moz-border-left-colors: transparent transparent !important;
  }
}


/* Subject Box */
#subject-box {
   margin-top: 1px !important;
}

#msgSubject {
   background-color: -moz-Field !important;
   transition: border .0s, background-color .0s !important;
   border-radius: 2px !important;
}

@media not all and (-moz-windows-default-theme) {
  #msgSubject {
     -moz-border-top-colors: ThreeDShadow ThreeDLightShadow !important;
     -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow !important;
     -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow !important;
     -moz-border-left-colors: ThreeDShadow ThreeDLightShadow !important;
  }

  #msgSubject:hover,
  #msgSubject[focused="true"] {
     background-color: -moz-Field !important;
     -moz-border-top-colors: ThreeDShadow ThreeDLightShadow !important;
     -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow !important;
     -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow !important;
     -moz-border-left-colors: ThreeDShadow ThreeDLightShadow !important;
  }
}
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Making To, Cc, Bcc Boxes White in Thunderbird 60?

Post by tanstaafl »

A quick search found several other threads about that, from 2014. I assume none of them will work as is with 60, but they might help. I suggest you use the DomInspector add-on to see if some of the windows names have changed.

http://forums.mozillazine.org/viewtopic ... ue+compose
http://forums.mozillazine.org/viewtopic ... &t=2798693

In the future I suggest you add a comment in your userChrome.css file with the URL of wherever you got the code from.
Gav80K
Posts: 10
Joined: March 1st, 2011, 8:24 am

Re: Making To, Cc, Bcc Boxes White in Thunderbird 60?

Post by Gav80K »

Thanks for the links. A lot of the examples in those threads don't work in Thunderbird 60+, but this version still works well:

http://forums.mozillazine.org/viewtopic ... #p13889375

It's not quite as good as the old version, but it gets the job done.

Thanks again for the help.
Post Reply