MozillaZine

Thread Pane Alternating Row Colors - Problem

Discuss application theming and theme development.
earthbased
 
Posts: 7
Joined: December 1st, 2007, 12:31 pm

Post Posted August 19th, 2014, 9:37 am

For a nice match with TB V31 standard gray theme, I have tried:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#threadTree > treechildren::-moz-tree-row(odd){
background-image: none !important;
background-color: #EAEBEA !important;
}

in my user.css in the chrome sub-folder of profile folder. I used http://www.w3schools.com/tags/ref_colorpicker.asp to pick the gray color.

The problem is when I override the 'background-color', the thread pane's message-selected color no longer works for the colored row. How can I fix this?

Thx

earthbased
 
Posts: 7
Joined: December 1st, 2007, 12:31 pm

Post Posted August 19th, 2014, 10:48 am

Found my answer in this thread viewtopic.php?f=39&t=584738 :

#threadTree treechildren::-moz-tree-row(selected) {
background-color: #B9D5E3 !important;
}
#threadTree treechildren:-moz-tree-cell-text(selected) {
color: -moz-DialogText !important;
}

#threadTree treechildren::-moz-tree-row(selected, focus) {
background-color: Highlight !important;
}
#threadTree treechildren:-moz-tree-cell-text(selected, focus) {
color: HighlightText !important;
}

patrickjdempsey

User avatar
 
Posts: 23734
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted August 19th, 2014, 2:28 pm

You might also try excluding selectors:

#threadTree > treechildren::-moz-tree-row(odd):not(selected):not(focus) {
background-image: none !important;
background-color: #EAEBEA !important;
}
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

Return to Theme Development


Who is online

Users browsing this forum: No registered users and 1 guest