Menu

[r36]: / osmb / trunk / framework / MediaFrameworkAirTest / generated / _WindowStyle.as  Maximize  Restore  History

Download this file

68 lines (59 with data), 2.5 kB

 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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.WindowBackground;
import mx.skins.halo.WindowRestoreButtonSkin;
import mx.skins.halo.StatusBarBackgroundSkin;
import mx.skins.halo.WindowCloseButtonSkin;
import mx.skins.halo.ApplicationTitleBarBackgroundSkin;
import mx.skins.halo.WindowMinimizeButtonSkin;
import mx.skins.halo.WindowMaximizeButtonSkin;
[ExcludeClass]
public class _WindowStyle
{
public static function init(fbs:IFlexModuleFactory):void
{
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Window");
if (!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("Window", style, false);
}
if (style.defaultFactory == null)
{
style.defaultFactory = function():void
{
this.statusTextStyleName = "statusTextStyle";
this.minimizeButtonSkin = mx.skins.halo.WindowMinimizeButtonSkin;
this.gripperPadding = 3;
this.borderStyle = "solid";
this.restoreButtonSkin = mx.skins.halo.WindowRestoreButtonSkin;
this.closeButtonSkin = mx.skins.halo.WindowCloseButtonSkin;
this.highlightAlphas = [1.0, 1.0];
this.cornerRadius = 8;
this.titleBarBackgroundSkin = mx.skins.halo.ApplicationTitleBarBackgroundSkin;
this.backgroundImage = mx.skins.halo.WindowBackground;
this.borderThickness = 1;
this.buttonPadding = 2;
this.statusBarBackgroundColor = 0xcccccc;
this.titleBarButtonPadding = 5;
this.buttonAlignment = "auto";
this.titleTextStyleName = "titleTextStyle";
this.borderColor = 0xa6a6a6;
this.roundedBottomCorners = false;
this.titleAlignment = "auto";
this.showFlexChrome = true;
this.titleBarColors = [0xffffff, 0xbababa];
this.gripperStyleName = "gripperSkin";
this.maximizeButtonSkin = mx.skins.halo.WindowMaximizeButtonSkin;
this.backgroundColor = 0xc0c0c0;
this.statusBarBackgroundSkin = mx.skins.halo.StatusBarBackgroundSkin;
};
}
}
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.