/
TitleBarSkin.mxml
60 lines (51 loc) · 1.49 KB
/
TitleBarSkin.mxml
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
<?xml version="1.0" encoding="utf-8"?>
<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
width="100%"
height="100%"
mouseEnabled="false"
xmlns:components="com.comtaste.pantaste.components.*">
<s:states>
<s:State name="normal" />
<s:State name="disabled" />
</s:states>
<fx:Metadata>
[HostComponent("com.comtaste.pantaste.components.DashPanelTitleBar")]
</fx:Metadata>
<fx:Script>
<![CDATA[
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Group width="100%"
height="100%"
alpha="0.0"
mouseEnabled="false"
mouseChildren="false">
<s:Rect width="100%"
height="100%"
topLeftRadiusX="10"
topLeftRadiusY="10"
topRightRadiusX="10"
topRightRadiusY="10">
<s:fill>
<s:LinearGradient rotation="90">
<s:GradientEntry color="0x555555" />
<s:GradientEntry color="0x333333" />
</s:LinearGradient>
</s:fill>
</s:Rect>
</s:Group>
<s:Group width="100%" height="100%" mouseEnabled="false">
<s:Label id="title" top="-10" color="0xFFFFFF" horizontalCenter="0" />
<components:DashPanelControls id="controls"
right="-5"
panel="{hostComponent.panel}"
top="-5"
mouseEnabled="true"
mouseChildren="true" />
</s:Group>
</s:SparkSkin>