📄 _colorpickerstyle.as
字号:
package
{
import flash.display.Sprite;
import mx.core.IFlexModuleFactory;
import mx.core.mx_internal;
import mx.styles.CSSStyleDeclaration;
import mx.styles.StyleManager;
import mx.skins.halo.ColorPickerSkin;
[ExcludeClass]
public class _ColorPickerStyle
{
public static function init(fbs:IFlexModuleFactory):void
{
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ColorPicker");
if (!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("ColorPicker", style, false);
}
if (style.defaultFactory == null)
{
style.defaultFactory = function():void
{
this.swatchHighlightColor = 0xffffff;
this.upSkin = mx.skins.halo.ColorPickerSkin;
this.fontSize = 11;
this.overSkin = mx.skins.halo.ColorPickerSkin;
this.swatchBorderSize = 1;
this.swatchHighlightSize = 1;
this.paddingTop = 4;
this.swatchGridBackgroundColor = 0x000000;
this.horizontalGap = 0;
this.downSkin = mx.skins.halo.ColorPickerSkin;
this.swatchGridBorderSize = 0;
this.columnCount = 20;
this.borderColor = 0xa5a9ae;
this.paddingLeft = 5;
this.verticalGap = 0;
this.shadowColor = 0x4d555e;
this.paddingBottom = 5;
this.swatchHeight = 12;
this.highlightColor = 0xffffff;
this.textFieldWidth = 72;
this.paddingRight = 5;
this.swatchWidth = 12;
this.disabledSkin = mx.skins.halo.ColorPickerSkin;
this.backgroundColor = 0xe5e6e7;
this.previewHeight = 22;
this.previewWidth = 45;
this.swatchBorderColor = 0x000000;
};
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -