You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2018/04/24 23:00:08 UTC

[royale-asjs] branch develop updated: Change TextButton to Button and remove TextButton. In Jewel the minimun button has text baked

This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 84a01c6  Change TextButton to Button and remove TextButton. In Jewel the minimun button has text baked
84a01c6 is described below

commit 84a01c60cc2bf3d6807c4cfa57d2058556e9ed8e
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Wed Apr 25 00:59:59 2018 +0200

    Change TextButton to Button and remove TextButton. In Jewel the minimun button has text baked
---
 .../src/main/royale/AlertPlayGround.mxml           |   4 +-
 .../src/main/royale/ButtonPlayGround.mxml          |  15 +-
 .../JewelExample/src/main/royale/MainContent.mxml  |   1 -
 .../src/main/royale/SliderPlayGround.mxml          |   2 +-
 .../src/main/royale/TextButtonPlayGround.mxml      |  53 ------
 .../src/main/royale/TextInputPlayGround.mxml       |   4 +-
 .../RemoteObjectAMFTest/src/main/royale/App.mxml   |   6 +-
 .../Jewel/src/main/resources/jewel-manifest.xml    |   1 -
 .../main/royale/org/apache/royale/jewel/Button.as  |  76 +++++++-
 .../royale/org/apache/royale/jewel/TextButton.as   | 129 -------------
 .../apache/royale/jewel/beads/views/AlertView.as   |  18 +-
 .../jewel/beads/views/JewelLabelViewBead.mxml      |   2 +-
 .../src/main/sass/components/_textbutton.sass      |  20 --
 .../projects/Jewel/src/main/sass/defaults.sass     |   1 -
 .../JewelTheme/src/main/resources/defaults.css     | 206 ++++-----------------
 .../royale/jewel/beads/views/LabelViewBead.mxml    |   2 +-
 .../main/sass/components-emphasized/_button.sass   |  36 +++-
 .../sass/components-emphasized/_textbutton.sass    |  82 --------
 .../src/main/sass/components-primary/_button.sass  |  36 +++-
 .../main/sass/components-primary/_textbutton.sass  |  83 ---------
 .../main/sass/components-secondary/_button.sass    |  33 +++-
 .../sass/components-secondary/_textbutton.sass     |  79 --------
 .../themes/JewelTheme/src/main/sass/defaults.sass  |   3 -
 23 files changed, 217 insertions(+), 675 deletions(-)

diff --git a/examples/royale/JewelExample/src/main/royale/AlertPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/AlertPlayGround.mxml
index e57bb47..81f24e3 100644
--- a/examples/royale/JewelExample/src/main/royale/AlertPlayGround.mxml
+++ b/examples/royale/JewelExample/src/main/royale/AlertPlayGround.mxml
@@ -54,10 +54,10 @@ limitations under the License.
 	<html:H3 text="Jewel Alert"/>
 	
     <js:MultilineLabel text="Click the button below to display a simple Alert window"/>
-	<j:TextButton text="Click Me" click="Alert.show('This is an Alert component example that shows a label text and the default OK button.', 'Alert Example')"/>
+	<j:Button text="Click Me" click="Alert.show('This is an Alert component example that shows a label text and the default OK button.', 'Alert Example')"/>
 
     <js:MultilineLabel text="Click the button below to display an Alert window and capture the button pressed by the user."/>
-	<j:TextButton text="Click Me" click="clickHandler(event)"/>
+	<j:Button text="Click Me" click="clickHandler(event)"/>
     <j:Label id="status"/>
 	
 </js:Group>
diff --git a/examples/royale/JewelExample/src/main/royale/ButtonPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/ButtonPlayGround.mxml
index 06e2411..2b536cc 100644
--- a/examples/royale/JewelExample/src/main/royale/ButtonPlayGround.mxml
+++ b/examples/royale/JewelExample/src/main/royale/ButtonPlayGround.mxml
@@ -32,20 +32,19 @@ limitations under the License.
 	</fx:Script>
 
 	<js:beads>
-		<j:HorizontalLayoutWithPaddingAndGap gap="10"/>
+		<j:VerticalLayoutWithPaddingAndGap gap="10"/>
 	</js:beads>
 	
 	<html:H3 text="Jewel Button"/>
 	
-	<j:Button id="button" click="clickHandler(event)"/>
-	<j:Button primary="true"/>
-	<j:Button secondary="true"/>
-	<j:Button emphasized="true"/>
-
-	<j:Button>
+	<j:Button text="Default" id="button" click="clickHandler(event)"/>
+	<j:Button text="Button With More Text"/>
+	<j:Button text="Primary" primary="true"/>
+	<j:Button text="Secondary" secondary="true"/>
+	<j:Button text="Emphasized" emphasized="true"/>
+	<j:Button text="Disabled" primary="true">
 		<j:beads>
 			<j:Disabled/>
 		</j:beads>
 	</j:Button>
-	
 </js:Group>
diff --git a/examples/royale/JewelExample/src/main/royale/MainContent.mxml b/examples/royale/JewelExample/src/main/royale/MainContent.mxml
index 0830fa3..0cd2271 100644
--- a/examples/royale/JewelExample/src/main/royale/MainContent.mxml
+++ b/examples/royale/JewelExample/src/main/royale/MainContent.mxml
@@ -32,7 +32,6 @@ limitations under the License.
         </js:beads>
         <local:LabelPlayGround/>
         <local:ButtonPlayGround/>
-        <local:TextButtonPlayGround/>
         <local:DropDownListPlayGround/>
     </js:Group>
 
diff --git a/examples/royale/JewelExample/src/main/royale/SliderPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/SliderPlayGround.mxml
index c64d197..b355b64 100644
--- a/examples/royale/JewelExample/src/main/royale/SliderPlayGround.mxml
+++ b/examples/royale/JewelExample/src/main/royale/SliderPlayGround.mxml
@@ -74,7 +74,7 @@ limitations under the License.
 		</j:beads>
 	</j:Slider>
 
-	<j:TextButton id="button" text="Slider to 400x200" width="250" height="80" primary="true"
+	<j:Button id="button" text="Slider to 400x200" width="250" height="80" primary="true"
 					click="clickHandler(event)"/>
 
 </js:Group>
diff --git a/examples/royale/JewelExample/src/main/royale/TextButtonPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/TextButtonPlayGround.mxml
deleted file mode 100644
index e9461e8..0000000
--- a/examples/royale/JewelExample/src/main/royale/TextButtonPlayGround.mxml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements.  See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
--->
-<js:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
-		  xmlns:js="library://ns.apache.org/royale/basic"
-		  xmlns:html="library://ns.apache.org/royale/html"
-		  xmlns:j="library://ns.apache.org/royale/jewel"
-		  className="container">
-    
-	<fx:Script>
-		<![CDATA[
-        private function onValueChange(event:Event):void
-        {
-        	//button.width = slider.value;
-			//button.height = slider_v.value;
-        }
-    	]]>
-	</fx:Script>
-
-	<js:beads>
-		<j:VerticalLayoutWithPaddingAndGap gap="10"/>
-	</js:beads>
-	
-	<html:H3 text="Jewel TextButton"/>
-	
-	<j:TextButton text="Default"/>
-	<j:TextButton text="Button With More Text"/>
-	<j:TextButton text="Primary" primary="true"/>
-	<j:TextButton text="Secondary" secondary="true"/>
-	<j:TextButton text="Emphasized" emphasized="true"/>
-	<j:TextButton text="Disabled" primary="true">
-		<j:beads>
-			<j:Disabled/>
-		</j:beads>
-	</j:TextButton>
-
-</js:Group>
diff --git a/examples/royale/JewelExample/src/main/royale/TextInputPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/TextInputPlayGround.mxml
index c6add56..d81a3f7 100644
--- a/examples/royale/JewelExample/src/main/royale/TextInputPlayGround.mxml
+++ b/examples/royale/JewelExample/src/main/royale/TextInputPlayGround.mxml
@@ -33,7 +33,7 @@ limitations under the License.
 		<js:beads>
 			<j:HorizontalLayoutWithPaddingAndGap gap="10"/>
 		</js:beads>
-		<j:TextButton text="Check it!" primary="true"/>
+		<j:Button text="Check it!" primary="true"/>
 		<j:TextInput text="A TextInput"/>
 	</js:Group>
 
@@ -46,7 +46,7 @@ limitations under the License.
 				<js:TextPromptBead prompt="With prompt..."/>
 			</j:beads>
 		</j:TextInput>
-		<j:TextButton text="Send" primary="true"/>
+		<j:Button text="Send" primary="true"/>
 	</js:Group>
 
 	<j:TextInput text="Disabled with text...">
diff --git a/examples/royale/RemoteObjectAMFTest/src/main/royale/App.mxml b/examples/royale/RemoteObjectAMFTest/src/main/royale/App.mxml
index 4689b12..47f7d66 100644
--- a/examples/royale/RemoteObjectAMFTest/src/main/royale/App.mxml
+++ b/examples/royale/RemoteObjectAMFTest/src/main/royale/App.mxml
@@ -112,7 +112,7 @@ limitations under the License.
                             <js:TextPromptBead prompt="Name to send via AMF"/>
                         </j:beads>
                     </j:TextInput>
-                    <j:TextButton text="Send to Name" primary="true"  click="sendName()"/>
+                    <j:Button text="Send to Name" primary="true"  click="sendName()"/>
                 </js:Group>
 
                 <j:Label id="received" text="Received:"/>
@@ -122,7 +122,7 @@ limitations under the License.
                 <js:beads>
                     <j:VerticalLayoutWithPaddingAndGap gap="10"/>
                 </js:beads>
-                <j:TextButton text="Get Array of ValueObjects" emphasized="true" click="getVOs()" width="100%"/>
+                <j:Button text="Get Array of ValueObjects" emphasized="true" click="getVOs()" width="100%"/>
                 <j:List id="list" labelField="id" width="100%" height="200" 
                             change="reportChange()"/>
                 <j:Label id="received2" text="Selected:"/>
@@ -132,7 +132,7 @@ limitations under the License.
                 <js:beads>
                     <j:VerticalLayoutWithPaddingAndGap gap="10"/>
                 </js:beads>
-                <j:TextButton text="Get Some Product" primary="true" click="getSomeProduct()"/>
+                <j:Button text="Get Some Product" primary="true" click="getSomeProduct()"/>
                 <js:MultilineLabel id="received3" text="Received:"/>
             </js:Group>
 
diff --git a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
index 82e7691..6ec7639 100644
--- a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
+++ b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
@@ -23,7 +23,6 @@
 
     <component id="Application" class="org.apache.royale.jewel.Application"/>
     <component id="Button" class="org.apache.royale.jewel.Button"/>
-    <component id="TextButton" class="org.apache.royale.jewel.TextButton"/>
     <component id="Label" class="org.apache.royale.jewel.Label"/>
     <component id="TextInput" class="org.apache.royale.jewel.TextInput"/>
     <component id="Slider" class="org.apache.royale.jewel.Slider"/>
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Button.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Button.as
index ba25d87..d0a458f 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Button.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Button.as
@@ -20,6 +20,7 @@ package org.apache.royale.jewel
 {
     import org.apache.royale.html.Button;
     import org.apache.royale.utils.ClassSelectorList;
+    import org.apache.royale.core.ITextModel;
 
     COMPILE::JS
     {
@@ -27,8 +28,7 @@ package org.apache.royale.jewel
     }
 
     /**
-     *  The Button class is a simple button.  Use TextButton for
-     *  buttons that should show text.  This is the lightest weight
+     *  The Button class that should show text.  This is the lightest weight
      *  button used for non-text buttons like the arrow buttons
      *  in a Scrollbar or NumericStepper.
      * 
@@ -65,6 +65,78 @@ package org.apache.royale.jewel
         
         protected var classSelectorList:ClassSelectorList;
 
+        /**
+         *  @copy org.apache.royale.html.Label#text
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion Royale 0.0
+         */
+		public function get text():String
+		{
+            COMPILE::SWF
+            {
+                return ITextModel(model).text;
+            }
+            COMPILE::JS
+            {
+                return element.innerHTML;
+            }
+		}
+
+        /**
+         *  @private
+         */
+		public function set text(value:String):void
+		{
+            COMPILE::SWF
+            {
+                ITextModel(model).text = value;
+            }
+            COMPILE::JS
+            {
+                this.element.innerHTML = value;
+                this.dispatchEvent('textChange');
+            }
+		}
+
+        /**
+         *  @copy org.apache.royale.html.Label#html
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion Royale 0.0
+         */
+		public function get html():String
+		{
+            COMPILE::SWF
+            {
+                return ITextModel(model).html;
+            }
+            COMPILE::JS
+            {
+                return element.innerHTML;
+            }
+		}
+
+        /**
+         *  @private
+         */
+		public function set html(value:String):void
+		{
+            COMPILE::SWF
+            {
+                ITextModel(model).html = value;
+            }
+            COMPILE::JS
+            {
+                this.element.innerHTML = value;
+                this.dispatchEvent('textChange');
+            }
+		}
+
         private var _primary:Boolean = false;
 
         /**
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextButton.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextButton.as
deleted file mode 100644
index 67fdcdd..0000000
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextButton.as
+++ /dev/null
@@ -1,129 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.royale.jewel
-{
-    import org.apache.royale.core.ITextModel;
-
-    COMPILE::JS
-    {
-        import org.apache.royale.core.WrappedHTMLElement;
-        import org.apache.royale.html.util.addElementToWrapper;
-    }
-    
-    [DefaultProperty("text")]
-
-    /**
-     *  The TextButton class implements a basic button that
-     *  displays text and provides a Jewel Design Library UI-like appearance.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.6
-     *  @productversion Royale 0.9.2
-     */
-	public class TextButton extends Button
-	{
-        /**
-         *  Constructor.
-         *
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion Royale 0.9.2
-         */
-		public function TextButton()
-		{
-			super();
-
-            typeNames = "jewel textbutton";
-		}
-        
-        /**
-         *  @copy org.apache.royale.html.Label#text
-         *
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion Royale 0.0
-         */
-		public function get text():String
-		{
-            COMPILE::SWF
-            {
-                return ITextModel(model).text;
-            }
-            COMPILE::JS
-            {
-                return element.innerHTML;
-            }
-		}
-
-        /**
-         *  @private
-         */
-		public function set text(value:String):void
-		{
-            COMPILE::SWF
-            {
-                ITextModel(model).text = value;
-            }
-            COMPILE::JS
-            {
-                this.element.innerHTML = value;
-                this.dispatchEvent('textChange');
-            }
-		}
-
-        /**
-         *  @copy org.apache.royale.html.Label#html
-         *
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion Royale 0.0
-         */
-		public function get html():String
-		{
-            COMPILE::SWF
-            {
-                return ITextModel(model).html;
-            }
-            COMPILE::JS
-            {
-                return element.innerHTML;
-            }
-		}
-
-        /**
-         *  @private
-         */
-		public function set html(value:String):void
-		{
-            COMPILE::SWF
-            {
-                ITextModel(model).html = value;
-            }
-            COMPILE::JS
-            {
-                this.element.innerHTML = value;
-                this.dispatchEvent('textChange');
-            }
-		}
-	}
-}
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as
index cb3133c..974dbfc 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as
@@ -34,7 +34,7 @@ package org.apache.royale.jewel.beads.views
     import org.apache.royale.html.beads.GroupView;
     import org.apache.royale.jewel.Alert;
     import org.apache.royale.jewel.Label;
-    import org.apache.royale.jewel.TextButton;
+    import org.apache.royale.jewel.Button;
     import org.apache.royale.jewel.TitleBar;
     import org.apache.royale.jewel.ControlBar;
 	import org.apache.royale.jewel.beads.layouts.HorizontalLayoutSpaceBetween;
@@ -80,10 +80,10 @@ package org.apache.royale.jewel.beads.views
 		protected var label:Label;
 		protected var controlBar:UIBase;
 
-        protected var okButton:TextButton;
-        protected var cancelButton:TextButton;
-        protected var yesButton:TextButton;
-        protected var noButton:TextButton;
+        protected var okButton:Button;
+        protected var cancelButton:Button;
+        protected var yesButton:Button;
+        protected var noButton:Button;
 
 		/**
 		 *  @copy org.apache.royale.core.IBead#strand
@@ -165,7 +165,7 @@ package org.apache.royale.jewel.beads.views
 
             if( flags & Alert.OK )
             {
-                okButton = new TextButton();
+                okButton = new Button();
 				okButton.primary = true;
                 okButton.text = alertModel.okLabel;
                 okButton.addEventListener("click", handleOK);
@@ -175,7 +175,7 @@ package org.apache.royale.jewel.beads.views
 
 			if( flags & Alert.CANCEL )
             {
-                cancelButton = new TextButton();
+                cancelButton = new Button();
                 cancelButton.text = alertModel.cancelLabel;
                 cancelButton.addEventListener("click", handleCancel);
 
@@ -184,7 +184,7 @@ package org.apache.royale.jewel.beads.views
             
             if( flags & Alert.YES )
             {
-                yesButton = new TextButton();
+                yesButton = new Button();
 				yesButton.primary = true;
                 yesButton.text = alertModel.yesLabel;
                 yesButton.addEventListener("click", handleYes);
@@ -194,7 +194,7 @@ package org.apache.royale.jewel.beads.views
 
 			if( flags & Alert.NO )
             {
-                noButton = new TextButton();
+                noButton = new Button();
                 noButton.text = alertModel.noLabel;
                 noButton.addEventListener("click", handleNo);
 
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/JewelLabelViewBead.mxml b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/JewelLabelViewBead.mxml
index 4135138..d3edc75 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/JewelLabelViewBead.mxml
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/JewelLabelViewBead.mxml
@@ -38,7 +38,7 @@ limitations under the License.
         <js:MXMLBeadViewDataBinding />
     </js:beads>
 
-    <j:TextButton id="textButton" text="JewelLabelViewBead" primary="true"/>
+    <j:Button id="textButton" text="JewelLabelViewBead" primary="true"/>
     
 <!--
     
diff --git a/frameworks/projects/Jewel/src/main/sass/components/_textbutton.sass b/frameworks/projects/Jewel/src/main/sass/components/_textbutton.sass
deleted file mode 100644
index 019c818..0000000
--- a/frameworks/projects/Jewel/src/main/sass/components/_textbutton.sass
+++ /dev/null
@@ -1,20 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-
diff --git a/frameworks/projects/Jewel/src/main/sass/defaults.sass b/frameworks/projects/Jewel/src/main/sass/defaults.sass
index 84dd1f0..cefe6d2 100644
--- a/frameworks/projects/Jewel/src/main/sass/defaults.sass
+++ b/frameworks/projects/Jewel/src/main/sass/defaults.sass
@@ -31,7 +31,6 @@
 @import "components/list"
 @import "components/radiobutton"
 @import "components/slider"
-@import "components/textbutton"
 @import "components/textinput"
 @import "components/titlebar"
 
diff --git a/frameworks/themes/JewelTheme/src/main/resources/defaults.css b/frameworks/themes/JewelTheme/src/main/resources/defaults.css
index 89ae835..8abebcf 100644
--- a/frameworks/themes/JewelTheme/src/main/resources/defaults.css
+++ b/frameworks/themes/JewelTheme/src/main/resources/defaults.css
@@ -140,13 +140,19 @@ j|Alert {
   cursor: pointer;
   display: inline-block;
   margin: 0;
-  padding: 8px;
-  min-width: 34px;
+  padding: 10px 16px;
+  min-width: 74px;
   min-height: 34px;
   background: linear-gradient(#e6e6e6, #cccccc);
   border: 1px solid #b3b3b3;
   box-shadow: inset 0 1px 0 white;
   border-radius: 3px;
+  font-family: "Lato", sans-serif;
+  font-size: 14px;
+  font-weight: bold;
+  color: #808080;
+  text-transform: uppercase;
+  text-decoration: none;
 }
 .jewel.button:hover, .jewel.button:hover:focus {
   background: linear-gradient(#d9d9d9, silver);
@@ -167,19 +173,29 @@ j|Alert {
   background: #f3f3f3;
   border: 1px solid #d9d9d9;
   box-shadow: none;
+  color: silver;
+  font-weight: normal;
+  text-shadow: unset;
 }
 
 .jewel.button.primary {
   cursor: pointer;
   display: inline-block;
   margin: 0;
-  padding: 8px;
-  min-width: 34px;
+  padding: 10px 16px;
+  min-width: 74px;
   min-height: 34px;
   background: linear-gradient(#54b7f3, #24a3ef);
   border: 1px solid #0f88d1;
   box-shadow: inset 0 1px 0 #9bd5f8;
   border-radius: 3px;
+  font-family: "Lato", sans-serif;
+  font-size: 14px;
+  font-weight: bold;
+  color: #FFFFFF;
+  text-transform: uppercase;
+  text-decoration: none;
+  text-shadow: 0 -1px 0 rgba(10, 90, 138, 0.7);
 }
 .jewel.button.primary:hover, .jewel.button.primary:hover:focus {
   background: linear-gradient(#3CADF1, #1198e9);
@@ -200,6 +216,9 @@ j|Alert {
   background: #f3f3f3;
   border: 1px solid #d9d9d9;
   box-shadow: none;
+  color: silver;
+  font-weight: normal;
+  text-shadow: unset;
 }
 
 .jewel.checkbox {
@@ -514,91 +533,6 @@ j|Alert {
   border-radius: 3px;
 }
 
-.jewel.textbutton {
-  cursor: pointer;
-  display: inline-block;
-  margin: 0;
-  padding: 10px 16px;
-  min-width: 74px;
-  min-height: 34px;
-  background: linear-gradient(#e6e6e6, #cccccc);
-  border: 1px solid #b3b3b3;
-  box-shadow: inset 0 1px 0 white;
-  border-radius: 3px;
-  font-family: "Lato", sans-serif;
-  font-size: 14px;
-  font-weight: bold;
-  color: #808080;
-  text-transform: uppercase;
-  text-decoration: none;
-}
-.jewel.textbutton:hover, .jewel.textbutton:hover:focus {
-  background: linear-gradient(#d9d9d9, silver);
-  border: 1px solid #a6a6a6;
-}
-.jewel.textbutton:active, .jewel.textbutton:active:focus {
-  background: linear-gradient(silver, #a6a6a6);
-  border: 1px solid #8d8d8d;
-  box-shadow: inset 0px 1px 3px 0px rgba(50, 50, 50, 0.5);
-}
-.jewel.textbutton:focus {
-  outline: none;
-  border: 1px solid #b3b3b3;
-  box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
-}
-.jewel.textbutton[disabled] {
-  cursor: unset;
-  background: #f3f3f3;
-  border: 1px solid #d9d9d9;
-  box-shadow: none;
-  color: silver;
-  font-weight: normal;
-  text-shadow: unset;
-}
-
-.jewel.textbutton.primary {
-  cursor: pointer;
-  display: inline-block;
-  margin: 0;
-  padding: 10px 16px;
-  min-width: 74px;
-  min-height: 34px;
-  background: linear-gradient(#54b7f3, #24a3ef);
-  border: 1px solid #0f88d1;
-  box-shadow: inset 0 1px 0 #9bd5f8;
-  border-radius: 3px;
-  font-family: "Lato", sans-serif;
-  font-size: 14px;
-  font-weight: bold;
-  color: #FFFFFF;
-  text-transform: uppercase;
-  text-decoration: none;
-  text-shadow: 0 -1px 0 rgba(10, 90, 138, 0.7);
-}
-.jewel.textbutton.primary:hover, .jewel.textbutton.primary:hover:focus {
-  background: linear-gradient(#3CADF1, #1198e9);
-  border: 1px solid #0d79ba;
-}
-.jewel.textbutton.primary:active, .jewel.textbutton.primary:active:focus {
-  background: linear-gradient(#1198e9, #0d79ba);
-  border: 1px solid #0a5a8a;
-  box-shadow: inset 0px 1px 3px 0px rgba(50, 50, 50, 0.5);
-}
-.jewel.textbutton.primary:focus {
-  outline: none;
-  border: 1px solid #0f88d1;
-  box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
-}
-.jewel.textbutton.primary[disabled] {
-  cursor: unset;
-  background: #f3f3f3;
-  border: 1px solid #d9d9d9;
-  box-shadow: none;
-  color: silver;
-  font-weight: normal;
-  text-shadow: unset;
-}
-
 .jewel.textinput {
   position: relative;
   display: inline-flex;
@@ -647,39 +581,6 @@ j|Alert {
   cursor: pointer;
   display: inline-block;
   margin: 0;
-  padding: 8px;
-  min-width: 34px;
-  min-height: 34px;
-  background: linear-gradient(#f16c42, #ed4812);
-  border: 1px solid #be390e;
-  box-shadow: inset 0 1px 0 #f6a389;
-  border-radius: 3px;
-}
-.jewel.button.secondary:hover, .jewel.button.secondary:hover:focus {
-  background: linear-gradient(#EF5A2A, #d64010);
-  border: 1px solid #a6320d;
-}
-.jewel.button.secondary:active, .jewel.button.secondary:active:focus {
-  background: linear-gradient(#d64010, #a6320d);
-  border: 1px solid #772409;
-  box-shadow: inset 0px 1px 3px 0px rgba(50, 50, 50, 0.5);
-}
-.jewel.button.secondary:focus {
-  outline: none;
-  border: 1px solid #be390e;
-  box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
-}
-.jewel.button.secondary[disabled] {
-  cursor: unset;
-  background: #f3f3f3;
-  border: 1px solid #d9d9d9;
-  box-shadow: none;
-}
-
-.jewel.textbutton.secondary {
-  cursor: pointer;
-  display: inline-block;
-  margin: 0;
   padding: 10px 16px;
   min-width: 74px;
   min-height: 34px;
@@ -695,21 +596,21 @@ j|Alert {
   text-decoration: none;
   text-shadow: 0 -1px 0 rgba(119, 36, 9, 0.7);
 }
-.jewel.textbutton.secondary:hover, .jewel.textbutton.secondary:hover:focus {
+.jewel.button.secondary:hover, .jewel.button.secondary:hover:focus {
   background: linear-gradient(#EF5A2A, #d64010);
   border: 1px solid #a6320d;
 }
-.jewel.textbutton.secondary:active, .jewel.textbutton.secondary:active:focus {
+.jewel.button.secondary:active, .jewel.button.secondary:active:focus {
   background: linear-gradient(#d64010, #a6320d);
   border: 1px solid #772409;
   box-shadow: inset 0px 1px 3px 0px rgba(50, 50, 50, 0.5);
 }
-.jewel.textbutton.secondary:focus {
+.jewel.button.secondary:focus {
   outline: none;
   border: 1px solid #be390e;
   box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
 }
-.jewel.textbutton.secondary[disabled] {
+.jewel.button.secondary[disabled] {
   cursor: unset;
   background: #f3f3f3;
   border: 1px solid #d9d9d9;
@@ -719,40 +620,7 @@ j|Alert {
   text-shadow: unset;
 }
 
-.jewel.button.emphasized {
-  cursor: pointer;
-  display: inline-block;
-  margin: 0;
-  padding: 8px;
-  min-width: 34px;
-  min-height: 34px;
-  background: linear-gradient(#98cc50, #7eb435);
-  border: 1px solid #638c29;
-  box-shadow: inset 0 1px 0 #bbdd8b;
-  border-radius: 3px;
-}
-.jewel.button.emphasized:hover, .jewel.button.emphasized:hover:focus {
-  background: linear-gradient(#8CC63C, #71a02f);
-  border: 1px solid #557923;
-}
-.jewel.button.emphasized:active, .jewel.button.emphasized:active:focus {
-  background: linear-gradient(#71a02f, #557923);
-  border: 1px solid #395118;
-  box-shadow: inset 0px 1px 3px 0px rgba(50, 50, 50, 0.5);
-}
-.jewel.button.emphasized:focus {
-  outline: none;
-  border: 1px solid #638c29;
-  box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
-}
-.jewel.button.emphasized[disabled] {
-  cursor: unset;
-  background: #f3f3f3;
-  border: 1px solid #d9d9d9;
-  box-shadow: none;
-}
-
-.jewel.textbutton {
+.jewel.button {
   cursor: pointer;
   display: inline-block;
   margin: 0;
@@ -770,21 +638,21 @@ j|Alert {
   text-transform: uppercase;
   text-decoration: none;
 }
-.jewel.textbutton:hover, .jewel.textbutton:hover:focus {
+.jewel.button:hover, .jewel.button:hover:focus {
   background: linear-gradient(#d9d9d9, silver);
   border: 1px solid #a6a6a6;
 }
-.jewel.textbutton:active, .jewel.textbutton:active:focus {
+.jewel.button:active, .jewel.button:active:focus {
   background: linear-gradient(silver, #a6a6a6);
   border: 1px solid #8d8d8d;
   box-shadow: inset 0px 1px 3px 0px rgba(50, 50, 50, 0.5);
 }
-.jewel.textbutton:focus {
+.jewel.button:focus {
   outline: none;
   border: 1px solid #b3b3b3;
   box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
 }
-.jewel.textbutton[disabled] {
+.jewel.button[disabled] {
   cursor: unset;
   background: #f3f3f3;
   border: 1px solid #d9d9d9;
@@ -794,7 +662,7 @@ j|Alert {
   text-shadow: unset;
 }
 
-.jewel.textbutton.emphasized {
+.jewel.button.emphasized {
   cursor: pointer;
   display: inline-block;
   margin: 0;
@@ -813,21 +681,21 @@ j|Alert {
   text-decoration: none;
   text-shadow: 0 -1px 0 rgba(57, 81, 24, 0.7);
 }
-.jewel.textbutton.emphasized:hover, .jewel.textbutton.emphasized:hover:focus {
+.jewel.button.emphasized:hover, .jewel.button.emphasized:hover:focus {
   background: linear-gradient(#8CC63C, #71a02f);
   border: 1px solid #557923;
 }
-.jewel.textbutton.emphasized:active, .jewel.textbutton.emphasized:active:focus {
+.jewel.button.emphasized:active, .jewel.button.emphasized:active:focus {
   background: linear-gradient(#71a02f, #557923);
   border: 1px solid #395118;
   box-shadow: inset 0px 1px 3px 0px rgba(50, 50, 50, 0.5);
 }
-.jewel.textbutton.emphasized:focus {
+.jewel.button.emphasized:focus {
   outline: none;
   border: 1px solid #638c29;
   box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
 }
-.jewel.textbutton.emphasized[disabled] {
+.jewel.button.emphasized[disabled] {
   cursor: unset;
   background: #f3f3f3;
   border: 1px solid #d9d9d9;
diff --git a/frameworks/themes/JewelTheme/src/main/royale/org/apache/royale/jewel/beads/views/LabelViewBead.mxml b/frameworks/themes/JewelTheme/src/main/royale/org/apache/royale/jewel/beads/views/LabelViewBead.mxml
index bd47055..96a86b4 100644
--- a/frameworks/themes/JewelTheme/src/main/royale/org/apache/royale/jewel/beads/views/LabelViewBead.mxml
+++ b/frameworks/themes/JewelTheme/src/main/royale/org/apache/royale/jewel/beads/views/LabelViewBead.mxml
@@ -36,7 +36,7 @@ limitations under the License.
         ]]>
     </fx:Script>
 
-    <j:TextButton text="THEME-LABELVIEWBEAD!!"/>
+    <j:Button text="THEME-LABELVIEWBEAD!!"/>
     
     <!-- <js:beads>
         <js:MXMLBeadViewDataBinding />
diff --git a/frameworks/themes/JewelTheme/src/main/sass/components-emphasized/_button.sass b/frameworks/themes/JewelTheme/src/main/sass/components-emphasized/_button.sass
index 6875321..1076aa0 100644
--- a/frameworks/themes/JewelTheme/src/main/sass/components-emphasized/_button.sass
+++ b/frameworks/themes/JewelTheme/src/main/sass/components-emphasized/_button.sass
@@ -21,16 +21,16 @@
 
 // Button variables
 $button-margin: 0 !default
-$button-padding: 8px !default
+$button-padding: 10px 16px !default
 $button-min-height: 34px !default
-$button-min-width: 34px !default
+$button-min-width: 74px !default
 
 $button-border-radius: 3px
 
-=button-theme($button-color)
+=button-theme($button-color, $text-color)
 	cursor: pointer
 	display: inline-block
-
+	
 	margin: $button-margin //1rem
 	padding: $button-padding //.938em 1.875em
 	
@@ -44,22 +44,42 @@ $button-border-radius: 3px
 			duration: $transition-duration
 			timing-function: $transition-timing
 	
+	font:
+		family: $font-stack 
+		size: $font-size
+		weight: bold
+	color: $text-color
+	text:
+		transform: uppercase
+		decoration: none 
+	@if not $flat and $text-color == $font-theme-color
+		text:
+			shadow: 0 -1px 0 rgba(darken($button-color, 30%), .7) //0 .063em
+	
 	&:hover, &:hover:focus
 		+jewel-bg-border("hover", $button-color)
-	
+
 	&:active, &:active:focus
 		+jewel-bg-border("active", $button-color)
-	
+
 	&:focus
 		outline: none
 		+jewel-bg-border("focus", $button-color)
-
+		
 	&[disabled]
 		cursor: unset
 		+jewel-bg-border("disabled", $button-color)
+		color: $disabled-font-color
+		font:
+			weight: normal
+		text:
+			shadow: unset
+
+.jewel.button
+	+button-theme($default-color, $default-font-color)
 
 .jewel.button.emphasized
-	+button-theme($emphasized-color)
+	+button-theme($emphasized-color, $font-theme-color)
 
 
 //SVGs
diff --git a/frameworks/themes/JewelTheme/src/main/sass/components-emphasized/_textbutton.sass b/frameworks/themes/JewelTheme/src/main/sass/components-emphasized/_textbutton.sass
deleted file mode 100644
index 67c2703..0000000
--- a/frameworks/themes/JewelTheme/src/main/sass/components-emphasized/_textbutton.sass
+++ /dev/null
@@ -1,82 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-// Jewel TextButton
-
-// TextButton variables
-$textbutton-margin: 0 !default
-$textbutton-padding: 10px 16px !default
-$textbutton-min-height: 34px !default
-$textbutton-min-width: 74px !default
-
-$textbutton-border-radius: 3px
-
-=textbutton-theme($textbutton-color, $text-color)
-	cursor: pointer
-	display: inline-block
-	
-	margin: $textbutton-margin //1rem
-	padding: $textbutton-padding //.938em 1.875em
-	
-	min-width: $textbutton-min-width
-	min-height: $textbutton-min-height
-	
-	+jewel-bg-border("normal", $textbutton-color, $textbutton-border-radius)
-	
-	@if $transitions-enable
-		transition:
-			duration: $transition-duration
-			timing-function: $transition-timing
-	
-	font:
-		family: $font-stack 
-		size: $font-size
-		weight: bold
-	color: $text-color
-	text:
-		transform: uppercase
-		decoration: none 
-	@if not $flat and $text-color == $font-theme-color
-		text:
-			shadow: 0 -1px 0 rgba(darken($textbutton-color, 30%), .7) //0 .063em
-	
-	&:hover, &:hover:focus
-		+jewel-bg-border("hover", $textbutton-color)
-
-	&:active, &:active:focus
-		+jewel-bg-border("active", $textbutton-color)
-
-	&:focus
-		outline: none
-		+jewel-bg-border("focus", $textbutton-color)
-		
-	&[disabled]
-		cursor: unset
-		+jewel-bg-border("disabled", $textbutton-color)
-		color: $disabled-font-color
-		font:
-			weight: normal
-		text:
-			shadow: unset
-
-.jewel.textbutton
-	+textbutton-theme($default-color, $default-font-color)
-
-.jewel.textbutton.emphasized
-	+textbutton-theme($emphasized-color, $font-theme-color)
diff --git a/frameworks/themes/JewelTheme/src/main/sass/components-primary/_button.sass b/frameworks/themes/JewelTheme/src/main/sass/components-primary/_button.sass
index 6d0b37d..35317dc 100644
--- a/frameworks/themes/JewelTheme/src/main/sass/components-primary/_button.sass
+++ b/frameworks/themes/JewelTheme/src/main/sass/components-primary/_button.sass
@@ -21,16 +21,16 @@
 
 // Button variables
 $button-margin: 0 !default
-$button-padding: 8px !default
+$button-padding: 10px 16px !default
 $button-min-height: 34px !default
-$button-min-width: 34px !default
+$button-min-width: 74px !default
 
 $button-border-radius: 3px
 
-=button-theme($button-color)
+=button-theme($button-color, $text-color)
 	cursor: pointer
 	display: inline-block
-
+	
 	margin: $button-margin //1rem
 	padding: $button-padding //.938em 1.875em
 	
@@ -44,22 +44,40 @@ $button-border-radius: 3px
 			duration: $transition-duration
 			timing-function: $transition-timing
 	
+	font:
+		family: $font-stack 
+		size: $font-size
+		weight: bold
+	color: $text-color
+	text:
+		transform: uppercase
+		decoration: none 
+	@if not $flat and $text-color == $font-theme-color
+		text:
+			shadow: 0 -1px 0 rgba(darken($button-color, 30%), .7) //0 .063em
+	
 	&:hover, &:hover:focus
 		+jewel-bg-border("hover", $button-color)
-	
+
 	&:active, &:active:focus
 		+jewel-bg-border("active", $button-color)
-	
+
 	&:focus
 		outline: none
 		+jewel-bg-border("focus", $button-color)
-
+		
 	&[disabled]
 		cursor: unset
 		+jewel-bg-border("disabled", $button-color)
+		color: $disabled-font-color
+		font:
+			weight: normal
+		text:
+			shadow: unset
 
 .jewel.button
-	+button-theme($default-color)
+	+button-theme($default-color, $default-font-color)
 
 .jewel.button.primary
-	+button-theme($primary-color)
+	+button-theme($primary-color, $font-theme-color)
+
diff --git a/frameworks/themes/JewelTheme/src/main/sass/components-primary/_textbutton.sass b/frameworks/themes/JewelTheme/src/main/sass/components-primary/_textbutton.sass
deleted file mode 100644
index 7beb855..0000000
--- a/frameworks/themes/JewelTheme/src/main/sass/components-primary/_textbutton.sass
+++ /dev/null
@@ -1,83 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-// Jewel TextButton
-
-// TextButton variables
-$textbutton-margin: 0 !default
-$textbutton-padding: 10px 16px !default
-$textbutton-min-height: 34px !default
-$textbutton-min-width: 74px !default
-
-$textbutton-border-radius: 3px
-
-=textbutton-theme($textbutton-color, $text-color)
-	cursor: pointer
-	display: inline-block
-	
-	margin: $textbutton-margin //1rem
-	padding: $textbutton-padding //.938em 1.875em
-	
-	min-width: $textbutton-min-width
-	min-height: $textbutton-min-height
-	
-	+jewel-bg-border("normal", $textbutton-color, $textbutton-border-radius)
-	
-	@if $transitions-enable
-		transition:
-			duration: $transition-duration
-			timing-function: $transition-timing
-	
-	font:
-		family: $font-stack 
-		size: $font-size
-		weight: bold
-	color: $text-color
-	text:
-		transform: uppercase
-		decoration: none 
-	@if not $flat and $text-color == $font-theme-color
-		text:
-			shadow: 0 -1px 0 rgba(darken($textbutton-color, 30%), .7) //0 .063em
-	
-	&:hover, &:hover:focus
-		+jewel-bg-border("hover", $textbutton-color)
-
-	&:active, &:active:focus
-		+jewel-bg-border("active", $textbutton-color)
-
-	&:focus
-		outline: none
-		+jewel-bg-border("focus", $textbutton-color)
-		
-	&[disabled]
-		cursor: unset
-		+jewel-bg-border("disabled", $textbutton-color)
-		color: $disabled-font-color
-		font:
-			weight: normal
-		text:
-			shadow: unset
-
-.jewel.textbutton
-	+textbutton-theme($default-color, $default-font-color)
-
-.jewel.textbutton.primary
-	+textbutton-theme($primary-color, $font-theme-color)
-
diff --git a/frameworks/themes/JewelTheme/src/main/sass/components-secondary/_button.sass b/frameworks/themes/JewelTheme/src/main/sass/components-secondary/_button.sass
index 674fd65..95ce496 100644
--- a/frameworks/themes/JewelTheme/src/main/sass/components-secondary/_button.sass
+++ b/frameworks/themes/JewelTheme/src/main/sass/components-secondary/_button.sass
@@ -21,16 +21,16 @@
 
 // Button variables
 $button-margin: 0 !default
-$button-padding: 8px !default
+$button-padding: 10px 16px !default
 $button-min-height: 34px !default
-$button-min-width: 34px !default
+$button-min-width: 74px !default
 
 $button-border-radius: 3px
 
-=button-theme($button-color)
+=button-theme($button-color, $text-color)
 	cursor: pointer
 	display: inline-block
-
+	
 	margin: $button-margin //1rem
 	padding: $button-padding //.938em 1.875em
 	
@@ -44,19 +44,36 @@ $button-border-radius: 3px
 			duration: $transition-duration
 			timing-function: $transition-timing
 	
+	font:
+		family: $font-stack 
+		size: $font-size
+		weight: bold
+	color: $text-color
+	text:
+		transform: uppercase
+		decoration: none 
+	@if not $flat and $text-color == $font-theme-color
+		text:
+			shadow: 0 -1px 0 rgba(darken($button-color, 30%), .7) //0 .063em
+	
 	&:hover, &:hover:focus
 		+jewel-bg-border("hover", $button-color)
-	
+
 	&:active, &:active:focus
 		+jewel-bg-border("active", $button-color)
-	
+
 	&:focus
 		outline: none
 		+jewel-bg-border("focus", $button-color)
-
+		
 	&[disabled]
 		cursor: unset
 		+jewel-bg-border("disabled", $button-color)
+		color: $disabled-font-color
+		font:
+			weight: normal
+		text:
+			shadow: unset
 
 .jewel.button.secondary
-	+button-theme($secondary-color)
+	+button-theme($secondary-color, $font-theme-color)
diff --git a/frameworks/themes/JewelTheme/src/main/sass/components-secondary/_textbutton.sass b/frameworks/themes/JewelTheme/src/main/sass/components-secondary/_textbutton.sass
deleted file mode 100644
index 12c1939..0000000
--- a/frameworks/themes/JewelTheme/src/main/sass/components-secondary/_textbutton.sass
+++ /dev/null
@@ -1,79 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-// Jewel TextButton
-
-// TextButton variables
-$textbutton-margin: 0 !default
-$textbutton-padding: 10px 16px !default
-$textbutton-min-height: 34px !default
-$textbutton-min-width: 74px !default
-
-$textbutton-border-radius: 3px
-
-=textbutton-theme($textbutton-color, $text-color)
-	cursor: pointer
-	display: inline-block
-	
-	margin: $textbutton-margin //1rem
-	padding: $textbutton-padding //.938em 1.875em
-	
-	min-width: $textbutton-min-width
-	min-height: $textbutton-min-height
-	
-	+jewel-bg-border("normal", $textbutton-color, $textbutton-border-radius)
-	
-	@if $transitions-enable
-		transition:
-			duration: $transition-duration
-			timing-function: $transition-timing
-	
-	font:
-		family: $font-stack 
-		size: $font-size
-		weight: bold
-	color: $text-color
-	text:
-		transform: uppercase
-		decoration: none 
-	@if not $flat and $text-color == $font-theme-color
-		text:
-			shadow: 0 -1px 0 rgba(darken($textbutton-color, 30%), .7) //0 .063em
-	
-	&:hover, &:hover:focus
-		+jewel-bg-border("hover", $textbutton-color)
-
-	&:active, &:active:focus
-		+jewel-bg-border("active", $textbutton-color)
-
-	&:focus
-		outline: none
-		+jewel-bg-border("focus", $textbutton-color)
-		
-	&[disabled]
-		cursor: unset
-		+jewel-bg-border("disabled", $textbutton-color)
-		color: $disabled-font-color
-		font:
-			weight: normal
-		text:
-			shadow: unset
-
-.jewel.textbutton.secondary
-	+textbutton-theme($secondary-color, $font-theme-color)
diff --git a/frameworks/themes/JewelTheme/src/main/sass/defaults.sass b/frameworks/themes/JewelTheme/src/main/sass/defaults.sass
index 4a8f282..f197bc8 100644
--- a/frameworks/themes/JewelTheme/src/main/sass/defaults.sass
+++ b/frameworks/themes/JewelTheme/src/main/sass/defaults.sass
@@ -36,7 +36,6 @@
 @import "components-primary/list"
 @import "components-primary/radiobutton"
 @import "components-primary/slider"
-@import "components-primary/textbutton"
 @import "components-primary/textinput"
 @import "components-primary/titlebar"
 
@@ -50,7 +49,6 @@
 @import "components-secondary/list"
 @import "components-secondary/radiobutton"
 @import "components-secondary/slider"
-@import "components-secondary/textbutton"
 @import "components-secondary/textinput"
 @import "components-secondary/titlebar"
 
@@ -64,6 +62,5 @@
 @import "components-emphasized/list"
 @import "components-emphasized/radiobutton"
 @import "components-emphasized/slider"
-@import "components-emphasized/textbutton"
 @import "components-emphasized/textinput"
 @import "components-emphasized/titlebar"

-- 
To stop receiving notification emails like this one, please contact
carlosrovira@apache.org.