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

pushminakazi 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 467e0f6  Update CheckBox.as added disabledIconColor Style
467e0f6 is described below

commit 467e0f6094c43fbe9acd7b4cbbb6ce70ed57c4da
Author: pashminakazi <[email protected]>
AuthorDate: Fri Mar 12 19:16:30 2021 +0500

    Update CheckBox.as added disabledIconColor Style
---
 .../src/main/royale/mx/controls/CheckBox.as        | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/CheckBox.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/CheckBox.as
index d8bbe08..1bd665d 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/CheckBox.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/CheckBox.as
@@ -111,6 +111,9 @@ use namespace mx_internal;
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
+ 
+[Style(name="disabledIconColor", type="uint", format="Color", inherit="yes", 
theme="halo,mx")]
+
 COMPILE::SWF
 public class CheckBox extends Button implements IStrand, ISelectable
 {
@@ -178,6 +181,20 @@ public class CheckBox extends Button implements IStrand, 
ISelectable
                selected = !selected;
                dispatchEvent(new Event("change"));
        }
+       
+       //----------------------------------
+       //  disabledIconColor
+       //----------------------------------
+       private var _disabledIconColor:uint = 0x999999;
+
+       public function get disabledIconColor():uint
+       {
+         return _disabledIconColor;
+       }
+       public function set disabledIconColor(value:uint):void
+       {
+               _disabledIconColor = value;
+       }
 }
 
 COMPILE::JS
@@ -227,6 +244,20 @@ public class CheckBox extends Button implements IStrand, 
ISelectable
        {
           (_icon.element as HTMLInputElement).checked = value;
        }
+       
+       //----------------------------------
+       //  disabledIconColor
+       //----------------------------------
+       private var _disabledIconColor:uint = 0x999999;
+
+       public function get disabledIconColor():uint
+       {
+         return _disabledIconColor;
+       }
+       public function set disabledIconColor(value:uint):void
+       {
+               _disabledIconColor = value;
+       }
 }
 
 }

Reply via email to