Skip to content

Instantly share code, notes, and snippets.

@scottdavis
Created January 6, 2010 17:34
Show Gist options
  • Save scottdavis/270443 to your computer and use it in GitHub Desktop.
Save scottdavis/270443 to your computer and use it in GitHub Desktop.
?xml version="1.0" encoding="utf-8"?>
<GraphicBorderSkin xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="http://www.degrafa.com/2007">
<!-- use skinWidth and skinHeight for setting component dimensions -->
<fills>
<SolidFill color="#6C6844" id='upFill' />
<SolidFill color="#000000" id="topStroke"/>
<SolidFill color="#CCC6A7" id="selectedFill" />
<SolidFill color="#959595" id="arrowFill"/>
<SolidFill color="#A9A47E" id="overFill" />
</fills>
<geometry>
<GeometryComposition>
<RoundedRectangleComplex id="border"
y="0"
width="{skinWidth}"
height="{skinHeight}"
topLeftRadius="5"
topRightRadius="5"
bottomLeftRadius="0"
bottomRightRadius="0"
fill="{topStroke}"
/>
<RoundedRectangleComplex id="buttonRect" y="1" x="1"
width="{skinWidth - 2}"
height="{skinHeight - 1}"
topLeftRadius="5"
topRightRadius="5"
bottomLeftRadius="0"
bottomRightRadius="0"
fill="{upFill}"
/>
</GeometryComposition>
</geometry>
<states>
<State name="overSkin">
<SetProperty target="{buttonRect}" name="fill" value="{overFill}"/>
</State>
<State name="selectedOverSkin" basedOn="selectedUpSkin" >
</State>
<State name="selectedUpSkin">
<SetProperty target="{buttonRect}" name="fill" value="{selectedFill}"/>
<SetProperty target="{buttonRect}" name="height" value="{skinHeight + 1}" />
</State>
<State name="downSkin">
<SetProperty target="{buttonRect}" name="fill" value="{overFill}"/>
</State>
<State name="disabledSkin">
<SetProperty target="{buttonRect}" name="fill" value="{overFill}"/>
</State>
</states>
</GraphicBorderSkin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment