Bug 415357 - "Disabled spin buttons in Connection Settings look quite non-native on GTK+ platforms" [p=twanno@lycos.nl (Teune van Steeg) r=Enn a1.9=schrep]
authorreed@reedloden.com
Sat, 09 Feb 2008 23:00:56 -0800
changeset 11502 667d986835df4568ec1802dbe75d803066ecea8e
parent 11501 d492e4f864611761c559f04d3db53a7d2b79139a
child 11503 8fde6c21817fcf4cd93532a5646a33de66f801e3
push idunknown
push userunknown
push dateunknown
reviewersEnn
bugs415357
milestone1.9b4pre
Bug 415357 - "Disabled spin buttons in Connection Settings look quite non-native on GTK+ platforms" [p=twanno@lycos.nl (Teune van Steeg) r=Enn a1.9=schrep]
toolkit/content/widgets/numberbox.xml
toolkit/themes/gnomestripe/global/numberbox.css
--- a/toolkit/content/widgets/numberbox.xml
+++ b/toolkit/content/widgets/numberbox.xml
@@ -9,17 +9,17 @@
   <binding id="numberbox"
            extends="chrome://global/content/bindings/textbox.xml#textbox">
 
     <resources>
       <stylesheet src="chrome://global/skin/numberbox.css"/>
     </resources>
 
     <content>
-      <xul:hbox class="textbox-input-box numberbox-input-box" flex="1" xbl:inherits="context">
+      <xul:hbox class="textbox-input-box numberbox-input-box" flex="1" xbl:inherits="context,disabled">
         <html:input class="numberbox-input textbox-input" flex="1" anonid="input"
                     xbl:inherits="onfocus,onblur,value,type,maxlength,disabled,size,readonly,tabindex,accesskey"/>
       </xul:hbox>
       <xul:spinbuttons anonid="buttons" xbl:inherits="disabled,hidden=hidespinbuttons"/>
     </content>
 
     <implementation>
       <field name="_valueEntered">false</field>
--- a/toolkit/themes/gnomestripe/global/numberbox.css
+++ b/toolkit/themes/gnomestripe/global/numberbox.css
@@ -59,15 +59,13 @@ html|*.numberbox-input {
   cursor: text;
   margin-right: -1px;
   border: 2px solid;
   -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
   -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
   -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
   -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
   padding: 3px;
-  background-color: -moz-Field;
-  color: -moz-FieldText;
 }
 
 textbox[hidespinbuttons="true"] > .numberbox-input-box {
   -moz-appearance: textfield;
 }