titlebar.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <!-- =======================================================================================================
  2. <Wasabi:TitleBar /> implmentation
  3. Available parameters :
  4. - All params for Group
  5. - All params for Text
  6. Required objects : (these objects are manipulated by the script, so overriding with script content inheritance
  7. will require you to have these objects. Otherwise, you should be fine)
  8. - Group id="wasabi.titlebar.streak.left"
  9. - Group id="wasabi.titlebar.streak.right"
  10. - Layer id="mousetrap" (this object shoud cover the content of the group)
  11. ======================================================================================================== -->
  12. <groupdef id="wasabi.titlebar" xuitag="Wasabi:TitleBar" embed_xui="window.titlebar.title">
  13. <group
  14. id="wasabi.titlebar.streak"
  15. instanceid="wasabi.titlebar.streak.left"
  16. x="0" y="3"
  17. w="95" h="9"
  18. />
  19. <sendparams group="wasabi.titlebar.streak.left" target="titlebar.center.active" w="-20"/>
  20. <sendparams group="wasabi.titlebar.streak.left" target="titlebar.center.inactive" w="-20"/>
  21. <sendparams group="wasabi.titlebar.streak.left" target="titlebar.right.active" x="-10"/>
  22. <sendparams group="wasabi.titlebar.streak.left" target="titlebar.right.inactive" x="-10"/>
  23. <text
  24. id="window.titlebar.title"
  25. x="100" y="1"
  26. w="50" h="15"
  27. default=":componentname"
  28. font="Arial" fontsize="14"
  29. color="titlebar.text.color"
  30. shadowcolor="0,0,0"
  31. shadowx="1" shadowy="1"
  32. bold="1"
  33. inactiveAlpha="128"
  34. forceuppercase="1"
  35. />
  36. <layer
  37. id="window.titlebar.title.overlay"
  38. x="100" y="4"
  39. w="1" h="11"
  40. image="wasabi.titlebar.overlay"
  41. />
  42. <group
  43. id="wasabi.titlebar.streak"
  44. instanceid="wasabi.titlebar.streak.right"
  45. x="155" y="3"
  46. w="-155" relatw="1" h="9"
  47. sysregion="1"
  48. />
  49. <sendparams group="wasabi.titlebar.streak.right" target="titlebar.center.active" x="10" w="-20"/>
  50. <sendparams group="wasabi.titlebar.streak.right" target="titlebar.center.inactive" x="10" w="-20"/>
  51. <sendparams group="wasabi.titlebar.streak.right" target="titlebar.left.active" x="0"/>
  52. <sendparams group="wasabi.titlebar.streak.right" target="titlebar.left.inactive" x="0"/>
  53. <layer id="mousetrap" x="0" y="0" w="0" h="0" relatw="1" relath="1" move="1"/>
  54. <script id="titlebar" file="scripts/titlebar.maki" param="wasabi.titlebar.streak.left;window.titlebar.title;wasabi.titlebar.streak.right" />
  55. </groupdef>
  56. <!-- =======================================================================================================
  57. This implements a title streak bar. Dependencies are limited to the wasabi.titlebar group, in other words, if you remove
  58. the sendparams in the above group, none of these objects are required.
  59. ======================================================================================================== -->
  60. <groupdef id="wasabi.titlebar.streak">
  61. <layer
  62. id="titlebar.left.active"
  63. x="0" y="1"
  64. image="wasabi.titlebar.left.active"
  65. inactiveAlpha="0"
  66. />
  67. <layer
  68. id="titlebar.center.active"
  69. x="10" y="1" w="-10"
  70. relatw="1"
  71. image="wasabi.titlebar.center.active"
  72. inactiveAlpha="0"
  73. />
  74. <layer
  75. id="titlebar.right.active"
  76. x="-10" y="1"
  77. relatx="1"
  78. image="wasabi.titlebar.right.active"
  79. inactiveAlpha="0"
  80. />
  81. <layer
  82. id="titlebar.left.inactive"
  83. x="0" y="1"
  84. image="wasabi.titlebar.left.inactive"
  85. activeAlpha="0"
  86. />
  87. <layer
  88. id="titlebar.center.inactive"
  89. x="10" y="1" w="-10"
  90. relatw="1"
  91. image="wasabi.titlebar.center.inactive"
  92. activeAlpha="0"
  93. />
  94. <layer
  95. id="titlebar.right.inactive"
  96. x="-10" relatx="1" y="1"
  97. image="wasabi.titlebar.right.inactive"
  98. activeAlpha="0"
  99. />
  100. </groupdef>