/* Copyright aswing.org, see the LICENCE.txt. */ package aeon{ import org.aswing.*; import org.aswing.plaf.*; import org.aswing.plaf.basic.BasicLookAndFeel; import org.aswing.plaf.basic.border.EmptyBorderResource; import org.aswing.skinbuilder.*; /** * SkinBuilder LookAndFeel let you change the skin easily * with only Replace the image files(and modify the scale 9 properties * if the new image size is not same). * @author iiley */ public class AeonLAF extends BasicLookAndFeel{ public function AeonLAF(){ super(); } override protected function initClassDefaults(table:UIDefaults):void{ super.initClassDefaults(table); var uiDefaults:Array = [ "ScrollBarUI", SkinScrollBarUI, "ProgressBarUI", SkinProgressBarUI, "ComboBoxUI", SkinComboBoxUI, "SliderUI", SkinSliderUI, "AdjusterUI", SkinAdjusterUI, "TabbedPaneUI", SkinTabbedPaneUI, "SplitPaneUI", SkinSplitPaneUI, "ClosableTabbedPaneUI", SkinClosableTabbedPaneUI, "StepperUI", SkinStepperUI, //"TableUI", org.aswing.plaf.basic.BasicTableUI, //"TableHeaderUI", org.aswing.plaf.basic.BasicTableHeaderUI ]; table.putDefaults(uiDefaults); } override protected function initSystemColorDefaults(table:UIDefaults):void{ super.initSystemColorDefaults(table); var defaultSystemColors:Array = [ //"activeCaption", 0xF2F2F2, /* Color for captions (title bars) when they are active. */ "activeCaptionText", 0xFFFFFF, /* Text color for text in captions (title bars). */ //"activeCaptionBorder", 0xC0C0C0, /* Border color for caption (title bar) window borders. */ //"inactiveCaption", 0xE7E7E7, /* Color for captions (title bars) when not active. */ "inactiveCaptionText", 0xDDDDDD, /* Text color for text in inactive captions (title bars). */ //"inactiveCaptionBorder", 0x888888, /* Border color for inactive caption (title bar) window borders. */ "window", 0xCACDCC, /* Default color for the interior of windows */ //"windowBorder", 0x000000, /* ??? */ "windowText", 0xFFFFFF, /* ??? */ //"menu", 0xCCCCCC, /* Background color for menus */ //"menuText", 0x000000, /* Text color for menus */ //"text", 0xC0C0C0, /* Text background color */ //"textText", 0x000000, /* Text foreground color */ //"textHighlight", 0x000080, /* Text background color when selected */ //"textHighlightText", 0xFFFFFF, /* Text color when selected */ //"textInactiveText", 0x808080, /* Text color when disabled */ //"control", 0xF4F4F4,//0xEFEFEF, /* Default color for controls (buttons, sliders, etc) */ "controlText", 0x002a37, /* Default color for text in controls */ //"controlHighlight", 0xEEEEEE, /* Specular highlight (opposite of the shadow) */ //"controlLtHighlight", 0x666666, /* Highlight color for controls */ //"controlShadow", 0xC7C7C5, /* Shadow color for controls */ //"controlDkShadow", 0x666666, /* Dark shadow color for controls */ //"scrollbar", 0xE0E0E0 /* Scrollbar background (usually the "track") */ ]; for(var i:Number=0; i