definition.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <widgets>
  3. <style>
  4. <faceColor value="#F7F7F7"/>
  5. <checkedColor value="#C0C0C0"/>
  6. <lightColor value="#FFFFFF"/>
  7. <lightBorderColor value="#F7F7F7"/>
  8. <shadowColor value="#808080"/>
  9. <darkShadowColor value="#000000"/>
  10. <buttonTextColor value="#007AFF"/>
  11. <defaultActionButtonTextColor value="#007AFF"/>
  12. <actionButtonTextColor value="#007AFF"/>
  13. <actionButtonRolloverTextColor value="#007AFF"/>
  14. <buttonRolloverTextColor value="#FFFFFF"/>
  15. <radioCheckTextColor value="#000000"/>
  16. <groupTextColor value="#000000"/>
  17. <labelTextColor value="#000000"/>
  18. <windowColor value="#FFFFFF"/>
  19. <windowTextColor value="#000000"/>
  20. <dialogColor value="#FFFFFF"/>
  21. <dialogTextColor value="#000000"/>
  22. <workspaceColor value="#F7F7F7"/>
  23. <monoColor value="#000000"/>
  24. <fieldColor value="#FFFFFF"/>
  25. <fieldTextColor value="#000000"/>
  26. <fieldRolloverTextColor value="#000000"/>
  27. <activeColor value="#007AFF"/>
  28. <activeTextColor value="#FFFFFF"/>
  29. <activeBorderColor value="#C0C0C0"/>
  30. <deactiveColor value="#808080"/>
  31. <deactiveTextColor value="#C0C0C0"/>
  32. <deactiveBorderColor value="#C0C0C0"/>
  33. <menuColor value="#FFFFFF"/>
  34. <menuBarColor value="#FFFFFF"/>
  35. <menuBarRolloverColor value="#007AFF"/>
  36. <menuBorderColor value="#C0C0C0"/>
  37. <menuTextColor value="#000000"/>
  38. <menuBarTextColor value="#000000"/>
  39. <menuBarRolloverTextColor value="#000000"/>
  40. <menuBarHighlightTextColor value="#000000"/>
  41. <menuHighlightColor value="#007AFF"/>
  42. <menuHighlightTextColor value="#FFFFFF"/>
  43. <highlightColor value="#007AFF"/>
  44. <highlightTextColor value="#FFFFFF"/>
  45. <activeTabColor value="#FFFFFF"/>
  46. <inactiveTabColor value="#C0C0C0"/>
  47. <tabTextColor value="#007AFF"/>
  48. <tabRolloverTextColor value="#007AFF"/>
  49. <tabHighlightTextColor value="#FFFFFF"/>
  50. <disableColor value="#808080"/>
  51. <helpColor value="#FFFFE0"/>
  52. <helpTextColor value="#000000"/>
  53. <linkColor value="#007AFF"/>
  54. <visitedLinkColor value="#0464AA"/>
  55. <toolTextColor value="#000000"/>
  56. <fontColor value="#000000"/>
  57. </style>
  58. <!--
  59. Various setting for controls that aren't style colors.
  60. Empty "value" attribute or if setting is not present means default will be used.
  61. -->
  62. <settings>
  63. <noActiveTabTextRaise value="true"/>
  64. <centeredTabs value="true"/>
  65. <listBoxEntryMargin value="20"/>
  66. <defaultFontSize value="10"/>
  67. <titleHeight value="16"/>
  68. <floatTitleHeight value="12"/>
  69. <listBoxPreviewDefaultLogicWidth value="16"/>
  70. <listBoxPreviewDefaultLogicHeight value="16"/>
  71. </settings>
  72. <!--
  73. Follows the definitions od various controls.
  74. The definition is always in form:
  75. <{ControlType} attributes...>
  76. <{ControlPart} attributes...>
  77. <state attributes...>
  78. {draw commands}
  79. ...
  80. </state>
  81. </{ControlPart}>
  82. </{ControlType}>
  83. Supported <state> attributes are:
  84. enabled="true|false|any"
  85. focused="true|false|any"
  86. pressed="true|false|any"
  87. rollover="true|false|any"
  88. default="true|false|any"
  89. selected="true|false|any"
  90. button-value="true|false|any"
  91. extra="{various}"
  92. control specific:
  93. <spinbox> attributes:
  94. - orientation: stacked (default), edit-decrease-increase, decrease-edit-increase
  95. -->
  96. <pushbutton>
  97. <part value="Entire">
  98. <state enabled="true">
  99. <external source="pushbutton-default.svg" />
  100. </state>
  101. <state enabled="true" rollover="true">
  102. <external source="pushbutton-rollover.svg" />
  103. </state>
  104. <state enabled="false">
  105. <external source="pushbutton-disabled.svg" />
  106. </state>
  107. </part>
  108. <part value="Focus">
  109. <state>
  110. <external source="common-rect-focus.svg" />
  111. </state>
  112. </part>
  113. </pushbutton>
  114. <radiobutton>
  115. <part value="Entire" width="26" height="26">
  116. <state enabled="true" pressed="false" button-value="true">
  117. <image source="tick-on.svg" />
  118. </state>
  119. <state enabled="true" pressed="true" button-value="true">
  120. <image source="tick-on-pressed.svg" />
  121. </state>
  122. <state enabled="false" button-value="true">
  123. <image source="tick-on-disabled.svg" />
  124. </state>
  125. <state enabled="true" pressed="false" button-value="false">
  126. <image source="tick-off.svg" />
  127. </state>
  128. <state enabled="true" pressed="true" button-value="false">
  129. <image source="tick-off-pressed.svg" />
  130. </state>
  131. <state enabled="false" button-value="false">
  132. <image source="tick-off-disabled.svg" />
  133. </state>
  134. </part>
  135. <part value="Focus">
  136. <state>
  137. <external source="common-rect-focus-slim.svg" />
  138. </state>
  139. </part>
  140. </radiobutton>
  141. <checkbox>
  142. <part value="Entire" width="46" height="32">
  143. <state enabled="true" pressed="false" button-value="true">
  144. <image source="switch-on.svg" />
  145. </state>
  146. <state enabled="true" pressed="true" button-value="true">
  147. <image source="switch-on-pressed.svg" />
  148. </state>
  149. <state enabled="false" button-value="true">
  150. <image source="switch-on-disabled.svg" />
  151. </state>
  152. <state enabled="true" pressed="false" button-value="false">
  153. <image source="switch-off.svg" />
  154. </state>
  155. <state enabled="true" pressed="true" button-value="false">
  156. <image source="switch-off-pressed.svg" />
  157. </state>
  158. <state enabled="false" button-value="false">
  159. <image source="switch-off-disabled.svg" />
  160. </state>
  161. </part>
  162. <part value="Focus">
  163. <state>
  164. <external source="common-rect-focus-slim.svg" />
  165. </state>
  166. </part>
  167. </checkbox>
  168. <combobox>
  169. <part value="Entire">
  170. <state enabled="true">
  171. <external source="combobox.svg" />
  172. </state>
  173. <state enabled="false">
  174. <external source="combobox-disabled.svg" />
  175. </state>
  176. </part>
  177. <part value="SubEdit">
  178. <state>
  179. </state>
  180. </part>
  181. <part value="ButtonDown" width="35" height="36">
  182. <state enabled="true">
  183. <image source="combobox-button.svg" />
  184. </state>
  185. <state enabled="false">
  186. <image source="combobox-button-disabled.svg" />
  187. </state>
  188. </part>
  189. <part value="Focus">
  190. <state>
  191. <external source="common-rect-focus.svg" />
  192. </state>
  193. </part>
  194. </combobox>
  195. <editbox>
  196. <part value="Entire" height="32">
  197. <state enabled="true">
  198. <external source="common-rect.svg" />
  199. </state>
  200. <state enabled="false">
  201. <external source="common-rect-disabled.svg" />
  202. </state>
  203. <state focused="true">
  204. <external source="common-rect-focus.svg" />
  205. </state>
  206. </part>
  207. </editbox>
  208. <listbox>
  209. <part value="Entire">
  210. <state enabled="true">
  211. <external source="combobox.svg" />
  212. </state>
  213. <state enabled="false">
  214. <external source="combobox-disabled.svg" />
  215. </state>
  216. </part>
  217. <part value="SubEdit">
  218. <state/> <!-- Intentional empty - don't draw anything -->
  219. </part>
  220. <part value="ButtonDown" width="35" height="36">
  221. <state enabled="true">
  222. <image source="combobox-button.svg" />
  223. </state>
  224. <state enabled="false">
  225. <image source="combobox-button-disabled.svg" />
  226. </state>
  227. </part>
  228. <part value="Focus">
  229. <state>
  230. <external source="common-rect-focus.svg" />
  231. </state>
  232. </part>
  233. </listbox>
  234. <spinbox>
  235. <part value="Entire" orientation="decrease-edit-increase">
  236. <state>
  237. <rect stroke="#ffffff" fill="#ffffff" stroke-width="0" />
  238. </state>
  239. </part>
  240. <part value="SubEdit">
  241. <state/> <!-- Intentional empty - don't draw anything -->
  242. </part>
  243. <part value="ButtonDown" width="44" height="26">
  244. <state enabled="true">
  245. <external source="spinbox-left.svg" />
  246. </state>
  247. <state enabled="true" pressed="true">
  248. <external source="spinbox-left-pressed.svg" />
  249. </state>
  250. <state enabled="false">
  251. <external source="spinbox-left-disabled.svg" />
  252. </state>
  253. </part>
  254. <part value="ButtonUp" width="44" height="26">
  255. <state enabled="true">
  256. <external source="spinbox-right.svg" />
  257. </state>
  258. <state enabled="true" pressed="true">
  259. <external source="spinbox-right-pressed.svg" />
  260. </state>
  261. <state enabled="false">
  262. <external source="spinbox-right-disabled.svg" />
  263. </state>
  264. </part>
  265. <part value="Focus">
  266. <state>
  267. <external source="common-rect-focus-slim.svg" />
  268. </state>
  269. </part>
  270. </spinbox>
  271. <scrollbar>
  272. <part value="ThumbHorz">
  273. <state>
  274. <external source="scrollbar-horizontal.svg" />
  275. </state>
  276. </part>
  277. <part value="ThumbVert">
  278. <state>
  279. <external source="scrollbar-vertical.svg" />
  280. </state>
  281. </part>
  282. <part value="ButtonUp">
  283. </part>
  284. <part value="ButtonDown">
  285. </part>
  286. <part value="ButtonLeft">
  287. </part>
  288. <part value="ButtonRight">
  289. </part>
  290. <part value="TrackHorzLeft">
  291. <state>
  292. <rect stroke="#8e8e93" fill="#ffffff" stroke-width="0" />
  293. </state>
  294. </part>
  295. <part value="TrackHorzRight">
  296. <state>
  297. <rect stroke="#8e8e93" fill="#ffffff" stroke-width="0" />
  298. </state>
  299. </part>
  300. <part value="TrackVertUpper">
  301. <state>
  302. <rect stroke="#8e8e93" fill="#ffffff" stroke-width="0" />
  303. </state>
  304. </part>
  305. <part value="TrackVertLower">
  306. <state>
  307. <rect stroke="#8e8e93" fill="#ffffff" stroke-width="0" />
  308. </state>
  309. </part>
  310. </scrollbar>
  311. <slider>
  312. <part value="Button">
  313. <state enabled="true">
  314. <image source="slider-button.svg" />
  315. </state>
  316. <state enabled="false">
  317. <image source="slider-button-disabled.svg" />
  318. </state>
  319. </part>
  320. <part value="TrackHorzLeft">
  321. <state enabled="true">
  322. <line stroke="#007AFF" stroke-width="6" x1="0.0" y1="0.5" x2="1.0" y2="0.5"/>
  323. </state>
  324. <state enabled="false">
  325. <line stroke="#8e8e93" stroke-width="6" x1="0.0" y1="0.5" x2="1.0" y2="0.5"/>
  326. </state>
  327. </part>
  328. <part value="TrackHorzRight">
  329. <state>
  330. <line stroke="#8e8e93" stroke-width="6" x1="0.0" y1="0.5" x2="1.0" y2="0.5"/>
  331. </state>
  332. </part>
  333. <part value="TrackVertUpper">
  334. <state enabled="true">
  335. <line stroke="#007AFF" stroke-width="6" x1="0.5" y1="0.0" x2="0.5" y2="1.0"/>
  336. </state>
  337. <state enabled="false">
  338. <line stroke="#8e8e93" stroke-width="6" x1="0.5" y1="0.0" x2="0.5" y2="1.0"/>
  339. </state>
  340. </part>
  341. <part value="TrackVertLower">
  342. <state>
  343. <line stroke="#8e8e93" stroke-width="6" x1="0.5" y1="0.0" x2="0.5" y2="1.0"/>
  344. </state>
  345. </part>
  346. </slider>
  347. <fixedline>
  348. <part value="SeparatorHorz">
  349. <state>
  350. <line stroke="#007AFF" fill="#007AFF" stroke-width="2" x1="0.0" y1="0.5" x2="1.0" y2="0.5"/>
  351. </state>
  352. </part>
  353. <part value="SeparatorVert">
  354. <state>
  355. <line stroke="#007AFF" fill="#007AFF" stroke-width="2" x1="0.5" y1="0.0" x2="0.5" y2="1.0"/>
  356. </state>
  357. </part>
  358. </fixedline>
  359. <progress>
  360. <part value="Entire">
  361. <state>
  362. <rect stroke="#007AFF" fill="#007AFF" stroke-width="1" rx="7" ry="7"/>
  363. </state>
  364. </part>
  365. </progress>
  366. <tabitem>
  367. <part value="Entire" margin-width="8" height="32">
  368. <state selected="false" extra="first">
  369. <external source="tabitem-first.svg" />
  370. </state>
  371. <state selected="false" extra="middle">
  372. <external source="tabitem-middle.svg" />
  373. </state>
  374. <state selected="false" extra="last">
  375. <external source="tabitem-last.svg" />
  376. </state>
  377. <state selected="true" extra="first">
  378. <external source="tabitem-first-selected.svg" />
  379. </state>
  380. <state selected="true" extra="middle">
  381. <external source="tabitem-middle-selected.svg" />
  382. </state>
  383. <state selected="true" extra="last">
  384. <external source="tabitem-last-selected.svg" />
  385. </state>
  386. </part>
  387. </tabitem>
  388. <tabheader>
  389. <part value="Entire">
  390. <state>
  391. <rect stroke="#FFFFFF" fill="#FFFFFF" stroke-width="1" rx="1" ry="1"/>
  392. </state>
  393. </part>
  394. </tabheader>
  395. <tabpane>
  396. <part value="Entire">
  397. <state>
  398. <rect stroke="#FFFFFF" fill="#FFFFFF" stroke-width="1" rx="1" ry="1"/>
  399. </state>
  400. </part>
  401. </tabpane>
  402. <tabbody>
  403. <part value="Entire">
  404. <state>
  405. <rect stroke="#f4f5f5" fill="#FFFFFF" stroke-width="1" rx="1" ry="1"/>
  406. </state>
  407. </part>
  408. </tabbody>
  409. <windowbackground>
  410. <part value="BackgroundWindow">
  411. <state>
  412. <rect stroke="#f4f5f5" fill="#FFFFFF" stroke-width="1" rx="1" ry="1"/>
  413. </state>
  414. </part>
  415. <part value="BackgroundDialog">
  416. <state>
  417. <rect stroke="#f4f5f5" fill="#FFFFFF" stroke-width="1" rx="1" ry="1"/>
  418. </state>
  419. </part>
  420. </windowbackground>
  421. <frame>
  422. <part value="Border">
  423. <state>
  424. <rect stroke="#FFFFFF" fill="#FFFFFF" stroke-width="1" rx="1" ry="1"/>
  425. </state>
  426. </part>
  427. </frame>
  428. <toolbar>
  429. <part value="DrawBackgroundHorz">
  430. <state>
  431. <rect stroke="#FFFFFF" fill="#FFFFFF" stroke-width="1" rx="1" ry="1"/>
  432. </state>
  433. </part>
  434. <part value="DrawBackgroundVert">
  435. <state>
  436. <rect stroke="#FFFFFF" fill="#FFFFFF" stroke-width="1" rx="1" ry="1"/>
  437. </state>
  438. </part>
  439. <part value="ThumbHorz">
  440. <state/> <!-- Intentional empty - don't draw anything -->
  441. </part>
  442. <part value="ThumbVert">
  443. <state/> <!-- Intentional empty - don't draw anything -->
  444. </part>
  445. <part value="SeparatorVert">
  446. <state>
  447. <line stroke="#007AFF" fill="#007AFF" stroke-width="2" x1="0.5" y1="0.0" x2="0.5" y2="1.0"/>
  448. </state>
  449. </part>
  450. <part value="SeparatorHorz">
  451. <state>
  452. <line stroke="#007AFF" fill="#007AFF" stroke-width="2" x1="0.0" y1="0.5" x2="1.0" y2="0.5"/>
  453. </state>
  454. </part>
  455. <part value="Button">
  456. <state enabled="true" button-value="true">
  457. <rect stroke="#c0c0c0" fill="#c0c0c0" stroke-width="1" rx="4" ry="4"/>
  458. </state>
  459. <state enabled="true" button-value="false">
  460. <rect stroke="#f4f5f5" fill="#f4f5f5" stroke-width="1" rx="4" ry="4"/>
  461. </state>
  462. <state enabled="false">
  463. <rect stroke="#007AFF" fill="#00FF00" stroke-width="1" rx="4" ry="4"/>
  464. </state>
  465. </part>
  466. </toolbar>
  467. <listnode>
  468. </listnode>
  469. <listnet>
  470. </listnet>
  471. <listheader>
  472. <part value="Button">
  473. <state>
  474. <rect stroke="#8e8e93" fill="#f4f5f5" stroke-width="1" rx="1" ry="1"/>
  475. </state>
  476. </part>
  477. <part value="Arrow">
  478. <state extra="up">
  479. <image source="arrow-up.svg"/>
  480. </state>
  481. <state extra="down">
  482. <image source="arrow-down.svg"/>
  483. </state>
  484. </part>
  485. </listheader>
  486. <menubar>
  487. </menubar>
  488. <menupopup>
  489. </menupopup>
  490. <tooltip>
  491. </tooltip>
  492. </widgets>