Files
matchbox-tests/test-theme/theme.xml
2005-02-08 12:18:05 +00:00

318 lines
8.4 KiB
XML

<?xml version="1.0"?>
<theme name="mbtest" author="Matthew Allum - mallum@handhelds.org"
desc="" version="1.0" engine_version="1" >
<!--
This theme is not pretty, just here to try and break stuff.
-->
<color id="bgcol" def="#819cba" />
<color id="dockcol" def="#e2dec6" />
<color id="black" def="#000000" />
<color id="lightside" def="#ffffff" />
<color id="darkside" def="#9d9a8a" />
<color id="red" def="#ff0000" />
<color id="lowlightcol" def="#aaaaaa99" />
<color id="menuhlcol" def="#9d9a8a" />
<font id="titlefont" def="Sans bold 16px" />
<font id="barfont" def="Bitstream Vera Sans-5:pixelsize=8|verdana-6:pixelsize=8|5x7|fixed" />
<pixmap id="close" filename="close.png" />
<pixmap id="menu" filename="menu.png" />
<pixmap id="hide" filename="hide.png" />
<pixmap id="next" filename="next.png" />
<pixmap id="prev" filename="prev.png" />
<pixmap id="accept" filename="accept.png" />
<pixmap id="que" filename="que.png" />
<pixmap id="titleleft" filename="titleleft.png" />
<pixmap id="titleright" filename="titleright.png" />
<pixmap id="titlestrip" filename="titlestrip.png" />
<pixmap id="dialogtopleft" filename="dialogtopleft.png" />
<pixmap id="dialogtopright" filename="dialogtopright.png" />
<pixmap id="dialogtoptile" filename="dialogtoptile.png" />
<pixmap id="dialogbottomleft" filename="dialogbottomleft.png" />
<pixmap id="dialogbottomright" filename="dialogbottomright.png" />
<pixmap id="dialogbottomtile" filename="dialogbottomtile.png" />
<pixmap id="dialogtopleft_notitle" filename="dialogtopleft2.png" />
<pixmap id="dialogtopright_notitle" filename="dialogtopright2.png" />
<pixmap id="dialogtoptile_notitle" filename="dialogtoptile2.png" />
<frame id="main" height="16">
<layer x="0" y="0" w="100%" h="100%"
type="plain" color="bgcol" />
<layer x="5" y="0" w="100%-10" h="100%"
type="pixmap" pixmap="titlestrip" />
<layer x="0" y="0" w="object" h="object"
type="pixmap" pixmap="titleleft" />
<layer x="-5" y="0" w="object" h="object"
type="pixmap" pixmap="titleright" />
<layer x="0" y="0" w="100%" h="100%"
type="plain" color="bgcol" />
<layer x="50%" y="0" w="20" h="100%"
type="gradient-vert" startcol="red" endcol="black"/>
<layer x="50%+20" y="0" w="20" h="100%"
type="gradient-horiz" startcol="black" endcol="red"/>
<layer x="14" y="1" w="100%-80" h="20"
type="label" color="black" justify="left" font="titlefont" />
<button x="5" y="5" w="6" h="4" action="menu" >
<active pixmap="menu" blend="-80"/>
<inactive pixmap="menu" />
</button>
<button x="labelx" y="0" w="labelw" h="20"
action="menu" options="inputonly" />
<button x="-35" y="0" w="8" h="16" action="next" >
<active pixmap="next" blend="-80"/>
<inactive pixmap="next" />
</button>
<button x="-47" y="0" w="8" h="16" action="prev" >
<active pixmap="prev" blend="-80" />
<inactive pixmap="prev" />
</button>
<button x="-70" y="0" w="8" h="16" action="custom" options="pressonly">
<active pixmap="prev" blend="-80" />
<inactive pixmap="prev" />
</button>
<button x="-13" y="0" w="9" h="16" action="close" >
<active pixmap="close" blend="-80"/>
<inactive pixmap="close" />
</button>
<button x="-25" y="4" w="6" h="16" action="hide" >
<active pixmap="hide" blend="-80" />
<inactive pixmap="hide" />
</button>
<button x="-59" y="0" w="8" h="16" action="accept" >
<active pixmap="accept" blend="-80" />
<inactive pixmap="accept" />
</button>
<button x="-71" y="0" w="8" h="16" action="help" >
<active pixmap="que" blend="-80" />
<inactive pixmap="que" />
</button>
<panel x="60%" y="0" w="20%" h="16" />
</frame>
<frame id="main-east" width="1" />
<frame id="main-west" width="1" />
<frame id="main-south" height="1" />
<frame id="dialog" height="16" options="shaped">
<layer x="5" y="0" w="100%-5" h="100%"
type="pixmap" pixmap="dialogtoptile" />
<layer x="0" y="0" w="object" h="object"
type="pixmap" pixmap="dialogtopleft" />
<layer x="-5" y="0" w="object" h="object"
type="pixmap" pixmap="dialogtopright" />
<layer x="14" y="1" w="100%-60" h="20"
type="label" color="black" justify="left" font="titlefont" />
<!-- only a close, help or accept actioned button is valid -->
<button x="-13" y="0" w="7" h="16" action="close" >
<active pixmap="close" blend="-80"/>
<inactive pixmap="close" />
</button>
<button x="-24" y="0" w="8" h="16" action="accept" >
<active pixmap="accept" blend="-80" />
<inactive pixmap="accept" />
</button>
<button x="-34" y="0" w="8" h="16" action="help" >
<active pixmap="que" blend="-80" />
<inactive pixmap="que" />
</button>
</frame>
<frame id="dialog-north" height="5" options="shaped">
<layer x="5" y="0" w="100%-5" h="100%"
type="pixmap" pixmap="dialogtoptile_notitle" />
<layer x="0" y="0" w="object" h="object"
type="pixmap" pixmap="dialogtopleft_notitle" />
<layer x="-5" y="0" w="object" h="object"
type="pixmap" pixmap="dialogtopright_notitle" />
</frame>
<frame id="dialog-east" width="2" >
<layer x="0" y="0" w="1" h="100%"
type="plain" color="darkside" />
<layer x="1" y="0" w="1" h="100%"
type="plain" color="black" />
</frame>
<frame id="dialog-west" width="2" >
<layer x="0" y="0" w="1" h="100%"
type="plain" color="black" />
<layer x="1" y="0" w="1" h="100%"
type="plain" color="lightside" />
</frame>
<frame id="dialog-south" height="5" >
<layer x="5" y="0" w="100%-5" h="100%"
type="pixmap" pixmap="dialogbottomtile" />
<layer x="0" y="0" w="object" h="object"
type="pixmap" pixmap="dialogbottomleft" />
<layer x="-5" y="0" w="object" h="object"
type="pixmap" pixmap="dialogbottomright" />
</frame>
<frame id="message" height="4" >
<layer x="0" y="0" w="100%" h="100%"
type="plain" color="red" />
</frame>
<frame id="message-east" width="4" >
<layer x="0" y="0" w="100%" h="100%"
type="plain" color="red" />
</frame>
<frame id="message-west" width="4" >
<layer x="0" y="0" w="100%" h="100%"
type="plain" color="red" />
</frame>
<frame id="message-south" height="4">
<layer x="0" y="0" w="100%" h="100%"
type="plain" color="red" />
</frame>
<frame id="utility-max" width="12">
<layer x="0" y="0" w="100%" h="100%"
type="plain" color="lightside" />
<layer x="1" y="1" w="100%-1" h="100%-1"
type="plain" color="darkside" />
<layer x="1" y="1" w="100%-2" h="100%-2"
type="plain" color="dockcol" />
<!-- Buttons, minimise action only valid here -->
<button x="3" y="1" w="12" h="12" action="minimize" >
<active pixmap="next" blend="-80"/>
<inactive pixmap="next" />
</button>
<button x="0" y="0" w="100%" h="100%" action="minimize" options="inputonly"/>
</frame>
<frame id="utility-min" height="13">
<layer x="0" y="0" w="100%" h="100%"
type="plain" color="lightside" />
<layer x="1" y="1" w="100%-1" h="100%-1"
type="plain" color="darkside" />
<layer x="1" y="1" w="100%-2" h="100%-2"
type="plain" color="dockcol" />
<layer x="14" y="0" w="100%-60" h="20"
type="label" color="black" justify="left" font="barfont" />
<!-- close and maximise button actions valid here -->
<button x="0" y="0" w="100%-20" h="100%"
action="maximize" options="inputonly"/>
<button x="-13" y="-14" w="7" h="13" action="close" >
<active pixmap="close" blend="-80"/>
<inactive pixmap="close" />
</button>
</frame>
<frame id="menu"
border_north="0"
border_south="5"
border_east="2"
border_west="2"
font="titlefont"
color="black"
highlight="menuhlcol"
options="shaped">
<layer x="0" y="0" w="100%" h="-5"
type="plain" color="black" />
<layer x="1" y="0" w="100%-2" h="-5"
type="plain" color="dockcol" />
<layer x="0" y="0" w="100%" h="1"
type="plain" color="lightside" />
<layer x="2" y="0" w="1" h="-5"
type="plain" color="lightside" />
<layer x="-2" y="0" w="1" h="-5"
type="plain" color="darkside" />
<layer x="5" y="-5" w="100%-10" h="5"
type="pixmap" pixmap="dialogbottomtile" />
<layer x="0" y="-5" w="object" h="object"
type="pixmap" pixmap="dialogbottomleft" />
<layer x="-5" y="-5" w="object" h="object"
type="pixmap" pixmap="dialogbottomright" />
</frame>
<lowlight color="lowlightcol" />
<shadow style="gaussian" />
<subst char=":" pixmap="que" />
</theme>