-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_ComboBoxStyle.as
43 lines (39 loc) · 1.18 KB
/
_ComboBoxStyle.as
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package
{
import mx.core.IFlexModuleFactory;
import mx.skins.halo.ComboBoxArrowSkin;
import mx.styles.CSSStyleDeclaration;
import mx.styles.StyleManager;
public class _ComboBoxStyle
{
public function _ComboBoxStyle()
{
super();
}
public static function init(param1:IFlexModuleFactory) : void
{
var fbs:IFlexModuleFactory = param1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ComboBox");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("ComboBox",style,false);
}
if(style.defaultFactory == null)
{
style.defaultFactory = function():void
{
this.fontWeight = "bold";
this.disabledIconColor = 9542041;
this.dropdownStyleName = "comboDropdown";
this.leading = 0;
this.arrowButtonWidth = 22;
this.cornerRadius = 5;
this.skin = ComboBoxArrowSkin;
this.paddingLeft = 5;
this.paddingRight = 5;
};
}
}
}
}