skin.tb.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. # This is the default skin of Turbo Badger
  2. # The license of the skin is Public Domain.
  3. #
  4. # For more information about Turbo Badger and its license,
  5. # see tb_core.h.
  6. description
  7. name Turbo Badger Default skin
  8. # Dimensions in dp (the default unit for padding and such) and bitmaps are specified for this DPI.
  9. base-dpi 96
  10. # The skin also has graphics available in these DPI modes
  11. supported-dpi 96 192 288 384
  12. defaults
  13. spacing 5
  14. text-color #fefefe
  15. placeholder
  16. opacity 0.2
  17. disabled
  18. opacity 0.3
  19. elements
  20. TBButton
  21. text-color #fefefe
  22. bitmap button.png
  23. cut 17
  24. expand 7
  25. padding 6 8
  26. overrides
  27. element TBButtonInGroup
  28. condition: target: parent, property: skin, value: button_group
  29. condition: target: parent, property: axis, value: x
  30. element TBButton.pressed
  31. state pressed
  32. TBButton.pressed
  33. text-color #fefefe
  34. bitmap button_pressed.png
  35. cut 17
  36. expand 7
  37. content-ofs-x 1
  38. content-ofs-y 1
  39. TBButton.flat
  40. text-color #fefefe
  41. padding 6 8
  42. children
  43. element TBButton.flat.hovered
  44. state hovered
  45. element TBButton.flat.pressed
  46. state pressed
  47. TBButton.flat.hovered
  48. bitmap button_flat_outline.png
  49. cut 15
  50. expand 6
  51. TBButton.flat.pressed
  52. bitmap button_flat_pressed.png
  53. cut 8
  54. # == TBButtonInGroup is not a widget. It's only used as override for TBButton under a "button_group" ====
  55. TBButtonInGroup
  56. bitmap button_grouped_x_middle_up.png
  57. cut 17
  58. expand 7
  59. padding 6 8
  60. overrides
  61. element TBButtonInGroup.first
  62. condition: target: prev sibling, property: skin, value: TBButton, test: !=
  63. element TBButtonInGroup.last
  64. condition: target: next sibling, property: skin, value: TBButton, test: !=
  65. element TBButtonInGroup.pressed
  66. state pressed
  67. TBButtonInGroup.pressed
  68. clone TBButtonInGroup
  69. bitmap button_grouped_x_middle_down.png
  70. content-ofs-x 1
  71. content-ofs-y 1
  72. overrides
  73. TBButtonInGroup.first
  74. clone TBButtonInGroup
  75. bitmap button_grouped_x_first_up.png
  76. overrides
  77. element TBButtonInGroup.first.pressed
  78. state pressed
  79. TBButtonInGroup.first.pressed
  80. clone TBButtonInGroup.pressed
  81. bitmap button_grouped_x_first_down.png
  82. overrides
  83. TBButtonInGroup.last
  84. clone TBButtonInGroup
  85. bitmap button_grouped_x_last_up.png
  86. overrides
  87. element TBButtonInGroup.last.pressed
  88. state pressed
  89. TBButtonInGroup.last.pressed
  90. clone TBButtonInGroup.pressed
  91. bitmap button_grouped_x_last_down.png
  92. overrides
  93. # == button_group is not a widget. It's specified on widgets that should group TBButton =======
  94. button_group
  95. spacing -1px
  96. # == TBSection skins ==========================================================================
  97. TBSection.layout
  98. spacing -1px
  99. TBSection.container
  100. bitmap TBSectionContainer.png
  101. type StretchBorder
  102. cut 11
  103. expand 6
  104. padding 10
  105. TBSectionHeader
  106. bitmap window_mover_bg_tile.png
  107. type Tile
  108. expand -1
  109. padding 3 16
  110. children
  111. element TBSectionHeader.icon_0
  112. condition: target: this, property: value, value: 0
  113. condition: target: this, property: capture, test: !=
  114. element TBSectionHeader.icon_1
  115. condition: target: this, property: value, value: 1
  116. condition: target: this, property: capture, test: !=
  117. element TBSectionHeader.icon_pressed
  118. condition: target: this, property: capture
  119. overlays
  120. element TBSectionHeader.overlay
  121. state all
  122. TBSectionHeader.overlay
  123. bitmap window_mover_overlay.png
  124. type StretchBorder
  125. cut 16
  126. expand 3
  127. TBSectionHeader.icon_0
  128. bitmap toggle_section_icon_up.png
  129. type Image
  130. img-position-x 0
  131. img-ofs-x 4
  132. TBSectionHeader.icon_1
  133. bitmap toggle_section_icon_down.png
  134. type Image
  135. img-position-x 0
  136. img-ofs-x 4
  137. TBSectionHeader.icon_pressed
  138. bitmap toggle_section_icon_middle.png
  139. type Image
  140. img-position-x 0
  141. img-ofs-x 4
  142. # == TBTabContainer skins - Create strong overrides for the tab buttons four alignments ============
  143. TBTabContainer.rootlayout
  144. spacing -1px
  145. TBTabContainer.tablayout_x
  146. padding 0 10
  147. TBTabContainer.tablayout_y
  148. padding 10 0
  149. TBTabContainer.container
  150. clone TBContainer
  151. TBTabContainer.tab
  152. strong-overrides
  153. element TBTabContainer.tab_top
  154. condition: target: ancestors, property: align, value: top
  155. element TBTabContainer.tab_bottom
  156. condition: target: ancestors, property: align, value: bottom
  157. element TBTabContainer.tab_left
  158. condition: target: ancestors, property: align, value: left
  159. element TBTabContainer.tab_right
  160. condition: target: ancestors, property: align, value: right
  161. # == Top tab button =============================
  162. TBTabContainer.tab_top
  163. bitmap tab_button_top_inactive.png
  164. cut 12
  165. expand 6
  166. padding 6 6 3 6
  167. min-width 50
  168. overrides
  169. element TBTabContainer.tab_top.pressed
  170. state pressed
  171. children
  172. element tab_top_focus
  173. state focused
  174. tab_top_focus
  175. type StretchBorder
  176. bitmap focus_tabbutton_top.png
  177. cut 12
  178. expand 6
  179. TBTabContainer.tab_top.pressed
  180. bitmap tab_button_top_active.png
  181. cut 13
  182. expand 6
  183. # == Bottom tab button =============================
  184. TBTabContainer.tab_bottom
  185. bitmap tab_button_bottom_inactive.png
  186. cut 12
  187. expand 6
  188. padding 3 6 6 6
  189. min-width 50
  190. overrides
  191. element TBTabContainer.tab_bottom.pressed
  192. state pressed
  193. children
  194. element tab_bottom_focus
  195. state focused
  196. tab_bottom_focus
  197. clone tab_top_focus
  198. flip-y 1
  199. TBTabContainer.tab_bottom.pressed
  200. bitmap tab_button_bottom_active.png
  201. cut 13
  202. expand 6
  203. # == Left tab button =============================
  204. TBTabContainer.tab_left
  205. bitmap tab_button_left_inactive.png
  206. cut 12
  207. expand 6
  208. padding 6 3 6 6
  209. min-width 50
  210. overrides
  211. element TBTabContainer.tab_left.pressed
  212. state pressed
  213. children
  214. element tab_left_focus
  215. state focused
  216. tab_left_focus
  217. type StretchBorder
  218. bitmap focus_tabbutton_left.png
  219. cut 12
  220. expand 6
  221. TBTabContainer.tab_left.pressed
  222. bitmap tab_button_left_active.png
  223. cut 13
  224. expand 6
  225. # == Right tab button =============================
  226. TBTabContainer.tab_right
  227. bitmap tab_button_right_inactive.png
  228. cut 12
  229. expand 6
  230. padding 6 6 6 3
  231. min-width 50
  232. overrides
  233. element TBTabContainer.tab_right.pressed
  234. state pressed
  235. children
  236. element tab_right_focus
  237. state focused
  238. tab_right_focus
  239. clone tab_left_focus
  240. flip-x 1
  241. TBTabContainer.tab_right.pressed
  242. bitmap tab_button_right_active.png
  243. cut 13
  244. expand 6
  245. # == TBEditField skin. Create strong overrides for the search type to add magnifier glass icon =====
  246. TBEditField.selection
  247. cut 2
  248. bitmap selection.png
  249. TBEditField
  250. bitmap editfield.png
  251. cut 12
  252. expand 4
  253. padding 4
  254. strong-overrides
  255. element TBEditField.search
  256. condition: target: this, property: edit-type, value: "search"
  257. TBEditField.search
  258. clone TBEditField
  259. padding 4 4 4 24
  260. min-width 50
  261. children
  262. element TBEditField.search.icon
  263. TBEditField.search.icon
  264. bitmap search.png
  265. type Image
  266. img-position-x 0
  267. img-ofs-x 5
  268. # == TBWindow skin =================================================================================
  269. TBWindow
  270. bitmap window.png
  271. cut 16
  272. expand 12
  273. padding 10
  274. overrides
  275. element TBWindow.selected
  276. state selected
  277. TBWindow.selected
  278. bitmap window_active.png
  279. cut 16
  280. expand 12
  281. TBWindow.close
  282. bitmap window_close.png
  283. type Image
  284. children
  285. element TBWindow.close.pressed
  286. state pressed
  287. TBWindow.close.pressed
  288. bitmap window_close_pressed.png
  289. type Image
  290. TBWindow.mover
  291. text-color #b8b8b8
  292. bitmap window_mover_bg_tile.png
  293. type Tile
  294. expand -1
  295. padding 4
  296. overrides
  297. element TBWindow.mover.active
  298. state selected
  299. children
  300. element TBWindow.mover.overlay
  301. state all
  302. TBWindow.mover.overlay
  303. bitmap window_mover_overlay.png
  304. cut 12
  305. expand 3
  306. TBWindow.mover.active
  307. clone TBWindow.mover
  308. text-color #fefefe
  309. overrides
  310. overlays
  311. children
  312. # == Misc skins ====================================================================================
  313. TBContainer
  314. bitmap container.png
  315. type StretchBorder
  316. cut 12
  317. expand 6
  318. padding 10
  319. TBCheckBox
  320. bitmap checkbox.png
  321. cut 19
  322. expand 7
  323. children
  324. element TBCheckBox.selected
  325. state selected
  326. element TBCheckBox.pressed
  327. state pressed
  328. TBCheckBox.selected
  329. bitmap checkbox_mark.png
  330. type Image
  331. expand 7
  332. TBCheckBox.pressed
  333. bitmap checkbox_pressed.png
  334. type Image
  335. TBRadioButton
  336. bitmap radio.png
  337. cut 19
  338. expand 7
  339. children
  340. element TBRadioButton.selected
  341. state selected
  342. element TBRadioButton.pressed
  343. state pressed
  344. TBRadioButton.selected
  345. bitmap radio_mark.png
  346. type Image
  347. expand 7
  348. TBRadioButton.pressed
  349. bitmap radio_pressed.png
  350. type Image
  351. expand 7
  352. TBLayout.fadeout_x
  353. bitmap fadeout_x.png
  354. TBLayout.fadeout_y
  355. bitmap fadeout_y.png
  356. TBSelectList
  357. clone TBEditField
  358. padding 2
  359. TBSelectDropdown
  360. clone TBButton
  361. TBSelectDropdown.arrow
  362. clone arrow.down
  363. TBSelectDropdown.window
  364. clone TBPopupWindow
  365. TBPopupWindow
  366. clone TBWindow
  367. padding 2
  368. TBMenuWindow
  369. clone TBPopupWindow
  370. TBSelectItem
  371. padding 4 10
  372. children
  373. element TBSelectItem.hovered
  374. state hovered
  375. element TBSelectItem.selected
  376. state selected
  377. TBSelectItem.selected
  378. cut 7
  379. bitmap item_selected.png
  380. TBSelectItem.hovered
  381. cut 7
  382. bitmap item_hover.png
  383. TBSelectItem.separator
  384. clone TBSeparator
  385. TBSeparator
  386. bitmap item_separator_x.png
  387. type Stretch Image
  388. overrides
  389. element TBSeparator.y
  390. condition: target: parent, property: axis, value: x
  391. TBSeparator.y
  392. bitmap item_separator_y.png
  393. type Stretch Image
  394. TBScrollBarBgX
  395. bitmap scroll_bg_x.png
  396. cut 11
  397. expand 5
  398. TBScrollBarFgX
  399. bitmap scroll_fg_x.png
  400. cut 11
  401. expand 5
  402. TBScrollBarBgY
  403. bitmap scroll_bg_y.png
  404. cut 11
  405. expand 5
  406. TBScrollBarFgY
  407. bitmap scroll_fg_y.png
  408. cut 11
  409. expand 5
  410. TBSliderBgX
  411. bitmap slider_bg_x.png
  412. cut 9
  413. min-height 19
  414. max-height 19
  415. min-width 50
  416. TBSliderFgX
  417. bitmap slider_handle.png
  418. expand 5
  419. TBSliderBgY
  420. bitmap slider_bg_y.png
  421. cut 9
  422. min-width 19
  423. max-width 19
  424. min-height 50
  425. TBSliderFgY
  426. clone TBSliderFgX
  427. TBResizer
  428. bitmap resizer.png
  429. TBInlineSelect
  430. max-width 110
  431. TBDimmer
  432. background-color #00000088
  433. TBProgressSpinner
  434. min-width 28
  435. min-height 28
  436. TBProgressSpinner.fg
  437. bitmap progress_spinner_strip.png
  438. # The TBList header is always disabled, thus gets slightly less opacity default.
  439. TBList.header
  440. arrow.left: type: Image, bitmap: arrow_left.png, min-width: 5, min-height: 10
  441. arrow.right: type: Image, bitmap: arrow_right.png, min-width: 5, min-height: 10
  442. arrow.up: type: Image, bitmap: arrow_up.png, min-width: 10, min-height: 5
  443. arrow.down: type: Image, bitmap: arrow_down.png, min-width: 10, min-height: 5
  444. generic_focus
  445. bitmap focus_r4.png
  446. cut 11
  447. expand 4
  448. # == ToggleButton skins ====================================================================================
  449. TBToggleButton
  450. text-color #fefefe
  451. bitmap button.png
  452. cut 17
  453. expand 7
  454. padding 6 8
  455. overrides
  456. element TBButtonInGroup
  457. condition: target: parent, property: skin, value: button_group
  458. condition: target: parent, property: axis, value: x
  459. element TBToggleButton.pressed
  460. state pressed
  461. TBToggleButton.pressed
  462. text-color #fefefe
  463. bitmap buttontoggle_pressed.png
  464. cut 17
  465. expand 7
  466. content-ofs-x 1
  467. content-ofs-y 1
  468. # == FileFinder support
  469. FolderIcon
  470. bitmap folder.png
  471. FolderAdd
  472. bitmap folder_create.png
  473. BookmarkIcon
  474. bitmap star.png
  475. FolderUp
  476. bitmap arrow_up.png
  477. # dockwindow support
  478. TBWindow.redock
  479. bitmap window_redock.png
  480. type Image
  481. children
  482. element TBWindow.redock.pressed
  483. state pressed
  484. TBWindow.redock.pressed
  485. bitmap window_redock_pressed.png
  486. type Image