src/login/login.xml
author Matthias Mann
Sat Feb 11 13:27:12 2012 +0100 (11 days ago)
changeset 262 f896aec65113
parent 222 1a55988d61a5
permissions -rw-r--r--
allow mouse input for scrolling, don't update text area model when nothing has changed
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!DOCTYPE themes PUBLIC "-//www.matthiasmann.de//TWL-Theme//EN" "http://hg.l33tlabs.org/twl/raw-file/tip/src/de/matthiasmann/twl/theme/theme.dtd">
     3 <themes>
     4 
     5     <images file="../chat/chat.png" format="RGBA" filter="linear">
     6         <area name="tooltip.background" border="3" xywh="1,24,7,7" splitx="L3,R3" splity="T3,B3"/>
     7         <area name="evilframe.background" border="27,10,10,10" xywh="40,1,20,29" splitx="L5,R5" splity="T19,B5"/>
     8         
     9         <area name="-innerframe.background" splitx="2,3" splity="2,3" xywh="17,1,5,5"/>
    10         <select name="innerframe.background" border="2">
    11             <alias ref="-innerframe.background" if="disabled" tint="#888"/>
    12             <alias ref="-innerframe.background"/>
    13         </select>
    14         
    15         <area name="-editfield.cursor" xywh="1,1,1,1"/>
    16         <animation name="editfield.cursor" timeSource="keyboardFocus">
    17             <frame ref="-editfield.cursor" duration="500"/>
    18             <frame ref="none" duration="500"/>
    19         </animation>
    20         <area name="editfield.selection" tint="#E000FEFF" xywh="1,1,1,1"/>
    21     </images>
    22 
    23     <images file="../test/chaos_sphere_blue_800x600.png" format="RGB" filter="linear">
    24         <area name="background-image" xywh="0,0,800,600"/>
    25     </images>
    26 
    27     <include filename="../test/cursors.xml"/>
    28 
    29     <fontDef name="normal" filename="../test/font.fnt" color="white">
    30         <fontParam if="error" color="red"/>
    31         <fontParam if="disabled" color="gray"/>
    32         <fontParam if="textSelection" color="blue"/>
    33     </fontDef>
    34     <fontDef name="black" filename="../test/font.fnt" color="black"/>
    35 
    36     <fontDef name="button" filename="../test/font.fnt" color="white">
    37         <fontParam if="disabled" color="gray"/>
    38         <fontParam if="pressed" offsetX="1" offsetY="1"/>
    39     </fontDef>
    40     
    41     <inputMapDef name="-defaultInputMap">
    42         <action name="selectAll">ctrl A</action>
    43         <action name="cut">ctrl X</action>
    44         <action name="copy">ctrl C</action>
    45         <action name="paste">ctrl V</action>
    46     </inputMapDef>
    47 
    48     <theme name="-defaults">
    49         <param name="background"><image>none</image></param>
    50         <param name="overlay"><image>none</image></param>
    51         <param name="font"><font>normal</font></param>
    52         <param name="textAlignment"><enum type="alignment">left</enum></param>
    53         <param name="minWidth"><int>0</int></param>
    54         <param name="minHeight"><int>0</int></param>
    55         <param name="maxWidth"><int>0</int></param>
    56         <param name="maxHeight"><int>0</int></param>
    57         <param name="inputMap"><inputMap>-defaultInputMap</inputMap></param>
    58         <!-- a wildcard in the base theme allows to make a flat theme -->
    59         <theme name="" ref="*"/>
    60     </theme>
    61 
    62     <theme name="fpscounter" ref="-defaults" allowWildcard="true">
    63         <param name="tooltip"><string>Current FPS</string></param>
    64     </theme>
    65 
    66     <theme name="label" ref="-defaults" allowWildcard="true"/>
    67     
    68     <theme name="button" ref="-defaults" allowWildcard="true">
    69         <param name="background"><image>innerframe.background</image></param>
    70         <param name="border"><border>background.border</border></param>
    71         <param name="font"><font>button</font></param>
    72     </theme>
    73     
    74     <theme name="tooltipwindow" ref="-defaults">
    75         <param name="background"><image>tooltip.background</image></param>
    76         <param name="border"><border>5</border></param>
    77         <param name="fadeInTime"><int>0</int></param>
    78         <theme name="label" ref="-defaults">
    79             <param name="font"><font>black</font></param>
    80         </theme>
    81     </theme>
    82 
    83     <theme name="editfield" ref="-defaults" allowWildcard="true">
    84         <param name=""><image>editfield.*</image></param>
    85         <param name="background"><image>innerframe.background</image></param>
    86         <param name="border"><border>background.border</border></param>
    87         <param name="passwordChar"><int>0x25CF</int></param>
    88         <param name="maxWidth"><int>32767</int></param>
    89         <param name="columns"><int>20</int></param>
    90         <param name="mouseCursor"><cursor>cursor.text</cursor></param>
    91         <theme name="renderer" ref="-defaults"/>
    92         <param name="autocompletion-height"><int>150</int></param>
    93     </theme>
    94 
    95     <theme name="logindemo" ref="-defaults">
    96         <param name="background"><image>background-image</image></param>
    97     </theme>
    98 
    99     <theme name="login-panel" ref="-defaults" allowWildcard="true">
   100                     <param name="background"><image>evilframe.background</image></param>
   101                     <param name="border"><border>background.border</border></param>
   102         <param name="defaultGap"><dimension>5,5</dimension></param>
   103         <param name="smallGap"><dimension>8,8</dimension></param>
   104         <param name="mediumGap"><dimension>10,10</dimension></param>
   105         <param name="largeGap"><dimension>15,15</dimension></param>
   106         <param name="namedGaps"><map/></param>
   107     </theme>
   108 </themes>