metacity-theme-3.xml 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. <?xml version="1.0"?>
  2. <metacity_theme>
  3. <info>
  4. <name>oomox-thicc</name>
  5. <author>nana-4</author>
  6. <copyright>GPL</copyright>
  7. <date>2018</date>
  8. <description>oomox-thicc Metacity theme</description>
  9. </info>
  10. <!-- meaningful constants -->
  11. <constant name="C_titlebar" value="gtk:custom(wm_bg,gtk:bg[NORMAL])"/>
  12. <constant name="C_highlight" value="gtk:custom(wm_highlight,gtk:base[NORMAL])"/>
  13. <constant name="C_title_focused" value="gtk:custom(wm_title,gtk:fg[NORMAL])"/>
  14. <constant name="C_title_unfocused" value="gtk:custom(wm_unfocused_title,gtk:fg[INSENSITIVE])"/>
  15. <!-- geometries -->
  16. <frame_geometry name="normal" title_scale="medium" rounded_top_left="2" rounded_top_right="2">
  17. <distance name="left_width" value="1"/>
  18. <distance name="right_width" value="1"/>
  19. <distance name="bottom_height" value="1"/>
  20. <distance name="left_titlebar_edge" value="0"/>
  21. <distance name="right_titlebar_edge" value="0"/>
  22. <distance name="title_vertical_pad" value="13"/>
  23. <border name="title_border" left="10" right="10" top="0" bottom="0"/>
  24. <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  25. <aspect_ratio name="button" value="1"/>
  26. </frame_geometry>
  27. <frame_geometry name="max" rounded_top_left="false" rounded_top_right="false" parent="normal">
  28. <distance name="left_width" value="0"/>
  29. <distance name="right_width" value="0"/>
  30. <distance name="bottom_height" value="0"/>
  31. </frame_geometry>
  32. <frame_geometry name="tiled_left" parent="max">
  33. <distance name="right_width" value="0"/>
  34. </frame_geometry>
  35. <frame_geometry name="tiled_right" parent="max">
  36. <distance name="left_width" value="0"/>
  37. </frame_geometry>
  38. <frame_geometry name="nobuttons" hide_buttons="true" parent="normal">
  39. </frame_geometry>
  40. <frame_geometry name="modal" parent="normal">
  41. </frame_geometry>
  42. <frame_geometry name="small" title_scale="small" parent="normal">
  43. <distance name="title_vertical_pad" value="8"/>
  44. </frame_geometry>
  45. <frame_geometry name="border" has_title="false" rounded_top_left="false" rounded_top_right="false" parent="normal">
  46. <distance name="left_width" value="1"/>
  47. <distance name="right_width" value="1"/>
  48. <distance name="bottom_height" value="1"/>
  49. <distance name="title_vertical_pad" value="1"/>
  50. <border name="title_border" left="10" right="10" top="0" bottom="0"/>
  51. <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  52. </frame_geometry>
  53. <frame_geometry name="borderless" has_title="false" rounded_top_left="false" rounded_top_right="false" parent="normal">
  54. <distance name="left_width" value="0"/>
  55. <distance name="right_width" value="0"/>
  56. <distance name="bottom_height" value="0"/>
  57. <distance name="title_vertical_pad" value="0"/>
  58. <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  59. <border name="title_border" left="0" right="0" top="0" bottom="0"/>
  60. </frame_geometry>
  61. <frame_geometry name="attached" hide_buttons="true" rounded_bottom_left="2" rounded_bottom_right="2" parent="normal">
  62. <distance name="title_vertical_pad" value="4"/>
  63. </frame_geometry>
  64. <!-- drawing operations -->
  65. <!-- title -->
  66. <draw_ops name="title_focused">
  67. <title version="< 3.1"
  68. x="(0 `max` ((width - title_width) / 2))"
  69. y="(0 `max` ((height - title_height) / 2))"
  70. color="C_title_focused"/>
  71. <title version=">= 3.1"
  72. x="(0 `max` ((frame_x_center - title_width / 2) `min` (width - title_width)))"
  73. y="(0 `max` ((height - title_height) / 2))"
  74. ellipsize_width="width"
  75. color="C_title_focused"/>
  76. </draw_ops>
  77. <draw_ops name="title_unfocused">
  78. <title version="< 3.1"
  79. x="(0 `max` ((width - title_width) / 2))"
  80. y="(0 `max` ((height - title_height) / 2))"
  81. color="C_title_unfocused"/>
  82. <title version=">= 3.1"
  83. x="(0 `max` ((frame_x_center - title_width / 2) `min` (width - title_width)))"
  84. y="(0 `max` ((height - title_height) / 2))"
  85. ellipsize_width="width"
  86. color="C_title_unfocused"/>
  87. </draw_ops>
  88. <!-- window decorations -->
  89. <draw_ops name="entire_background_focused">
  90. <rectangle color="C_titlebar" x="0" y="0" width="width" height="height" filled="true"/>
  91. </draw_ops>
  92. <draw_ops name="entire_background_unfocused">
  93. <include name="entire_background_focused"/>
  94. </draw_ops>
  95. <draw_ops name="highlight">
  96. <line color="C_highlight" x1="2" y1="0" x2="width - 3" y2="0"/>
  97. <arc color="C_highlight" x="0 - 1" y="0" width="5" height="5" start_angle="270" extent_angle="90"/>
  98. <arc color="C_highlight" x="width - 5" y="0" width="5" height="5" start_angle="0" extent_angle="90"/>
  99. </draw_ops>
  100. <draw_ops name="titlebar_focused">
  101. <include name="entire_background_focused"/>
  102. <include name="highlight"/>
  103. </draw_ops>
  104. <draw_ops name="titlebar_unfocused">
  105. <include name="entire_background_unfocused"/>
  106. <include name="highlight"/>
  107. </draw_ops>
  108. <!-- button icons -->
  109. <!-- close -->
  110. <draw_ops name="close_focused">
  111. <image filename="assets/close.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_focused"/>
  112. </draw_ops>
  113. <draw_ops name="close_focused_prelight">
  114. <image filename="assets/close.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1" colorize="C_title_focused"/>
  115. </draw_ops>
  116. <draw_ops name="close_focused_pressed">
  117. <include name="close_focused_prelight"/>
  118. </draw_ops>
  119. <draw_ops name="close_unfocused">
  120. <image filename="assets/close.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_unfocused"/>
  121. </draw_ops>
  122. <draw_ops name="close_unfocused_prelight">
  123. <image filename="assets/close.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1" colorize="C_title_unfocused"/>
  124. </draw_ops>
  125. <draw_ops name="close_unfocused_pressed">
  126. <include name="close_unfocused_prelight"/>
  127. </draw_ops>
  128. <!-- maximize -->
  129. <draw_ops name="maximize_focused">
  130. <image filename="assets/maximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_focused"/>
  131. </draw_ops>
  132. <draw_ops name="maximize_focused_prelight">
  133. <image filename="assets/maximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1" colorize="C_title_focused"/>
  134. </draw_ops>
  135. <draw_ops name="maximize_focused_pressed">
  136. <include name="maximize_focused_prelight"/>
  137. </draw_ops>
  138. <draw_ops name="maximize_unfocused">
  139. <image filename="assets/maximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_unfocused"/>
  140. </draw_ops>
  141. <draw_ops name="maximize_unfocused_prelight">
  142. <image filename="assets/maximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1" colorize="C_title_unfocused"/>
  143. </draw_ops>
  144. <draw_ops name="maximize_unfocused_pressed">
  145. <include name="maximize_unfocused_prelight"/>
  146. </draw_ops>
  147. <!-- unmaximize -->
  148. <draw_ops name="unmaximize_focused">
  149. <image filename="assets/unmaximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_focused"/>
  150. </draw_ops>
  151. <draw_ops name="unmaximize_focused_prelight">
  152. <image filename="assets/unmaximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1" colorize="C_title_focused"/>
  153. </draw_ops>
  154. <draw_ops name="unmaximize_focused_pressed">
  155. <include name="unmaximize_focused_prelight"/>
  156. </draw_ops>
  157. <draw_ops name="unmaximize_unfocused">
  158. <image filename="assets/unmaximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_unfocused"/>
  159. </draw_ops>
  160. <draw_ops name="unmaximize_unfocused_prelight">
  161. <image filename="assets/unmaximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1" colorize="C_title_unfocused"/>
  162. </draw_ops>
  163. <draw_ops name="unmaximize_unfocused_pressed">
  164. <include name="unmaximize_unfocused_prelight"/>
  165. </draw_ops>
  166. <!-- minimize -->
  167. <draw_ops name="minimize_focused">
  168. <image filename="assets/minimize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_focused"/>
  169. </draw_ops>
  170. <draw_ops name="minimize_focused_prelight">
  171. <image filename="assets/minimize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1" colorize="C_title_focused"/>
  172. </draw_ops>
  173. <draw_ops name="minimize_focused_pressed">
  174. <include name="minimize_focused_prelight"/>
  175. </draw_ops>
  176. <draw_ops name="minimize_unfocused">
  177. <image filename="assets/minimize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_unfocused"/>
  178. </draw_ops>
  179. <draw_ops name="minimize_unfocused_prelight">
  180. <image filename="assets/minimize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1" colorize="C_title_unfocused"/>
  181. </draw_ops>
  182. <draw_ops name="minimize_unfocused_pressed">
  183. <include name="minimize_unfocused_prelight"/>
  184. </draw_ops>
  185. <!-- menu -->
  186. <draw_ops name="menu_focused">
  187. <image filename="assets/menu.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_focused"/>
  188. </draw_ops>
  189. <draw_ops name="menu_focused_prelight">
  190. <image filename="assets/menu.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1" colorize="C_title_focused"/>
  191. </draw_ops>
  192. <draw_ops name="menu_focused_pressed">
  193. <include name="menu_focused_prelight"/>
  194. </draw_ops>
  195. <draw_ops name="menu_unfocused">
  196. <image filename="assets/menu.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_unfocused"/>
  197. </draw_ops>
  198. <draw_ops name="menu_unfocused_prelight">
  199. <image filename="assets/menu.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1" colorize="C_title_unfocused"/>
  200. </draw_ops>
  201. <draw_ops name="menu_unfocused_pressed">
  202. <include name="menu_unfocused_prelight"/>
  203. </draw_ops>
  204. <!-- shade -->
  205. <draw_ops name="shade_focused">
  206. <image filename="assets/shade.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_focused"/>
  207. </draw_ops>
  208. <draw_ops name="shade_focused_prelight">
  209. <image filename="assets/shade.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1" colorize="C_title_focused"/>
  210. </draw_ops>
  211. <draw_ops name="shade_focused_pressed">
  212. <include name="shade_focused_prelight"/>
  213. </draw_ops>
  214. <draw_ops name="shade_unfocused">
  215. <image filename="assets/shade.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_unfocused"/>
  216. </draw_ops>
  217. <draw_ops name="shade_unfocused_prelight">
  218. <image filename="assets/shade.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1" colorize="C_title_unfocused"/>
  219. </draw_ops>
  220. <draw_ops name="shade_unfocused_pressed">
  221. <include name="shade_unfocused_prelight"/>
  222. </draw_ops>
  223. <!-- unshade -->
  224. <draw_ops name="unshade_focused">
  225. <image filename="assets/unshade.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_focused"/>
  226. </draw_ops>
  227. <draw_ops name="unshade_focused_prelight">
  228. <image filename="assets/unshade.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1" colorize="C_title_focused"/>
  229. </draw_ops>
  230. <draw_ops name="unshade_focused_pressed">
  231. <include name="unshade_focused_prelight"/>
  232. </draw_ops>
  233. <draw_ops name="unshade_unfocused">
  234. <image filename="assets/unshade.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_unfocused"/>
  235. </draw_ops>
  236. <draw_ops name="unshade_unfocused_prelight">
  237. <image filename="assets/unshade.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1" colorize="C_title_unfocused"/>
  238. </draw_ops>
  239. <draw_ops name="unshade_unfocused_pressed">
  240. <include name="unshade_unfocused_prelight"/>
  241. </draw_ops>
  242. <!-- appmenu -->
  243. <constant name="D_appmenu_icon_size" value="16"/>
  244. <draw_ops name="appmenu_icon_focused">
  245. <icon
  246. x="(width - D_appmenu_icon_size) / 2" y="(height - D_appmenu_icon_size) / 2"
  247. width="D_appmenu_icon_size" height="D_appmenu_icon_size"/>
  248. </draw_ops>
  249. <draw_ops name="appmenu_focused">
  250. <include name="appmenu_icon_focused"/>
  251. </draw_ops>
  252. <draw_ops name="appmenu_focused_prelight">
  253. <include name="appmenu_icon_focused"/>
  254. </draw_ops>
  255. <draw_ops name="appmenu_focused_pressed">
  256. <include name="appmenu_icon_focused"/>
  257. </draw_ops>
  258. <draw_ops name="appmenu_icon_unfocused">
  259. <icon
  260. x="(width - D_appmenu_icon_size) / 2" y="(height - D_appmenu_icon_size) / 2"
  261. width="D_appmenu_icon_size" height="D_appmenu_icon_size"
  262. alpha="0.7"/>
  263. </draw_ops>
  264. <draw_ops name="appmenu_unfocused">
  265. <include name="appmenu_icon_unfocused"/>
  266. </draw_ops>
  267. <draw_ops name="appmenu_unfocused_prelight">
  268. <include name="appmenu_icon_unfocused"/>
  269. </draw_ops>
  270. <draw_ops name="appmenu_unfocused_pressed">
  271. <include name="appmenu_icon_unfocused"/>
  272. </draw_ops>
  273. <!-- button backgrounds -->
  274. <draw_ops name="button_focused">
  275. </draw_ops>
  276. <draw_ops name="button_focused_prelight">
  277. <image filename="assets/button.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.12" colorize="C_title_focused"/>
  278. </draw_ops>
  279. <draw_ops name="button_focused_pressed">
  280. <image filename="assets/button.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.24" colorize="C_title_focused"/>
  281. </draw_ops>
  282. <draw_ops name="button_unfocused">
  283. </draw_ops>
  284. <draw_ops name="button_unfocused_prelight">
  285. <image filename="assets/button.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.12" colorize="C_title_unfocused"/>
  286. </draw_ops>
  287. <draw_ops name="button_unfocused_pressed">
  288. <image filename="assets/button.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.24" colorize="C_title_unfocused"/>
  289. </draw_ops>
  290. <!-- frame styles -->
  291. <frame_style name="normal_focused" geometry="normal">
  292. <piece position="entire_background" draw_ops="entire_background_focused"/>
  293. <piece position="titlebar" draw_ops="titlebar_focused"/>
  294. <piece position="title" draw_ops="title_focused"/>
  295. <button function="close" state="normal" draw_ops="close_focused"/>
  296. <button function="close" state="prelight" draw_ops="close_focused_prelight"/>
  297. <button function="close" state="pressed" draw_ops="close_focused_pressed"/>
  298. <button function="maximize" state="normal" draw_ops="maximize_focused"/>
  299. <button function="maximize" state="prelight" draw_ops="maximize_focused_prelight"/>
  300. <button function="maximize" state="pressed" draw_ops="maximize_focused_pressed"/>
  301. <button function="minimize" state="normal" draw_ops="minimize_focused"/>
  302. <button function="minimize" state="prelight" draw_ops="minimize_focused_prelight"/>
  303. <button function="minimize" state="pressed" draw_ops="minimize_focused_pressed"/>
  304. <button function="menu" state="normal" draw_ops="menu_focused"/>
  305. <button function="menu" state="prelight" draw_ops="menu_focused_prelight"/>
  306. <button function="menu" state="pressed" draw_ops="menu_focused_pressed"/>
  307. <button version=">= 3.5" function="appmenu" state="normal" draw_ops="appmenu_focused"/>
  308. <button version=">= 3.5" function="appmenu" state="prelight" draw_ops="appmenu_focused_prelight"/>
  309. <button version=">= 3.5" function="appmenu" state="pressed" draw_ops="appmenu_focused_pressed"/>
  310. <button function="shade" state="normal" draw_ops="shade_focused"/>
  311. <button function="shade" state="prelight" draw_ops="shade_focused_prelight"/>
  312. <button function="shade" state="pressed" draw_ops="shade_focused_pressed"/>
  313. <button function="unshade" state="normal" draw_ops="unshade_focused"/>
  314. <button function="unshade" state="prelight" draw_ops="unshade_focused_prelight"/>
  315. <button function="unshade" state="pressed" draw_ops="unshade_focused_pressed"/>
  316. <button function="left_middle_background" state="normal" draw_ops="button_focused"/>
  317. <button function="left_middle_background" state="prelight" draw_ops="button_focused_prelight"/>
  318. <button function="left_middle_background" state="pressed" draw_ops="button_focused_pressed"/>
  319. <button function="right_middle_background" state="normal" draw_ops="button_focused"/>
  320. <button function="right_middle_background" state="prelight" draw_ops="button_focused_prelight"/>
  321. <button function="right_middle_background" state="pressed" draw_ops="button_focused_pressed"/>
  322. <button function="above" state="normal"><draw_ops></draw_ops></button>
  323. <button function="above" state="pressed"><draw_ops></draw_ops></button>
  324. <button function="unabove" state="normal"><draw_ops></draw_ops></button>
  325. <button function="unabove" state="pressed"><draw_ops></draw_ops></button>
  326. <button function="stick" state="normal"><draw_ops></draw_ops></button>
  327. <button function="stick" state="pressed"><draw_ops></draw_ops></button>
  328. <button function="unstick" state="normal"><draw_ops></draw_ops></button>
  329. <button function="unstick" state="pressed"><draw_ops></draw_ops></button>
  330. </frame_style>
  331. <frame_style name="normal_unfocused" geometry="normal">
  332. <piece position="entire_background" draw_ops="entire_background_unfocused"/>
  333. <piece position="titlebar" draw_ops="titlebar_unfocused"/>
  334. <piece position="title" draw_ops="title_unfocused"/>
  335. <button function="close" state="normal" draw_ops="close_unfocused"/>
  336. <button function="close" state="prelight" draw_ops="close_unfocused_prelight"/>
  337. <button function="close" state="pressed" draw_ops="close_unfocused_pressed"/>
  338. <button function="maximize" state="normal" draw_ops="maximize_unfocused"/>
  339. <button function="maximize" state="prelight" draw_ops="maximize_unfocused_prelight"/>
  340. <button function="maximize" state="pressed" draw_ops="maximize_unfocused_pressed"/>
  341. <button function="minimize" state="normal" draw_ops="minimize_unfocused"/>
  342. <button function="minimize" state="prelight" draw_ops="minimize_unfocused_prelight"/>
  343. <button function="minimize" state="pressed" draw_ops="minimize_unfocused_pressed"/>
  344. <button function="menu" state="normal" draw_ops="menu_unfocused"/>
  345. <button function="menu" state="prelight" draw_ops="menu_unfocused_prelight"/>
  346. <button function="menu" state="pressed" draw_ops="menu_unfocused_pressed"/>
  347. <button version=">= 3.5" function="appmenu" state="normal" draw_ops="appmenu_unfocused"/>
  348. <button version=">= 3.5" function="appmenu" state="prelight" draw_ops="appmenu_unfocused_prelight"/>
  349. <button version=">= 3.5" function="appmenu" state="pressed" draw_ops="appmenu_unfocused_pressed"/>
  350. <button function="shade" state="normal" draw_ops="shade_unfocused"/>
  351. <button function="shade" state="prelight" draw_ops="shade_unfocused_prelight"/>
  352. <button function="shade" state="pressed" draw_ops="shade_unfocused_pressed"/>
  353. <button function="unshade" state="normal" draw_ops="unshade_unfocused"/>
  354. <button function="unshade" state="prelight" draw_ops="unshade_unfocused_prelight"/>
  355. <button function="unshade" state="pressed" draw_ops="unshade_unfocused_pressed"/>
  356. <button function="left_middle_background" state="normal" draw_ops="button_unfocused"/>
  357. <button function="left_middle_background" state="prelight" draw_ops="button_unfocused_prelight"/>
  358. <button function="left_middle_background" state="pressed" draw_ops="button_unfocused_pressed"/>
  359. <button function="right_middle_background" state="normal" draw_ops="button_unfocused"/>
  360. <button function="right_middle_background" state="prelight" draw_ops="button_unfocused_prelight"/>
  361. <button function="right_middle_background" state="pressed" draw_ops="button_unfocused_pressed"/>
  362. <button function="above" state="normal"><draw_ops></draw_ops></button>
  363. <button function="above" state="pressed"><draw_ops></draw_ops></button>
  364. <button function="unabove" state="normal"><draw_ops></draw_ops></button>
  365. <button function="unabove" state="pressed"><draw_ops></draw_ops></button>
  366. <button function="stick" state="normal"><draw_ops></draw_ops></button>
  367. <button function="stick" state="pressed"><draw_ops></draw_ops></button>
  368. <button function="unstick" state="normal"><draw_ops></draw_ops></button>
  369. <button function="unstick" state="pressed"><draw_ops></draw_ops></button>
  370. </frame_style>
  371. <frame_style name="normal_max_focused" geometry="max" parent="normal_focused">
  372. <piece position="titlebar" draw_ops="entire_background_focused"/>
  373. <button function="maximize" state="normal" draw_ops="unmaximize_focused"/>
  374. <button function="maximize" state="pressed" draw_ops="unmaximize_focused_pressed"/>
  375. <button function="maximize" state="prelight" draw_ops="unmaximize_focused_prelight"/>
  376. </frame_style>
  377. <frame_style name="normal_max_unfocused" geometry="max" parent="normal_unfocused">
  378. <piece position="titlebar" draw_ops="entire_background_unfocused"/>
  379. <button function="maximize" state="normal" draw_ops="unmaximize_unfocused"/>
  380. <button function="maximize" state="pressed" draw_ops="unmaximize_unfocused_pressed"/>
  381. <button function="maximize" state="prelight" draw_ops="unmaximize_unfocused_prelight"/>
  382. </frame_style>
  383. <frame_style name="tiled_left_focused" geometry="tiled_left" parent="normal_focused">
  384. <piece position="titlebar" draw_ops="entire_background_focused"/>
  385. </frame_style>
  386. <frame_style name="tiled_left_unfocused" geometry="tiled_left" parent="normal_unfocused">
  387. <piece position="titlebar" draw_ops="entire_background_unfocused"/>
  388. </frame_style>
  389. <frame_style name="tiled_right_focused" geometry="tiled_right" parent="normal_focused">
  390. <piece position="titlebar" draw_ops="entire_background_focused"/>
  391. </frame_style>
  392. <frame_style name="tiled_right_unfocused" geometry="tiled_right" parent="normal_unfocused">
  393. <piece position="titlebar" draw_ops="entire_background_unfocused"/>
  394. </frame_style>
  395. <frame_style name="dialog_focused" geometry="nobuttons" parent="normal_focused">
  396. </frame_style>
  397. <frame_style name="dialog_unfocused" geometry="nobuttons" parent="normal_unfocused">
  398. </frame_style>
  399. <frame_style name="modal_dialog_focused" geometry="modal" parent="normal_focused">
  400. </frame_style>
  401. <frame_style name="modal_dialog_unfocused" geometry="modal" parent="normal_unfocused">
  402. </frame_style>
  403. <frame_style name="utility_focused" geometry="small" parent="normal_focused">
  404. </frame_style>
  405. <frame_style name="utility_unfocused" geometry="small" parent="normal_unfocused">
  406. </frame_style>
  407. <frame_style name="border_focused" geometry="border" parent="normal_focused">
  408. </frame_style>
  409. <frame_style name="border_unfocused" geometry="border" parent="normal_unfocused">
  410. </frame_style>
  411. <frame_style name="borderless_focused" geometry="borderless" parent="normal_focused">
  412. </frame_style>
  413. <frame_style name="borderless_unfocused" geometry="borderless" parent="normal_unfocused">
  414. </frame_style>
  415. <frame_style name="attached_focused" geometry="attached" parent="modal_dialog_focused">
  416. </frame_style>
  417. <frame_style name="attached_unfocused" geometry="attached" parent="modal_dialog_unfocused">
  418. </frame_style>
  419. <!-- placeholder for unimplementated styles-->
  420. <frame_style name="blank" geometry="normal">
  421. <button function="close" state="normal"><draw_ops></draw_ops></button>
  422. <button function="close" state="pressed"><draw_ops></draw_ops></button>
  423. <button function="maximize" state="normal"><draw_ops></draw_ops></button>
  424. <button function="maximize" state="pressed"><draw_ops></draw_ops></button>
  425. <button function="minimize" state="normal"><draw_ops></draw_ops></button>
  426. <button function="minimize" state="pressed"><draw_ops></draw_ops></button>
  427. <button function="menu" state="normal"><draw_ops></draw_ops></button>
  428. <button function="menu" state="pressed"><draw_ops></draw_ops></button>
  429. <button version=">= 3.5" function="appmenu" state="normal"><draw_ops></draw_ops></button>
  430. <button version=">= 3.5" function="appmenu" state="pressed"><draw_ops></draw_ops></button>
  431. <button function="shade" state="normal"><draw_ops></draw_ops></button>
  432. <button function="shade" state="pressed"><draw_ops></draw_ops></button>
  433. <button function="unshade" state="normal"><draw_ops></draw_ops></button>
  434. <button function="unshade" state="pressed"><draw_ops></draw_ops></button>
  435. <button function="above" state="normal"><draw_ops></draw_ops></button>
  436. <button function="above" state="pressed"><draw_ops></draw_ops></button>
  437. <button function="unabove" state="normal"><draw_ops></draw_ops></button>
  438. <button function="unabove" state="pressed"><draw_ops></draw_ops></button>
  439. <button function="stick" state="normal"><draw_ops></draw_ops></button>
  440. <button function="stick" state="pressed"><draw_ops></draw_ops></button>
  441. <button function="unstick" state="normal"><draw_ops></draw_ops></button>
  442. <button function="unstick" state="pressed"><draw_ops></draw_ops></button>
  443. </frame_style>
  444. <!-- frame style sets -->
  445. <frame_style_set name="normal_style_set">
  446. <frame focus="yes" state="normal" resize="both" style="normal_focused"/>
  447. <frame focus="no" state="normal" resize="both" style="normal_unfocused"/>
  448. <frame focus="yes" state="maximized" style="normal_max_focused"/>
  449. <frame focus="no" state="maximized" style="normal_max_unfocused"/>
  450. <frame focus="yes" state="shaded" style="normal_focused"/>
  451. <frame focus="no" state="shaded" style="normal_unfocused"/>
  452. <frame focus="yes" state="maximized_and_shaded" style="normal_max_focused"/>
  453. <frame focus="no" state="maximized_and_shaded" style="normal_max_unfocused"/>
  454. <frame version=">= 3.3" focus="yes" state="tiled_left" style="tiled_left_focused"/>
  455. <frame version=">= 3.3" focus="no" state="tiled_left" style="tiled_left_unfocused"/>
  456. <frame version=">= 3.3" focus="yes" state="tiled_right" style="tiled_right_focused"/>
  457. <frame version=">= 3.3" focus="no" state="tiled_right" style="tiled_right_unfocused"/>
  458. <frame version=">= 3.3" focus="yes" state="tiled_left_and_shaded" style="tiled_left_focused"/>
  459. <frame version=">= 3.3" focus="no" state="tiled_left_and_shaded" style="tiled_left_unfocused"/>
  460. <frame version=">= 3.3" focus="yes" state="tiled_right_and_shaded" style="tiled_right_focused"/>
  461. <frame version=">= 3.3" focus="no" state="tiled_right_and_shaded" style="tiled_right_unfocused"/>
  462. </frame_style_set>
  463. <frame_style_set name="dialog_style_set">
  464. <frame focus="yes" state="normal" resize="both" style="dialog_focused"/>
  465. <frame focus="no" state="normal" resize="both" style="dialog_unfocused"/>
  466. <frame focus="yes" state="maximized" style="blank"/>
  467. <frame focus="no" state="maximized" style="blank"/>
  468. <frame focus="yes" state="shaded" style="dialog_focused"/>
  469. <frame focus="no" state="shaded" style="dialog_unfocused"/>
  470. <frame focus="yes" state="maximized_and_shaded" style="blank"/>
  471. <frame focus="no" state="maximized_and_shaded" style="blank"/>
  472. </frame_style_set>
  473. <frame_style_set name="modal_dialog_style_set">
  474. <frame focus="yes" state="normal" resize="both" style="modal_dialog_focused"/>
  475. <frame focus="no" state="normal" resize="both" style="modal_dialog_unfocused"/>
  476. <frame focus="yes" state="maximized" style="blank"/>
  477. <frame focus="no" state="maximized" style="blank"/>
  478. <frame focus="yes" state="shaded" style="modal_dialog_focused"/>
  479. <frame focus="no" state="shaded" style="modal_dialog_unfocused"/>
  480. <frame focus="yes" state="maximized_and_shaded" style="blank"/>
  481. <frame focus="no" state="maximized_and_shaded" style="blank"/>
  482. </frame_style_set>
  483. <frame_style_set name="utility_style_set">
  484. <frame focus="yes" state="normal" resize="both" style="utility_focused"/>
  485. <frame focus="no" state="normal" resize="both" style="utility_unfocused"/>
  486. <frame focus="yes" state="maximized" style="blank"/>
  487. <frame focus="no" state="maximized" style="blank"/>
  488. <frame focus="yes" state="shaded" style="utility_focused"/>
  489. <frame focus="no" state="shaded" style="utility_unfocused"/>
  490. <frame focus="yes" state="maximized_and_shaded" style="blank"/>
  491. <frame focus="no" state="maximized_and_shaded" style="blank"/>
  492. </frame_style_set>
  493. <frame_style_set name="border_style_set">
  494. <frame focus="yes" state="normal" resize="both" style="border_focused"/>
  495. <frame focus="no" state="normal" resize="both" style="border_unfocused"/>
  496. <frame focus="yes" state="maximized" style="borderless_focused"/>
  497. <frame focus="no" state="maximized" style="borderless_unfocused"/>
  498. <frame focus="yes" state="shaded" style="blank"/>
  499. <frame focus="no" state="shaded" style="blank"/>
  500. <frame focus="yes" state="maximized_and_shaded" style="blank"/>
  501. <frame focus="no" state="maximized_and_shaded" style="blank"/>
  502. </frame_style_set>
  503. <frame_style_set name="attached_style_set">
  504. <frame focus="yes" state="normal" resize="both" style="attached_focused"/>
  505. <frame focus="no" state="normal" resize="both" style="attached_unfocused"/>
  506. <frame focus="yes" state="maximized" style="blank"/>
  507. <frame focus="no" state="maximized" style="blank"/>
  508. <frame focus="yes" state="shaded" style="blank"/>
  509. <frame focus="no" state="shaded" style="blank"/>
  510. <frame focus="yes" state="maximized_and_shaded" style="blank"/>
  511. <frame focus="no" state="maximized_and_shaded" style="blank"/>
  512. </frame_style_set>
  513. <!-- windows -->
  514. <window type="normal" style_set="normal_style_set"/>
  515. <window type="dialog" style_set="dialog_style_set"/>
  516. <window type="modal_dialog" style_set="modal_dialog_style_set"/>
  517. <window type="menu" style_set="utility_style_set"/>
  518. <window type="utility" style_set="utility_style_set"/>
  519. <window type="border" style_set="border_style_set"/>
  520. <window version=">= 3.2" type="attached" style_set="attached_style_set"/>
  521. </metacity_theme>