stkskin.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Ruby skin is based on Peach skin
  4. Peach skin by Dakal and Marianne Gagnon, released under creative-commons BY-SA 3.0+
  5. Except background.jpg, by elisee
  6. Except stars, by s@f
  7. To make your own skin, I suggest simply duplicating this file and modifying it as needed.
  8. There are two types of images : some will be simply stretched as a whole, others will
  9. have non-stretchable borders (you cannot choose which one you must use, it's hardcoded
  10. for each element type; though, as you will see below, for all "advanced stretching" images
  11. you can easily fake "simple stretch")
  12. All elements will have at least 2 properties :
  13. type="X" sets what you're skinning with this entry
  14. image="skinDirectory/imageName.png" sets which image is used for this element
  15. Most elements also support states :
  16. state="neutral"
  17. state="focused"
  18. state="down"
  19. You can thus give different looks for different states. Not all widgets support all states,
  20. see entries and comments below to know what's supported.
  21. Note that checkboxes are an exception and have the following styles :
  22. "neutral+unchecked"
  23. "neutral+checked"
  24. "focused+unchecked"
  25. "focused+checked"
  26. "deactivated+unchecked"
  27. "deactivated+checked"
  28. "Advanced stretching" images are split this way :
  29. +----+--------------------+----+
  30. | | | |
  31. +----+--------------------+----+
  32. | | | |
  33. | | | |
  34. | | | |
  35. +----+--------------------+----+
  36. | | | |
  37. +----+--------------------+----+
  38. The center border will be stretched in all directions. The 4 corners will not stretch at all.
  39. Horizontal borders will stretch horizontally, verticallt borders will stretch vertically.
  40. Use properties left_border="X" right_border="X" top_border="X" bottom_border="X" to specify
  41. the size of each border in pixels (setting all borders to '0' makes the whole image scaled).
  42. In some cases, you may not want vertical stretching to occur (like if the left and right sides
  43. of the image must not be stretched vertically, e.g. for the spinner). In this case, pass
  44. parameter preserve_h_aspect_ratios="true" to make the left and right areas stretch by keeping
  45. their aspect ratio.
  46. Some components may fill the full inner area with stuff; others will only take a smaller
  47. area at the center. To adjust for this, there are properties "hborder_out_portion" and "vborder_out_portion"
  48. that take a float from 0 to 1, representing the percentage of each border that goes out of the widget's
  49. area (this might include stuff like shadows, etc.). The 'h' one is for horizontal borders,
  50. the 'v' one is for vertical borders.
  51. Finnally : the image is split, as shown above, into 9 areas. In some cases, you may not want
  52. all areas to be rendered. Then you can pass parameter areas="body+left+right+top+bottom"
  53. and explicitely specify which parts you want to see. The 4 corner areas are only visible
  54. when the border that intersect at this corner are enabled.
  55. When there is a common="y" with image tag, the image will be loaded only from data/skins/common in stk-code.
  56. Any information not specified in this theme will be inherited from the specified base theme,
  57. if any. To specify a base theme, add base_theme="themename" to the <skin> tag.
  58. To use an icon theme, place the replacement icons (PNG or SVG) into [skin folder]/data/gui/icons
  59. STK will prefer these icons first, if not found it will fallback to icons from the base theme(s).
  60. -->
  61. <skin name="Ruby" author="Benau" base_theme="peach">
  62. <!--
  63. Here you can configure advanced theming rules for this skin
  64. For TTF specify the list like the following, for normal and digit ttf it will be added at the beginning of the
  65. font list in STK, so those TTF will be used first, and any missing characters will be rendered from the base
  66. theme font list. For color emoji ttf it will replace the base theme color emoji directly. You are not required
  67. to specify all types of ttf.
  68. <advanced normal_ttf="xxx.ttf yyy.ttf"
  69. digit_ttf="zzz.ttf"
  70. color_emoji_ttf="www.ttf"/>
  71. -->
  72. <!-- Stateless -->
  73. <element type="background" common="y" image="background.jpg" />
  74. <element type="bottom-bar" common="y" image="bottom_bar.png" />
  75. <element type="achievement-message" image="achievement.png"
  76. left_border="128" right_border="13" top_border="13" bottom_border="13"
  77. preserve_h_aspect_ratios="true" hborder_out_portion="0.3" vborder_out_portion="0"/>
  78. <element type="friend-message" image="friend.png"
  79. left_border="128" right_border="13" top_border="13" bottom_border="13"
  80. preserve_h_aspect_ratios="true" hborder_out_portion="0" vborder_out_portion="0"/>
  81. <element type="error-message" image="error.png"
  82. left_border="128" right_border="13" top_border="13" bottom_border="13"
  83. preserve_h_aspect_ratios="true" hborder_out_portion="0" vborder_out_portion="0"/>
  84. <element type="generic-message" image="generic.png"
  85. left_border="128" right_border="13" top_border="13" bottom_border="13"
  86. preserve_h_aspect_ratios="true" hborder_out_portion="0" vborder_out_portion="0"/>
  87. <element type="button" state="neutral" image="glassbutton.png"
  88. left_border="13" right_border="13" top_border="13" bottom_border="13"
  89. hborder_out_portion="0" vborder_out_portion="0"/>
  90. <element type="button" state="focused" image="glassbutton_focused.png"
  91. left_border="13" right_border="13" top_border="13" bottom_border="13"
  92. hborder_out_portion="0" vborder_out_portion="0"/>
  93. <element type="button" state="deactivated" common="y" image="glassbutton_deactivated.png"
  94. left_border="13" right_border="13" top_border="13" bottom_border="13"
  95. hborder_out_portion="0" vborder_out_portion="0"/>
  96. <!-- TODO : buttons could support 'pressed' state -->
  97. <element type="textbubble" state="neutral" image="textbubble.png"
  98. left_border="13" right_border="13" top_border="13" bottom_border="13"
  99. hborder_out_portion="0.7" vborder_out_portion="0.3" />
  100. <element type="textbubble" state="focused" image="textbubble2.png"
  101. left_border="13" right_border="13" top_border="13" bottom_border="13"
  102. hborder_out_portion="0.7" vborder_out_portion="0.3" />
  103. <element type="progress" state="fill" image="glasssgauge_fill.png"
  104. left_border="10" right_border="10" top_border="10" bottom_border="10" />
  105. <element type="progress" state="neutral" common="y" image="progress_bg.png"
  106. left_border="31" right_border="31" top_border="15" bottom_border="15" />
  107. <element type="tab" state="neutral" image="glasstab.png"
  108. left_border="11" right_border="11" top_border="6" bottom_border="10"
  109. preserve_h_aspect_ratios="false" hborder_out_portion="0.0" vborder_out_portion="0.0"
  110. h_inner_padding="0" v_inner_padding="0" h_margin="0" v_margin="0" />
  111. <element type="tab" state="focused" image="glasstab_focus.png"
  112. left_border="11" right_border="11" top_border="6" bottom_border="10"
  113. preserve_h_aspect_ratios="false" hborder_out_portion="0.0" vborder_out_portion="0.0"
  114. h_inner_padding="0" v_inner_padding="0" h_margin="0" v_margin="0" />
  115. <element type="tab" state="down" image="glasstab_down.png"
  116. left_border="11" right_border="11" top_border="6" bottom_border="10"
  117. preserve_h_aspect_ratios="false" hborder_out_portion="0.0" vborder_out_portion="0.0"
  118. h_inner_padding="0" v_inner_padding="0" h_margin="0" v_margin="0" />
  119. <element type="verticalTab" state="neutral" image="glasstab_vert.png"
  120. left_border="10" right_border="10" top_border="10" bottom_border="10"
  121. preserve_h_aspect_ratios="false" hborder_out_portion="0.0" vborder_out_portion="0.0"
  122. h_inner_padding="0" v_inner_padding="0" h_margin="0" v_margin="0" />
  123. <element type="verticalTab" state="focused" image="glasstab_vert_focus.png"
  124. left_border="10" right_border="10" top_border="10" bottom_border="10"
  125. preserve_h_aspect_ratios="false" hborder_out_portion="0.0" vborder_out_portion="0.0"
  126. h_inner_padding="0" v_inner_padding="0" h_margin="0" v_margin="0" />
  127. <element type="verticalTab" state="down" image="glasstab_vert_down.png"
  128. left_border="10" right_border="10" top_border="10" bottom_border="10"
  129. preserve_h_aspect_ratios="false" hborder_out_portion="0.0" vborder_out_portion="0.0"
  130. h_inner_padding="0" v_inner_padding="0" h_margin="0" v_margin="0" />
  131. <!-- Stateless -->
  132. <element type="squareFocusHaloBW" common="y" image="glass_square_focused_bw.png"
  133. left_border="6" right_border ="6" top_border="6" bottom_border="6"
  134. hborder_out_portion="1.0" />
  135. <element type="squareFocusHalo1" common="y" image="glass_square_focused_pink.png"
  136. left_border="6" right_border ="6" top_border="6" bottom_border="6"
  137. hborder_out_portion="1.0" />
  138. <element type="squareFocusHalo2" common="y" image="glass_square_focused_cyan.png"
  139. left_border="6" right_border ="6" top_border="6" bottom_border="6"
  140. hborder_out_portion="1.0" />
  141. <element type="squareFocusHalo3" common="y" image="glass_square_focused_green.png"
  142. left_border="6" right_border ="6" top_border="6" bottom_border="6"
  143. hborder_out_portion="1.0" />
  144. <element type="squareFocusHalo4" common="y" image="glass_square_focused_yellow.png"
  145. left_border="6" right_border ="6" top_border="6" bottom_border="6"
  146. hborder_out_portion="1.0" />
  147. <element type="squareFocusHalo5" common="y" image="glass_square_focused_red.png"
  148. left_border="6" right_border ="6" top_border="6" bottom_border="6"
  149. hborder_out_portion="1.0" />
  150. <!-- Stateless. No splitting into 9 areas is done; the image is just resized. -->
  151. <element type="selectionHalo" image="bubble.png" />
  152. <element type="focusHalo" image="glass_iconhighlight_focus.png" />
  153. <element type="spinner" state="neutral" common="y" image="glassspinner.png"
  154. left_border="110" right_border="110" top_border="0" bottom_border="36"
  155. preserve_h_aspect_ratios="true" hborder_out_portion="0.0" />
  156. <element type="spinner" state="focused" image="glassspinner_focus.png"
  157. left_border="110" right_border="110" top_border="0" bottom_border="36"
  158. preserve_h_aspect_ratios="true" hborder_out_portion="0.0" />
  159. <element type="spinner" state="deactivated" common="y" image="glassspinner_deactivated.png"
  160. left_border="110" right_border="110" top_border="0" bottom_border="36"
  161. preserve_h_aspect_ratios="true" hborder_out_portion="0.0" />
  162. <!-- color spinner in kart color selection -->
  163. <element type="spinner_rainbow" state="neutral" image="spinner_rainbow.png"
  164. left_border="104" right_border="104" top_border="0" bottom_border="36"
  165. preserve_h_aspect_ratios="true" hborder_out_portion="0.0" common="y"/>
  166. <element type="spinner_rainbow" state="focused" image="spinner_rainbow_focus.png"
  167. left_border="104" right_border="104" top_border="0" bottom_border="36"
  168. preserve_h_aspect_ratios="true" hborder_out_portion="0.0" common="y"/>
  169. <element type="spinner_rainbow" state="deactivated" image="spinner_rainbow_deactivated.png"
  170. left_border="104" right_border="104" top_border="0" bottom_border="36"
  171. preserve_h_aspect_ratios="true" hborder_out_portion="0.0" common="y"/>
  172. <!-- player name spinner color in multiplayer-->
  173. <element type="spinner1" state="neutral" common="y" image="glass_square_pink.png"
  174. left_border="110" right_border="110" top_border="0" bottom_border="36"
  175. preserve_h_aspect_ratios="true" hborder_out_portion="0.0" />
  176. <element type="spinner2" state="neutral" common="y" image="glass_square_cyan.png"
  177. left_border="110" right_border="110" top_border="0" bottom_border="36"
  178. preserve_h_aspect_ratios="true" hborder_out_portion="0.0" />
  179. <element type="spinner3" state="neutral" common="y" image="glass_square_green.png"
  180. left_border="110" right_border="110" top_border="0" bottom_border="36"
  181. preserve_h_aspect_ratios="true" hborder_out_portion="0.0" />
  182. <element type="spinner4" state="neutral" common="y" image="glass_square_yellow.png"
  183. left_border="110" right_border="110" top_border="0" bottom_border="36"
  184. preserve_h_aspect_ratios="true" hborder_out_portion="0.0" />
  185. <element type="spinner5" state="neutral" common="y" image="glass_square_red.png"
  186. left_border="110" right_border="110" top_border="0" bottom_border="36"
  187. preserve_h_aspect_ratios="true" hborder_out_portion="0.0" />
  188. <!-- This one is a bit special. Only area(s) LEFT and/or RIGHT will be rendered. They will be overlaid
  189. on top of the spinner's background -->
  190. <element type="spinner" state="down" image="glassspinner_down.png"
  191. left_border="110" right_border="110" top_border="0" bottom_border="36"
  192. preserve_h_aspect_ratios="true" hborder_out_portion="0.0" />
  193. <!-- For checkboxes, no splitting into 9 areas is done; the image is just stretched -->
  194. <element type="checkbox" state="neutral+unchecked" image="glasscheckbox.png"/>
  195. <element type="checkbox" state="neutral+checked" image="glasscheckbox_checked.png"/>
  196. <element type="checkbox" state="focused+unchecked" image="glasscheckbox_focus.png"/>
  197. <element type="checkbox" state="focused+checked" image="glasscheckbox_checked_focus.png"/>
  198. <element type="checkbox" state="deactivated+unchecked" common="y" image="glasscheckbox_deactivated.png"/>
  199. <element type="checkbox" state="deactivated+checked" common="y" image="glasscheckbox_checked_deactivated.png"/>
  200. <!-- are always in neutral state for now. No splitting into 9 areas is done; the image is just stretched.
  201. Note: the body of a guage is the same as for for spinners. -->
  202. <element type="gaugefill" image="glasssgauge_fill.png" />
  203. <element type="gaugefillrainbow" common="y" image="gauge_fill_rainbow.png" />
  204. <!-- Lists are always in neutral state for now -->
  205. <element type="list" common="y" image="glass_section.png"
  206. left_border="15" right_border="15" top_border="7" bottom_border="7"
  207. hborder_out_portion="0.0" vborder_out_portion="0.0" />
  208. <element type="listitem" state="focused" image="select.png"
  209. left_border="0" right_border="0" top_border="0" bottom_border="0"
  210. hborder_out_portion="0.0" vborder_out_portion="0.0" />
  211. <!-- Scrollbars. Background and thumb have no state (always neutral state).
  212. The buttons are the top and bottom arrows. Image must be top arrow, will
  213. be mirrorred for bottom. Buttons can be in neutral or down state.
  214. Advanced stretching is only used for the background and thumb. -->
  215. <element type="scrollbar_background" common="y" image="scrollbar_bg.png"
  216. left_border="7" right_border="7" top_border="7" bottom_border="7"
  217. hborder_out_portion="0.0" vborder_out_portion="0.0" />
  218. <element type="scrollbar_thumb" image="scrollbar_thumb.png"
  219. left_border="7" right_border="7" top_border="7" bottom_border="7"
  220. hborder_out_portion="-1.0" vborder_out_portion="-1.0" />
  221. <element type="scrollbar_button" common="y" image="scrollbar_btn.png" />
  222. <element type="scrollbar_button" state="down" image="scrollbar_btn_down.png" />
  223. <element type="left_arrow" state="neutral" common="y" image="left_arrow.png" />
  224. <element type="right_arrow" state="neutral" common="y" image="right_arrow.png" />
  225. <element type="left_arrow" state="focus" image="left_arrow_focus.png" />
  226. <element type="right_arrow" state="focus" image="right_arrow_focus.png" />
  227. <element type="list_header" state="neutral" common="y" image="table_header.png" />
  228. <element type="list_sort_up" state="neutral" common="y" image="list_sort_up.png" />
  229. <element type="list_sort_down" state="neutral" common="y" image="list_sort_down.png" />
  230. <element type="list_header" state="down" image="table_header_down.png" />
  231. <!-- Stateless -->
  232. <element type="section" common="y" image="glass_section.png"
  233. left_border="15" right_border="15" top_border="15" bottom_border="15"
  234. hborder_out_portion="0.0" vborder_out_portion="0.0" />
  235. <element type="section" state="selected" image="glassbutton_focused.png"
  236. left_border="15" right_border="15" top_border="15" bottom_border="15"
  237. hborder_out_portion="0.0" vborder_out_portion="0.0" />
  238. <!-- Stateless -->
  239. <element type="rounded_section" common="y" image="glass_rsection.png"
  240. left_border="15" right_border="15" top_border="15" bottom_border="15"
  241. hborder_out_portion="0.0" vborder_out_portion="0.0" />
  242. <!-- Stateless -->
  243. <element type="window" common="y" image="dialog.png"
  244. left_border="7" right_border="7" top_border="7" bottom_border="7"
  245. hborder_out_portion="1.0" vborder_out_portion="0.2" />
  246. <!-- Stateless -->
  247. <element type="tooltip" common="y" image="tooltip.png"
  248. left_border="10" right_border="10" top_border="10" bottom_border="10"
  249. hborder_out_portion="1.0" vborder_out_portion="1.0" />
  250. <!-- Colors -->
  251. <color type="text" state="neutral" r="0" g="0" b="0" />
  252. <color type="brighttext" state="neutral" r="255" g="30" b="150" />
  253. <!-- For highlighted items, e.g. in list -->
  254. <color type="text" state="focused" r="255" g="255" b="255" />
  255. <!-- Color used in the credits -->
  256. <color type="credits_text" state="neutral" r="65" g="0" b="15" />
  257. <!-- Color used for emphasized items in e.g. lists -->
  258. <color type="emphasis_text" state="neutral" r="0" g="0" b="180" />
  259. <color type="emphasis_text" state="focused" r="0" g="0" b="160" />
  260. <!-- Color used for red/blue items in list (e.g. player team color in networking) -->
  261. <color type="list_blue" state="neutral" r="0" g="0" b="255" />
  262. <color type="list_blue" state="focused" r="0" g="0" b="255" />
  263. <color type="list_red" state="neutral" r="255" g="0" b="0" />
  264. <color type="list_red" state="focused" r="255" g="0" b="0" />
  265. <!-- Color used to fade out background when a dialog is shown -->
  266. <color type="dialog_background" state="neutral" a="120" r="0" g="0" b="0" />
  267. <!-- Color used for tips in the loading screen -->
  268. <color type="tips_background" state="neutral" a="120" r="0" g="0" b="0" />
  269. <!-- Text field color -->
  270. <color type="text_field" state="background" a="255" r="200" g="200" b="200" />
  271. <color type="text_field" state="background_focused" a="255" r="245" g="220" b="235" />
  272. <color type="text_field" state="background_deactivated" a="255" r="200" g="200" b="200" />
  273. <color type="text_field" state="background_marked" a="128" r="80" g="40" b="40" />
  274. <color type="text_field" state="neutral" a="255" r="138" g="138" b="138" />
  275. <color type="text_field" state="focused" a="255" r="240" g="80" b="110" />
  276. <color type="text_field" state="deactivated" a="255" r="138" g="138" b="138" />
  277. <!-- Rating star image -->
  278. <element type="rating" state="neutral" common="y" image="rating_star.png" />
  279. <!-- Font color -->
  280. <color type="font" state="top" a="255" r="255" g="30" b="200" />
  281. <color type="font" state="bottom" a="255" r="255" g="100" b="100" />
  282. <color type="font" state="normal" a="255" r="190" g="115" b="180" />
  283. </skin>