Bug 560755 - Textbox border of Location bar and search box is invisible with "High Contrast - Windows Classic". r=gavin
authorDão Gottwald <dao@mozilla.com>
Sat, 12 Jun 2010 09:00:09 +0200
changeset 43550 f97831f3e40661382a7000c86f7b920bb9011b84
parent 43549 c8929de36eb221d5b95de39eed128bf0c4e9f967
child 43551 50afb11d34253007657dd8629d27712c371932e0
push id13762
push userdgottwald@mozilla.com
push dateSat, 12 Jun 2010 07:00:37 +0000
treeherdermozilla-central@f97831f3e406 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs560755
milestone1.9.3a6pre
first release with
nightly linux32
f97831f3e406 / 3.7a6pre / 20100612030101 / files
nightly linux64
f97831f3e406 / 3.7a6pre / 20100612030724 / files
nightly mac
f97831f3e406 / 3.7a6pre / 20100612030648 / files
nightly win32
f97831f3e406 / 3.7a6pre / 20100612040049 / files
nightly win64
f97831f3e406 / 3.7a6pre / 20100612040822 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 560755 - Textbox border of Location bar and search box is invisible with "High Contrast - Windows Classic". r=gavin
browser/themes/winstripe/browser/browser-aero.css
browser/themes/winstripe/browser/browser.css
--- a/browser/themes/winstripe/browser/browser-aero.css
+++ b/browser/themes/winstripe/browser/browser-aero.css
@@ -41,16 +41,17 @@
   #browser:not(:-moz-lwtheme),
   #browser-bottombox:not(:-moz-lwtheme) {
     background-color: -moz-dialog;
   }
 
   #urlbar,
   .searchbar-textbox {
     background-color: rgba(255,255,255,.725);
+    @navbarTextboxCustomBorder@
     color: black;
   }
 
   /*XXX :-moz-placeholder isn't implemented yet (bug 457801)
   #urlbar > .autocomplete-textbox-container > .textbox-input-box > html|*.textbox-input:-moz-placeholder,
   .searchbar-textbox > .autocomplete-textbox-container > .textbox-input-box > html|*.textbox-input:-moz-placeholder {
     color: #777;
   }
--- a/browser/themes/winstripe/browser/browser.css
+++ b/browser/themes/winstripe/browser/browser.css
@@ -43,16 +43,17 @@
 
 @import url("chrome://global/skin/");
 
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 @namespace html url("http://www.w3.org/1999/xhtml");
 
 %filter substitution
 %define toolbarHighlight rgba(255,255,255,.5)
+%define navbarTextboxCustomBorder border-color: rgba(0,0,0,.25) rgba(0,0,0,.32) rgba(0,0,0,.37);
 
 #menubar-items {
   -moz-box-orient: vertical; /* for flex hack */
 }
 
 #main-menubar {
   -moz-box-flex: 1; /* make menu items expand to fill toolbar height */
 }
@@ -607,26 +608,33 @@ toolbar:not([iconsize="small"])[mode="ic
 }
 
 #urlbar,
 .searchbar-textbox {
   -moz-appearance: none;
   margin: 1px 3px;
   padding: 2px;
   background-clip: padding-box;
-  border: 1px solid;
-  border-color: rgba(0,0,0,.25) rgba(0,0,0,.32) rgba(0,0,0,.37);
+  border: 1px solid ThreeDDarkShadow;
   -moz-border-radius: 4px;
   -moz-box-shadow: 0 1px 0 rgba(0,0,0,.1) inset,
                    0 1px 0 rgba(255,255,255,.4);
 }
 
+@media all and (-moz-windows-default-theme) {
+  #urlbar,
+  .searchbar-textbox {
+    @navbarTextboxCustomBorder@
+  }
+}
+
 #urlbar:-moz-lwtheme,
 .searchbar-textbox:-moz-lwtheme {
   background-color: rgba(255,255,255,.8);
+  @navbarTextboxCustomBorder@
   color: black;
 }
 
 /*
 #urlbar:-moz-lwtheme > .autocomplete-textbox-container > .textbox-input-box > html|*.textbox-input:-moz-placeholder,
 .searchbar-textbox:-moz-lwtheme > .autocomplete-textbox-container > .textbox-input-box > html|*.textbox-input:-moz-placeholder {
   color: #777;
 }