<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE themes PUBLIC "-//www.matthiasmann.de//TWL-Theme//EN" "http://hg.l33tlabs.org/twl/raw-file/tip/src/de/matthiasmann/twl/theme/theme.dtd">
<themes>

    <images file="../chat/chat.png" format="RGBA" filter="linear">
        <area name="tooltip.background" border="3" xywh="1,24,7,7" splitx="L3,R3" splity="T3,B3"/>
        <area name="evilframe.background" border="27,10,10,10" xywh="40,1,20,29" splitx="L5,R5" splity="T19,B5"/>
        
        <area name="-innerframe.background" splitx="2,3" splity="2,3" xywh="17,1,5,5"/>
        <select name="innerframe.background" border="2">
            <alias ref="-innerframe.background" if="disabled" tint="#888"/>
            <alias ref="-innerframe.background"/>
        </select>
        
        <area name="-editfield.cursor" xywh="1,1,1,1"/>
        <animation name="editfield.cursor" timeSource="keyboardFocus">
            <frame ref="-editfield.cursor" duration="500"/>
            <frame ref="none" duration="500"/>
        </animation>
        <area name="editfield.selection" tint="#E000FEFF" xywh="1,1,1,1"/>
    </images>

    <images file="../test/chaos_sphere_blue_800x600.png" format="RGB" filter="linear">
        <area name="background-image" xywh="0,0,800,600"/>
    </images>

    <include filename="../test/cursors.xml"/>

    <fontDef name="normal" filename="../test/font.fnt" color="white">
        <fontParam if="error" color="red"/>
        <fontParam if="disabled" color="gray"/>
        <fontParam if="textSelection" color="blue"/>
    </fontDef>
    <fontDef name="black" filename="../test/font.fnt" color="black"/>

    <fontDef name="button" filename="../test/font.fnt" color="white">
        <fontParam if="disabled" color="gray"/>
        <fontParam if="pressed" offsetX="1" offsetY="1"/>
    </fontDef>
    
    <inputMapDef name="-defaultInputMap">
        <action name="selectAll">ctrl A</action>
        <action name="cut">ctrl X</action>
        <action name="copy">ctrl C</action>
        <action name="paste">ctrl V</action>
    </inputMapDef>

    <theme name="-defaults">
        <param name="background"><image>none</image></param>
        <param name="overlay"><image>none</image></param>
        <param name="font"><font>normal</font></param>
        <param name="textAlignment"><enum type="alignment">left</enum></param>
        <param name="minWidth"><int>0</int></param>
        <param name="minHeight"><int>0</int></param>
        <param name="maxWidth"><int>0</int></param>
        <param name="maxHeight"><int>0</int></param>
        <param name="inputMap"><inputMap>-defaultInputMap</inputMap></param>
        <!-- a wildcard in the base theme allows to make a flat theme -->
        <theme name="" ref="*"/>
    </theme>

    <theme name="fpscounter" ref="-defaults" allowWildcard="true">
        <param name="tooltip"><string>Current FPS</string></param>
    </theme>

    <theme name="label" ref="-defaults" allowWildcard="true"/>
    
    <theme name="button" ref="-defaults" allowWildcard="true">
        <param name="background"><image>innerframe.background</image></param>
        <param name="border"><border>background.border</border></param>
        <param name="font"><font>button</font></param>
    </theme>
    
    <theme name="tooltipwindow" ref="-defaults">
        <param name="background"><image>tooltip.background</image></param>
        <param name="border"><border>5</border></param>
        <param name="fadeInTime"><int>0</int></param>
        <theme name="label" ref="-defaults">
            <param name="font"><font>black</font></param>
        </theme>
    </theme>

    <theme name="editfield" ref="-defaults" allowWildcard="true">
        <param name=""><image>editfield.*</image></param>
        <param name="background"><image>innerframe.background</image></param>
        <param name="border"><border>background.border</border></param>
        <param name="passwordChar"><int>0x25CF</int></param>
        <param name="maxWidth"><int>32767</int></param>
        <param name="columns"><int>20</int></param>
        <param name="mouseCursor"><cursor>cursor.text</cursor></param>
        <theme name="renderer" ref="-defaults"/>
        <param name="autocompletion-height"><int>150</int></param>
    </theme>

    <theme name="logindemo" ref="-defaults">
        <param name="background"><image>background-image</image></param>
    </theme>

    <theme name="login-panel" ref="-defaults" allowWildcard="true">
                    <param name="background"><image>evilframe.background</image></param>
                    <param name="border"><border>background.border</border></param>
        <param name="defaultGap"><dimension>5,5</dimension></param>
        <param name="smallGap"><dimension>8,8</dimension></param>
        <param name="mediumGap"><dimension>10,10</dimension></param>
        <param name="largeGap"><dimension>15,15</dimension></param>
        <param name="namedGaps"><map/></param>
    </theme>
</themes>

