src/textarea/demo.xml
author Matthias Mann
Mon Dec 27 19:48:47 2010 +0100 (16 months ago)
changeset 222 1a55988d61a5
parent 215 32e3d0371419
child 256 e7774a164837
permissions -rw-r--r--
added "scrollbarsAlwaysVisible" parameter for scroll panes
     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" color="white">
    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     <fontDef name="link" filename="../test/font.fnt" color="blue" underlineOffset="1">
    71         <fontParam if="hover" color="blue" underline="true"/>
    72     </fontDef>
    73     <fontDef name="big" filename="bigfont.fnt" color="black"/>
    74     <fontDef name="framebig" filename="bigfont.fnt" color="white"/>
    75 
    76     <inputMapDef name="-defaultInputMap">
    77         <action name="selectAll">ctrl A</action>
    78         <action name="cut">ctrl X</action>
    79         <action name="copy">ctrl C</action>
    80         <action name="paste">ctrl V</action>
    81     </inputMapDef>
    82 
    83     <theme name="-defaults">
    84         <param name="background"><image>none</image></param>
    85         <param name="overlay"><image>none</image></param>
    86         <param name="font"><font>normal</font></param>
    87         <param name="textAlignment"><enum type="alignment">left</enum></param>
    88         <param name="minWidth"><int>0</int></param>
    89         <param name="minHeight"><int>0</int></param>
    90         <param name="maxWidth"><int>0</int></param>
    91         <param name="maxHeight"><int>0</int></param>
    92         <param name="inputMap"><inputMap>-defaultInputMap</inputMap></param>
    93     </theme>
    94 
    95     <theme name="tooltipwindow" ref="-defaults">
    96         <param name="background"><image>tooltip.background</image></param>
    97         <param name="border"><border>5</border></param>
    98         <param name="fadeInTime"><int>0</int></param>
    99         <theme name="label" ref="-defaults">
   100             <param name="font"><font>black</font></param>
   101         </theme>
   102     </theme>
   103 
   104     <theme name="resizableframe" ref="-defaults" allowWildcard="true">
   105         <param name="background"><image>frame.background</image></param>
   106         <param name="border"><border>background.border</border></param>
   107         <param name="titleAreaTop"><int>1</int></param>
   108         <param name="titleAreaLeft"><int>8</int></param>
   109         <param name="titleAreaRight"><int>-8</int></param>
   110         <param name="titleAreaBottom"><int>15</int></param>
   111         <param name="hasCloseButton"><bool>false</bool></param>
   112         <param name="closeButtonX"><int>0</int></param>
   113         <param name="closeButtonY"><int>0</int></param>
   114         <param name="hasResizeHandle"><bool>false</bool></param>
   115         <param name="resizeHandleX"><int>0</int></param>
   116         <param name="resizeHandleY"><int>0</int></param>
   117         <param name="fadeColorInactive"><color>white</color></param>
   118         <param name="fadeDurationActivate"><int>0</int></param>
   119         <param name="fadeDurationDeactivate"><int>0</int></param>
   120         <param name="fadeDurationShow"><int>0</int></param>
   121         <param name="fadeDurationHide"><int>0</int></param>
   122         <param name="mouseCursor"><cursor>arrow.*</cursor></param>
   123         <theme name="title" ref="-defaults">
   124             <param name="textAlignment"><enum type="alignment">left</enum></param>
   125             <param name="font"><font>black</font></param>
   126         </theme>
   127         <theme name="closeButton" ref="-defaults"/>
   128         <theme name="resizeHandle" ref="-defaults"/>
   129     </theme>
   130 
   131     <theme name="vscrollbar" ref="-defaults" allowWildcard="true">
   132         <theme name="upbutton" ref="-defaults">
   133             <param name=""><image>vscrollbar.upbutton.*</image></param>
   134             <param name="minHeight"><int>9</int></param>
   135         </theme>
   136         <theme name="downbutton" ref="-defaults">
   137             <param name=""><image>vscrollbar.downbutton.*</image></param>
   138             <param name="minHeight"><int>9</int></param>
   139         </theme>
   140         <theme name="thumb" ref="-defaults">
   141             <param name=""><image>vscrollbar.thumb.*</image></param>
   142         </theme>
   143         <param name="scaleThumb"><bool>true</bool></param>
   144         <param name="minWidth"><int>9</int></param>
   145         <param name="minHeight"><int>48</int></param>
   146     </theme>
   147 
   148     <theme name="hscrollbar" ref="-defaults" allowWildcard="true">
   149         <!-- dummy -->
   150         <theme name="leftbutton" ref="-defaults"/>
   151         <theme name="rightbutton" ref="-defaults"/>
   152         <theme name="thumb" ref="-defaults"/>
   153         <param name="scaleThumb"><bool>false</bool></param>
   154     </theme>
   155 
   156     <theme name="scrollpane" ref="-defaults" allowWildcard="true">
   157         <theme name="hscrollbar" ref="hscrollbar"/>  <!-- not used -->
   158         <theme name="vscrollbar" ref="vscrollbar"/>
   159         <param name="minWidth"><int>100</int></param>
   160         <param name="minHeight"><int>100</int></param>
   161         <param name="maxWidth"><int>32767</int></param>
   162         <param name="maxHeight"><int>32767</int></param>
   163         <param name="hasDragButton"><bool>false</bool></param>
   164         <param name="autoScrollArea"><int>5</int></param>
   165         <param name="autoScrollSpeed"><int>10</int></param>
   166         <param name="scrollbarsAlwaysVisible"><bool>false</bool></param>
   167     </theme>
   168 
   169     <theme name="editfield" ref="-defaults" allowWildcard="true">
   170         <param name=""><image>editfield.*</image></param>
   171         <param name="border"><border>background.border</border></param>
   172         <param name="passwordChar"><int>0x25CF</int></param>
   173         <param name="maxWidth"><int>32767</int></param>
   174         <param name="columns"><int>5</int></param>
   175         <theme name="renderer" ref="-defaults"/>
   176         <param name="autocompletion-height"><int>150</int></param>
   177     </theme>
   178 
   179     <theme name="valueadjuster" ref="-defaults" allowWildcard="true">
   180         <param name="background"><image>none</image></param>
   181         <theme name="decButton" ref="-defaults">
   182             <param name="background"><image>valueadjuster.background</image></param>
   183             <param name="border"><border>background.border</border></param>
   184             <param name="text"><string>-</string></param>
   185             <param name="border"><border>0</border></param>
   186             <param name="minWidth"><int>16</int></param>
   187             <param name="textAlignment"><enum type="alignment">center</enum></param>
   188             <param name="font"><font>black</font></param>
   189         </theme>
   190         <theme name="incButton" ref="-defaults">
   191             <param name="background"><image>valueadjuster.background</image></param>
   192             <param name="border"><border>background.border</border></param>
   193             <param name="text"><string>+</string></param>
   194             <param name="border"><border>0</border></param>
   195             <param name="minWidth"><int>16</int></param>
   196             <param name="textAlignment"><enum type="alignment">center</enum></param>
   197             <param name="font"><font>black</font></param>
   198         </theme>
   199         <theme name="valueDisplay" ref="-defaults">
   200             <param name="background"><image>valueadjuster.background</image></param>
   201             <param name="border"><border>background.border</border></param>
   202             <param name="textAlignment"><enum type="alignment">center</enum></param>
   203             <param name="font"><font>black</font></param>
   204         </theme>
   205         <theme name="valueEdit" ref="editfield">
   206             <param name="background"><image>valueadjuster.background</image></param>
   207             <param name="border"><border>background.border</border></param>
   208         </theme>
   209         <param name="width"><int>100</int></param>
   210         <param name="useMouseWheel"><bool>false</bool></param>
   211         <param name="displayPrefix"><string/></param>
   212     </theme>
   213 
   214     <theme name="textareademo" ref="-defaults">
   215         <param name="background"><image>background-image</image></param>
   216 
   217         <theme name="fpscounter" ref="-defaults">
   218             <param name="tooltip"><string>Current FPS</string></param>
   219         </theme>
   220 
   221         <theme name="textframe" ref="resizableframe">
   222             <theme name="scrollpane" ref="scrollpane">
   223                 <param name="background"><image>innerframe.background</image></param>
   224                 <param name="border"><border>background.border</border></param>
   225 
   226                 <theme name="textarea" ref="-defaults">
   227                     <param name="fonts"><map>
   228                         <param name="default"><font>black</font></param>
   229                         <param name="frame"><font>normal</font></param>
   230                         <param name="big"><font>big</font></param>
   231                         <param name="framebig"><font>framebig</font></param>
   232                         <param name="link"><font>link</font></param>
   233                         <param name="code"><fontDef filename="code.fnt" color="#000000"/></param>
   234                         <param name="codeST0"><fontDef filename="codeBold.fnt" color="#404040"/></param>
   235                         <param name="codeComment"><fontDef filename="code.fnt" color="#404040"/></param>
   236                         <param name="codeCharacter"><fontDef filename="code.fnt" color="#ce7b00"/></param>
   237                         <param name="codeKeyword"><fontDef filename="code.fnt" color="#0000e6"/></param>
   238                     </map></param>
   239                     <param name="images"><map>
   240                         <param name="frame"><image>evilframe.background</image></param>
   241                         <param name="smiley"><image>smiley</image></param>
   242                         <param name="ul-bullet"><image>textarea.ul-bullet</image></param>
   243                         <param name="image.png"><image>image.png</image></param>
   244                     </map></param>
   245                     <param name="mouseCursor.link"><cursor>cursor.finger</cursor></param>
   246                     <theme name="" ref="*"/>
   247                 </theme>
   248             </theme>
   249         </theme>
   250     </theme>
   251 </themes>