src/textarea/demo.xml
author Matthias Mann
Fri, 03 Jan 2014 00:59:11 +0100
changeset 288 5f071bee5a2f
parent 256 e7774a164837
permissions -rw-r--r--
added new Permissions manifest attribute
     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         <grid name="frame.background" weightsX="0,1,0" weightsY="0,1,0" border="20,4,4,4" tint="#DFFF">
     8             <area xywh="1,1,2,17"/>
     9             <area xywh="4,1,1,17"/>
    10             <area xywh="13,1,2,17"/>
    11             <area xywh="1,19,2,1"/>
    12             <area xywh="4,19,1,1"/>
    13             <area xywh="13,19,2,1"/>
    14             <area xywh="1,21,2,2"/>
    15             <area xywh="4,21,1,2"/>
    16             <area xywh="13,21,2,2"/>
    17         </grid>
    18         <select name="vscrollbar.upbutton.background" center="true">
    19             <area tint="#FF0000" if="pressed" xywh="16,7,7,4"/>
    20             <area tint="#5A5A5A" if="hover" xywh="16,7,7,4"/>
    21             <area tint="#000000" xywh="16,7,7,4"/>
    22         </select>
    23         <select name="vscrollbar.downbutton.background" center="true">
    24             <area tint="#FF0000" if="pressed" xywh="16,12,7,4"/>
    25             <area tint="#5A5A5A" if="hover" xywh="16,12,7,4"/>
    26             <area tint="#000000" xywh="16,12,7,4"/>
    27         </select>
    28         <select name="vscrollbar.thumb.background">
    29             <area splity="4,5" tint="#FF0000" if="pressed" xywh="16,17,7,10"/>
    30             <area splity="4,5" tint="#5A5A5A" if="hover" xywh="16,17,7,10"/>
    31             <area splity="4,5" tint="#000000" xywh="16,17,7,10"/>
    32         </select>
    33         <area name="smiley" center="true" xywh="24,1,14,14"/>
    34         <area name="innerframe.background" xywh="17,1,5,5" splitx="2,3" splity="2,3" border="2"/>
    35 
    36         <area name="-editfield.cursor" xywh="1,1,1,1"/>
    37         <animation name="editfield.cursor" timeSource="keyboardFocus">
    38             <frame ref="-editfield.cursor" duration="500"/>
    39             <frame ref="none" duration="500"/>
    40         </animation>
    41         <area name="editfield.selection" tint="#E000FEFF" xywh="1,1,1,1"/>
    42         <area name="evilframe.background" border="19,5,5,5" xywh="40,1,20,29" splitx="L5,R5" splity="T19,B5"/>
    43 
    44         <composed name="valueadjuster.background" border="2">
    45             <area tint="#cccc" xywh="1,1,1,1"/>
    46             <alias ref="innerframe.background"/>
    47         </composed>
    48     </images>
    49 
    50     <images file="../test/chaos_sphere_blue_800x600.png" filter="linear">
    51         <area name="background-image" xywh="*"/>
    52     </images>
    53 
    54     <images file="../test/simple.png" format="RGBA">
    55         <area name="textarea.ul-bullet" center="true" sizeOverwriteH="20" inset="3,0,-3,0" xywh="80,0,9,9"/>
    56     </images>
    57 
    58     <images file="image.png">
    59         <area name="image.png" xywh="*"/>
    60     </images>
    61     
    62     <include filename="../test/cursors.xml"/>
    63 
    64     <fontDef name="normal" filename="../test/font.fnt">
    65         <fontParam if="error" color="red"/>
    66         <fontParam if="disabled" color="gray"/>
    67         <fontParam if="textSelection" color="blue"/>
    68     </fontDef>
    69     <fontDef name="black" filename="../test/font.fnt" color="black"/>
    70     
    71     <inputMapDef name="-defaultInputMap">
    72         <action name="selectAll">ctrl A</action>
    73         <action name="cut">ctrl X</action>
    74         <action name="copy">ctrl C</action>
    75         <action name="paste">ctrl V</action>
    76     </inputMapDef>
    77 
    78     <theme name="-defaults">
    79         <param name="background"><image>none</image></param>
    80         <param name="overlay"><image>none</image></param>
    81         <param name="font"><font>normal</font></param>
    82         <param name="textAlignment"><enum type="alignment">left</enum></param>
    83         <param name="minWidth"><int>0</int></param>
    84         <param name="minHeight"><int>0</int></param>
    85         <param name="maxWidth"><int>0</int></param>
    86         <param name="maxHeight"><int>0</int></param>
    87         <param name="inputMap"><inputMap>-defaultInputMap</inputMap></param>
    88     </theme>
    89 
    90     <theme name="tooltipwindow" ref="-defaults">
    91         <param name="background"><image>tooltip.background</image></param>
    92         <param name="border"><border>5</border></param>
    93         <param name="fadeInTime"><int>0</int></param>
    94         <theme name="label" ref="-defaults">
    95             <param name="font"><font>black</font></param>
    96         </theme>
    97     </theme>
    98 
    99     <theme name="resizableframe" ref="-defaults" allowWildcard="true">
   100         <param name="background"><image>frame.background</image></param>
   101         <param name="border"><border>background.border</border></param>
   102         <param name="titleAreaTop"><int>1</int></param>
   103         <param name="titleAreaLeft"><int>8</int></param>
   104         <param name="titleAreaRight"><int>-8</int></param>
   105         <param name="titleAreaBottom"><int>15</int></param>
   106         <param name="hasCloseButton"><bool>false</bool></param>
   107         <param name="closeButtonX"><int>0</int></param>
   108         <param name="closeButtonY"><int>0</int></param>
   109         <param name="hasResizeHandle"><bool>false</bool></param>
   110         <param name="resizeHandleX"><int>0</int></param>
   111         <param name="resizeHandleY"><int>0</int></param>
   112         <param name="fadeColorInactive"><color>white</color></param>
   113         <param name="fadeDurationActivate"><int>0</int></param>
   114         <param name="fadeDurationDeactivate"><int>0</int></param>
   115         <param name="fadeDurationShow"><int>0</int></param>
   116         <param name="fadeDurationHide"><int>0</int></param>
   117         <param name="mouseCursor"><cursor>arrow.*</cursor></param>
   118         <theme name="title" ref="-defaults">
   119             <param name="textAlignment"><enum type="alignment">left</enum></param>
   120             <param name="font"><font>black</font></param>
   121         </theme>
   122         <theme name="closeButton" ref="-defaults"/>
   123         <theme name="resizeHandle" ref="-defaults"/>
   124     </theme>
   125 
   126     <theme name="vscrollbar" ref="-defaults" allowWildcard="true">
   127         <theme name="upbutton" ref="-defaults">
   128             <param name=""><image>vscrollbar.upbutton.*</image></param>
   129             <param name="minHeight"><int>9</int></param>
   130         </theme>
   131         <theme name="downbutton" ref="-defaults">
   132             <param name=""><image>vscrollbar.downbutton.*</image></param>
   133             <param name="minHeight"><int>9</int></param>
   134         </theme>
   135         <theme name="thumb" ref="-defaults">
   136             <param name=""><image>vscrollbar.thumb.*</image></param>
   137         </theme>
   138         <param name="scaleThumb"><bool>true</bool></param>
   139         <param name="minWidth"><int>9</int></param>
   140         <param name="minHeight"><int>48</int></param>
   141     </theme>
   142 
   143     <theme name="hscrollbar" ref="-defaults" allowWildcard="true">
   144         <!-- dummy -->
   145         <theme name="leftbutton" ref="-defaults"/>
   146         <theme name="rightbutton" ref="-defaults"/>
   147         <theme name="thumb" ref="-defaults"/>
   148         <param name="scaleThumb"><bool>false</bool></param>
   149     </theme>
   150 
   151     <theme name="scrollpane" ref="-defaults" allowWildcard="true">
   152         <theme name="hscrollbar" ref="hscrollbar"/>  <!-- not used -->
   153         <theme name="vscrollbar" ref="vscrollbar"/>
   154         <param name="minWidth"><int>100</int></param>
   155         <param name="minHeight"><int>100</int></param>
   156         <param name="maxWidth"><int>32767</int></param>
   157         <param name="maxHeight"><int>32767</int></param>
   158         <param name="hasDragButton"><bool>false</bool></param>
   159         <param name="autoScrollArea"><int>5</int></param>
   160         <param name="autoScrollSpeed"><int>10</int></param>
   161         <param name="scrollbarsAlwaysVisible"><bool>false</bool></param>
   162     </theme>
   163 
   164     <theme name="editfield" ref="-defaults" allowWildcard="true">
   165         <param name=""><image>editfield.*</image></param>
   166         <param name="border"><border>background.border</border></param>
   167         <param name="mouseCursor"><cursor>cursor.text</cursor></param>
   168         <param name="passwordChar"><int>0x25CF</int></param>
   169         <param name="maxWidth"><int>32767</int></param>
   170         <param name="columns"><int>5</int></param>
   171         <theme name="renderer" ref="-defaults"/>
   172         <param name="autocompletion-height"><int>150</int></param>
   173     </theme>
   174 
   175     <theme name="valueadjuster" ref="-defaults" allowWildcard="true">
   176         <param name="background"><image>none</image></param>
   177         <theme name="decButton" ref="-defaults">
   178             <param name="background"><image>valueadjuster.background</image></param>
   179             <param name="border"><border>background.border</border></param>
   180             <param name="text"><string>-</string></param>
   181             <param name="border"><border>0</border></param>
   182             <param name="minWidth"><int>16</int></param>
   183             <param name="textAlignment"><enum type="alignment">center</enum></param>
   184             <param name="font"><font>black</font></param>
   185         </theme>
   186         <theme name="incButton" ref="-defaults">
   187             <param name="background"><image>valueadjuster.background</image></param>
   188             <param name="border"><border>background.border</border></param>
   189             <param name="text"><string>+</string></param>
   190             <param name="border"><border>0</border></param>
   191             <param name="minWidth"><int>16</int></param>
   192             <param name="textAlignment"><enum type="alignment">center</enum></param>
   193             <param name="font"><font>black</font></param>
   194         </theme>
   195         <theme name="valueDisplay" ref="-defaults">
   196             <param name="background"><image>valueadjuster.background</image></param>
   197             <param name="border"><border>background.border</border></param>
   198             <param name="textAlignment"><enum type="alignment">center</enum></param>
   199             <param name="font"><font>black</font></param>
   200         </theme>
   201         <theme name="valueEdit" ref="editfield">
   202             <param name="background"><image>valueadjuster.background</image></param>
   203             <param name="border"><border>background.border</border></param>
   204         </theme>
   205         <param name="width"><int>100</int></param>
   206         <param name="useMouseWheel"><bool>false</bool></param>
   207         <param name="displayPrefix"><string/></param>
   208     </theme>
   209 
   210     <theme name="textareademo" ref="-defaults">
   211         <param name="background"><image>background-image</image></param>
   212 
   213         <theme name="fpscounter" ref="-defaults">
   214             <param name="tooltip"><string>Current FPS</string></param>
   215         </theme>
   216 
   217         <theme name="textframe" ref="resizableframe">
   218             <theme name="scrollpane" ref="scrollpane">
   219                 <param name="background"><image>innerframe.background</image></param>
   220                 <param name="border"><border>background.border</border></param>
   221 
   222                 <theme name="textarea" ref="-defaults">
   223                     <param name="fonts"><map>
   224                         <param name="default"><fontDef filename="../test/font.fnt"/></param>
   225                         <param name="link"><fontDef filename="../test/font.fnt" underlineOffset="1">
   226                             <fontParam if="hover" underline="true"/>
   227                         </fontDef></param>
   228                         <param name="big"><fontDef filename="bigfont.fnt"/></param>
   229                         <param name="code"><fontDef filename="code.fnt"/></param>
   230                         <param name="codeBold"><fontDef filename="codeBold.fnt"/></param>
   231                     </map></param>
   232                     <param name="images"><map>
   233                         <param name="frame"><image>evilframe.background</image></param>
   234                         <param name="smiley"><image>smiley</image></param>
   235                         <param name="ul-bullet"><image>textarea.ul-bullet</image></param>
   236                         <param name="image.png"><image>image.png</image></param>
   237                     </map></param>
   238                     <param name="mouseCursor.link"><cursor>cursor.finger</cursor></param>
   239                     <theme name="" ref="*"/>
   240                 </theme>
   241             </theme>
   242         </theme>
   243     </theme>
   244 </themes>