metacity-theme-3.xml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812
  1. <?xml version="1.0"?>
  2. <metacity_theme>
  3. <info>
  4. <name>Kanagawa Dark</name>
  5. <author>vinceliucie | mod: f.korpsvart</author>
  6. <copyright>GPL</copyright>
  7. <date>2023</date>
  8. <description>Kanagawa Dark Metacity theme</description>
  9. </info>
  10. <!-- meaningful constants -->
  11. <constant name="C_titlebar_focused" value="gtk:custom(wm_bg,gtk:bg[NORMAL])" />
  12. <constant name="C_titlebar_unfocused" value="gtk:custom(wm_unfocused_bg,gtk:bg[NORMAL])" />
  13. <constant name="C_highlight_focused" value="gtk:custom(wm_highlight,gtk:base[NORMAL])" />
  14. <constant name="C_highlight_unfocused" value="gtk:custom(wm_highlight,gtk:base[NORMAL])" />
  15. <constant name="C_title_focused" value="gtk:custom(wm_title,gtk:fg[NORMAL])" />
  16. <constant name="C_title_unfocused" value="gtk:custom(wm_unfocused_title,gtk:fg[INSENSITIVE])" />
  17. <constant name="C_button_close_icon" value="gtk:custom(wm_button_close_icon,gtk:base[NORMAL])" />
  18. <constant name="C_button_close_bg_hover"
  19. value="gtk:custom(wm_button_close_hover_bg,gtk:fg[INSENSITIVE])" />
  20. <constant name="C_button_close_bg_active"
  21. value="gtk:custom(wm_button_close_active_bg,gtk:fg[INSENSITIVE])" />
  22. <!-- geometries -->
  23. <frame_geometry name="normal" title_scale="medium" rounded_top_left="12" rounded_top_right="12">
  24. <distance name="left_width" value="0" />
  25. <distance name="right_width" value="0" />
  26. <distance name="bottom_height" value="0" />
  27. <distance name="left_titlebar_edge" value="0" />
  28. <distance name="right_titlebar_edge" value="0" />
  29. <distance name="title_vertical_pad" value="18" />
  30. <border name="title_border" left="10" right="10" top="0" bottom="0" />
  31. <border name="button_border" left="0" right="0" top="0" bottom="0" />
  32. <aspect_ratio name="button" value="1" />
  33. </frame_geometry>
  34. <frame_geometry name="max" rounded_top_left="false" rounded_top_right="false" parent="normal">
  35. <distance name="left_width" value="0" />
  36. <distance name="right_width" value="0" />
  37. <distance name="bottom_height" value="0" />
  38. </frame_geometry>
  39. <frame_geometry name="tiled_left" parent="max">
  40. <distance name="right_width" value="0" />
  41. </frame_geometry>
  42. <frame_geometry name="tiled_right" parent="max">
  43. <distance name="left_width" value="0" />
  44. </frame_geometry>
  45. <frame_geometry name="nobuttons" hide_buttons="true" parent="normal">
  46. </frame_geometry>
  47. <frame_geometry name="modal" parent="normal">
  48. </frame_geometry>
  49. <frame_geometry name="small" title_scale="small" parent="normal">
  50. <distance name="title_vertical_pad" value="8" />
  51. </frame_geometry>
  52. <frame_geometry name="border" has_title="false" rounded_top_left="false"
  53. rounded_top_right="false"
  54. parent="normal">
  55. <distance name="left_width" value="0" />
  56. <distance name="right_width" value="0" />
  57. <distance name="bottom_height" value="0" />
  58. <distance name="title_vertical_pad" value="0" />
  59. <border name="title_border" left="10" right="10" top="0" bottom="0" />
  60. <border name="button_border" left="0" right="0" top="0" bottom="0" />
  61. </frame_geometry>
  62. <frame_geometry name="borderless" has_title="false" rounded_top_left="false"
  63. rounded_top_right="false" parent="normal">
  64. <distance name="left_width" value="0" />
  65. <distance name="right_width" value="0" />
  66. <distance name="bottom_height" value="0" />
  67. <distance name="title_vertical_pad" value="0" />
  68. <border name="button_border" left="0" right="0" top="0" bottom="0" />
  69. <border name="title_border" left="0" right="0" top="0" bottom="0" />
  70. </frame_geometry>
  71. <frame_geometry name="attached" hide_buttons="true" rounded_bottom_left="8"
  72. rounded_bottom_right="8" parent="normal">
  73. <distance name="title_vertical_pad" value="8" />
  74. </frame_geometry>
  75. <!-- drawing operations -->
  76. <!-- title -->
  77. <draw_ops name="title_focused">
  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_focused" />
  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_focused" />
  87. </draw_ops>
  88. <draw_ops name="title_unfocused">
  89. <title version="< 3.1"
  90. x="(0 `max` ((width - title_width) / 2))"
  91. y="(0 `max` ((height - title_height) / 2))"
  92. color="C_title_unfocused" />
  93. <title version=">= 3.1"
  94. x="(0 `max` ((frame_x_center - title_width / 2) `min` (width - title_width)))"
  95. y="(0 `max` ((height - title_height) / 2))"
  96. ellipsize_width="width"
  97. color="C_title_unfocused" />
  98. </draw_ops>
  99. <!-- window decorations -->
  100. <draw_ops name="entire_background_focused">
  101. <rectangle color="C_titlebar_focused" x="0" y="0" width="width" height="height"
  102. filled="true" />
  103. </draw_ops>
  104. <draw_ops name="entire_background_unfocused">
  105. <rectangle color="C_titlebar_unfocused" x="0" y="0" width="width" height="height"
  106. filled="true" />
  107. </draw_ops>
  108. <draw_ops name="highlight_focused">
  109. <line color="C_highlight_focused" x1="4" y1="0" x2="width - 5" y2="0" />
  110. <arc color="C_highlight_focused" x="0 - 1" y="0" width="13" height="13" start_angle="270"
  111. extent_angle="90" />
  112. <arc color="C_highlight_focused" x="width - 13" y="0" width="13" height="13" start_angle="0"
  113. extent_angle="90" />
  114. </draw_ops>
  115. <draw_ops name="highlight_unfocused">
  116. <line color="C_highlight_unfocused" x1="4" y1="0" x2="width - 5" y2="0" />
  117. <arc color="C_highlight_unfocused" x="0 - 1" y="0" width="13" height="13" start_angle="270"
  118. extent_angle="90" />
  119. <arc color="C_highlight_unfocused" x="width - 13" y="0" width="13" height="13"
  120. start_angle="0"
  121. extent_angle="90" />
  122. </draw_ops>
  123. <draw_ops name="titlebar_focused">
  124. <include name="entire_background_focused" />
  125. <include name="highlight_focused" />
  126. </draw_ops>
  127. <draw_ops name="titlebar_unfocused">
  128. <include name="entire_background_unfocused" />
  129. <include name="highlight_unfocused" />
  130. </draw_ops>
  131. <!-- button icons -->
  132. <!-- close -->
  133. <draw_ops name="close_focused">
  134. <image filename="assets/close.svg" x="(width - object_width) / 2"
  135. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  136. colorize="C_title_focused" />
  137. </draw_ops>
  138. <draw_ops name="close_focused_prelight">
  139. <image filename="assets/button.svg" colorize="C_button_close_bg_hover"
  140. x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width"
  141. height="object_height" />
  142. <image filename="assets/close.svg" x="(width - object_width) / 2"
  143. y="(height - object_height) / 2" width="object_width" height="object_height"
  144. colorize="C_titlebar_focused" />
  145. </draw_ops>
  146. <draw_ops name="close_focused_pressed">
  147. <image filename="assets/button.svg" colorize="C_button_close_bg_active"
  148. x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width"
  149. height="object_height" />
  150. <image filename="assets/close.svg" x="(width - object_width) / 2"
  151. y="(height - object_height) / 2" width="object_width" height="object_height"
  152. colorize="C_titlebar_focused" />
  153. </draw_ops>
  154. <draw_ops name="close_unfocused">
  155. <image filename="assets/close.svg" x="(width - object_width) / 2"
  156. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  157. colorize="C_title_unfocused" />
  158. </draw_ops>
  159. <draw_ops name="close_unfocused_prelight">
  160. <image filename="assets/button.svg" alpha="0.7" colorize="C_button_close_bg_hover"
  161. x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width"
  162. height="object_height" />
  163. <image filename="assets/close.svg" x="(width - object_width) / 2"
  164. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  165. colorize="C_titlebar_unfocused" />
  166. </draw_ops>
  167. <draw_ops name="close_unfocused_pressed">
  168. <image filename="assets/button.svg" alpha="0.7" colorize="C_button_close_bg_active"
  169. x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width"
  170. height="object_height" />
  171. <image filename="assets/close.svg" x="(width - object_width) / 2"
  172. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  173. colorize="C_titlebar_unfocused" />
  174. </draw_ops>
  175. <!-- maximize -->
  176. <draw_ops name="maximize_focused">
  177. <image filename="assets/maximize.svg" x="(width - object_width) / 2"
  178. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  179. colorize="C_title_focused" />
  180. </draw_ops>
  181. <draw_ops name="maximize_focused_prelight">
  182. <include name="maximize_focused" />
  183. </draw_ops>
  184. <draw_ops name="maximize_focused_pressed">
  185. <include name="maximize_focused" />
  186. </draw_ops>
  187. <draw_ops name="maximize_unfocused">
  188. <image filename="assets/maximize.svg" x="(width - object_width) / 2"
  189. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  190. colorize="C_title_unfocused" />
  191. </draw_ops>
  192. <draw_ops name="maximize_unfocused_prelight">
  193. <include name="maximize_unfocused" />
  194. </draw_ops>
  195. <draw_ops name="maximize_unfocused_pressed">
  196. <include name="maximize_unfocused" />
  197. </draw_ops>
  198. <!-- unmaximize -->
  199. <draw_ops name="unmaximize_focused">
  200. <image filename="assets/unmaximize.svg" x="(width - object_width) / 2"
  201. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  202. colorize="C_title_focused" />
  203. </draw_ops>
  204. <draw_ops name="unmaximize_focused_prelight">
  205. <include name="unmaximize_focused" />
  206. </draw_ops>
  207. <draw_ops name="unmaximize_focused_pressed">
  208. <include name="unmaximize_focused" />
  209. </draw_ops>
  210. <draw_ops name="unmaximize_unfocused">
  211. <image filename="assets/unmaximize.svg" x="(width - object_width) / 2"
  212. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  213. colorize="C_title_unfocused" />
  214. </draw_ops>
  215. <draw_ops name="unmaximize_unfocused_prelight">
  216. <include name="unmaximize_unfocused" />
  217. </draw_ops>
  218. <draw_ops name="unmaximize_unfocused_pressed">
  219. <include name="unmaximize_unfocused" />
  220. </draw_ops>
  221. <!-- minimize -->
  222. <draw_ops name="minimize_focused">
  223. <image filename="assets/minimize.svg" x="(width - object_width) / 2"
  224. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  225. colorize="C_title_focused" />
  226. </draw_ops>
  227. <draw_ops name="minimize_focused_prelight">
  228. <include name="minimize_focused" />
  229. </draw_ops>
  230. <draw_ops name="minimize_focused_pressed">
  231. <include name="minimize_focused" />
  232. </draw_ops>
  233. <draw_ops name="minimize_unfocused">
  234. <image filename="assets/minimize.svg" x="(width - object_width) / 2"
  235. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  236. colorize="C_title_unfocused" />
  237. </draw_ops>
  238. <draw_ops name="minimize_unfocused_prelight">
  239. <include name="minimize_unfocused" />
  240. </draw_ops>
  241. <draw_ops name="minimize_unfocused_pressed">
  242. <include name="minimize_unfocused" />
  243. </draw_ops>
  244. <!-- menu -->
  245. <draw_ops name="menu_focused">
  246. <image filename="assets/menu.svg" x="(width - object_width) / 2"
  247. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  248. colorize="C_title_focused" />
  249. </draw_ops>
  250. <draw_ops name="menu_focused_prelight">
  251. <include name="menu_focused" />
  252. </draw_ops>
  253. <draw_ops name="menu_focused_pressed">
  254. <include name="menu_focused" />
  255. </draw_ops>
  256. <draw_ops name="menu_unfocused">
  257. <image filename="assets/menu.svg" x="(width - object_width) / 2"
  258. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  259. colorize="C_title_unfocused" />
  260. </draw_ops>
  261. <draw_ops name="menu_unfocused_prelight">
  262. <include name="menu_unfocused" />
  263. </draw_ops>
  264. <draw_ops name="menu_unfocused_pressed">
  265. <include name="menu_unfocused" />
  266. </draw_ops>
  267. <!-- shade -->
  268. <draw_ops name="shade_focused">
  269. <image filename="assets/shade.svg" x="(width - object_width) / 2"
  270. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  271. colorize="C_title_focused" />
  272. </draw_ops>
  273. <draw_ops name="shade_focused_prelight">
  274. <include name="shade_focused" />
  275. </draw_ops>
  276. <draw_ops name="shade_focused_pressed">
  277. <include name="shade_focused" />
  278. </draw_ops>
  279. <draw_ops name="shade_unfocused">
  280. <image filename="assets/shade.svg" x="(width - object_width) / 2"
  281. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  282. colorize="C_title_unfocused" />
  283. </draw_ops>
  284. <draw_ops name="shade_unfocused_prelight">
  285. <include name="shade_unfocused" />
  286. </draw_ops>
  287. <draw_ops name="shade_unfocused_pressed">
  288. <include name="shade_unfocused" />
  289. </draw_ops>
  290. <!-- unshade -->
  291. <draw_ops name="unshade_focused">
  292. <image filename="assets/unshade.svg" x="(width - object_width) / 2"
  293. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  294. colorize="C_title_focused" />
  295. </draw_ops>
  296. <draw_ops name="unshade_focused_prelight">
  297. <include name="unshade_focused" />
  298. </draw_ops>
  299. <draw_ops name="unshade_focused_pressed">
  300. <include name="unshade_focused" />
  301. </draw_ops>
  302. <draw_ops name="unshade_unfocused">
  303. <image filename="assets/unshade.svg" x="(width - object_width) / 2"
  304. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7"
  305. colorize="C_title_unfocused" />
  306. </draw_ops>
  307. <draw_ops name="unshade_unfocused_prelight">
  308. <include name="unshade_unfocused" />
  309. </draw_ops>
  310. <draw_ops name="unshade_unfocused_pressed">
  311. <include name="unshade_unfocused" />
  312. </draw_ops>
  313. <!-- appmenu -->
  314. <constant name="D_appmenu_icon_size" value="16" />
  315. <draw_ops name="appmenu_focused">
  316. <icon
  317. x="(width - D_appmenu_icon_size) / 2" y="(height - D_appmenu_icon_size) / 2"
  318. width="D_appmenu_icon_size" height="D_appmenu_icon_size" />
  319. </draw_ops>
  320. <draw_ops name="appmenu_focused_prelight">
  321. <include name="appmenu_focused" />
  322. </draw_ops>
  323. <draw_ops name="appmenu_focused_pressed">
  324. <include name="appmenu_focused" />
  325. </draw_ops>
  326. <draw_ops name="appmenu_unfocused">
  327. <icon
  328. x="(width - D_appmenu_icon_size) / 2" y="(height - D_appmenu_icon_size) / 2"
  329. width="D_appmenu_icon_size" height="D_appmenu_icon_size"
  330. alpha="0.7" />
  331. </draw_ops>
  332. <draw_ops name="appmenu_unfocused_prelight">
  333. <include name="appmenu_unfocused" />
  334. </draw_ops>
  335. <draw_ops name="appmenu_unfocused_pressed">
  336. <include name="appmenu_unfocused" />
  337. </draw_ops>
  338. <!-- button backgrounds -->
  339. <draw_ops name="button_focused">
  340. </draw_ops>
  341. <draw_ops name="button_focused_prelight">
  342. <image filename="assets/button.svg" x="(width - object_width) / 2"
  343. y="(height - object_height) / 2" width="object_width" height="object_height"
  344. alpha="0.08"
  345. colorize="C_title_focused" />
  346. </draw_ops>
  347. <draw_ops name="button_focused_pressed">
  348. <image filename="assets/button.svg" x="(width - object_width) / 2"
  349. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.2"
  350. colorize="C_title_focused" />
  351. </draw_ops>
  352. <draw_ops name="button_unfocused">
  353. </draw_ops>
  354. <draw_ops name="button_unfocused_prelight">
  355. <image filename="assets/button.svg" x="(width - object_width) / 2"
  356. y="(height - object_height) / 2" width="object_width" height="object_height"
  357. alpha="0.08"
  358. colorize="C_title_unfocused" />
  359. </draw_ops>
  360. <draw_ops name="button_unfocused_pressed">
  361. <image filename="assets/button.svg" x="(width - object_width) / 2"
  362. y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.2"
  363. colorize="C_title_unfocused" />
  364. </draw_ops>
  365. <!-- frame styles -->
  366. <frame_style name="normal_focused" geometry="normal">
  367. <piece position="entire_background" draw_ops="entire_background_focused" />
  368. <piece position="titlebar" draw_ops="titlebar_focused" />
  369. <piece position="title" draw_ops="title_focused" />
  370. <button function="close" state="normal" draw_ops="close_focused" />
  371. <button function="close" state="prelight" draw_ops="close_focused_prelight" />
  372. <button function="close" state="pressed" draw_ops="close_focused_pressed" />
  373. <button function="maximize" state="normal" draw_ops="maximize_focused" />
  374. <button function="maximize" state="prelight" draw_ops="maximize_focused_prelight" />
  375. <button function="maximize" state="pressed" draw_ops="maximize_focused_pressed" />
  376. <button function="minimize" state="normal" draw_ops="minimize_focused" />
  377. <button function="minimize" state="prelight" draw_ops="minimize_focused_prelight" />
  378. <button function="minimize" state="pressed" draw_ops="minimize_focused_pressed" />
  379. <button function="menu" state="normal" draw_ops="menu_focused" />
  380. <button function="menu" state="prelight" draw_ops="menu_focused_prelight" />
  381. <button function="menu" state="pressed" draw_ops="menu_focused_pressed" />
  382. <button version=">= 3.5" function="appmenu" state="normal" draw_ops="appmenu_focused" />
  383. <button version=">= 3.5" function="appmenu" state="prelight"
  384. draw_ops="appmenu_focused_prelight" />
  385. <button version=">= 3.5" function="appmenu" state="pressed"
  386. draw_ops="appmenu_focused_pressed" />
  387. <button function="shade" state="normal" draw_ops="shade_focused" />
  388. <button function="shade" state="prelight" draw_ops="shade_focused_prelight" />
  389. <button function="shade" state="pressed" draw_ops="shade_focused_pressed" />
  390. <button function="unshade" state="normal" draw_ops="unshade_focused" />
  391. <button function="unshade" state="prelight" draw_ops="unshade_focused_prelight" />
  392. <button function="unshade" state="pressed" draw_ops="unshade_focused_pressed" />
  393. <button function="left_middle_background" state="normal" draw_ops="button_focused" />
  394. <button function="left_middle_background" state="prelight"
  395. draw_ops="button_focused_prelight" />
  396. <button function="left_middle_background" state="pressed" draw_ops="button_focused_pressed" />
  397. <button function="right_middle_background" state="normal" draw_ops="button_focused" />
  398. <button function="right_middle_background" state="prelight"
  399. draw_ops="button_focused_prelight" />
  400. <button function="right_middle_background" state="pressed" draw_ops="button_focused_pressed" />
  401. <button function="above" state="normal">
  402. <draw_ops></draw_ops>
  403. </button>
  404. <button function="above" state="pressed">
  405. <draw_ops></draw_ops>
  406. </button>
  407. <button function="unabove" state="normal">
  408. <draw_ops></draw_ops>
  409. </button>
  410. <button function="unabove" state="pressed">
  411. <draw_ops></draw_ops>
  412. </button>
  413. <button function="stick" state="normal">
  414. <draw_ops></draw_ops>
  415. </button>
  416. <button function="stick" state="pressed">
  417. <draw_ops></draw_ops>
  418. </button>
  419. <button function="unstick" state="normal">
  420. <draw_ops></draw_ops>
  421. </button>
  422. <button function="unstick" state="pressed">
  423. <draw_ops></draw_ops>
  424. </button>
  425. </frame_style>
  426. <frame_style name="normal_unfocused" geometry="normal">
  427. <piece position="entire_background" draw_ops="entire_background_unfocused" />
  428. <piece position="titlebar" draw_ops="titlebar_unfocused" />
  429. <piece position="title" draw_ops="title_unfocused" />
  430. <button function="close" state="normal" draw_ops="close_unfocused" />
  431. <button function="close" state="prelight" draw_ops="close_unfocused_prelight" />
  432. <button function="close" state="pressed" draw_ops="close_unfocused_pressed" />
  433. <button function="maximize" state="normal" draw_ops="maximize_unfocused" />
  434. <button function="maximize" state="prelight" draw_ops="maximize_unfocused_prelight" />
  435. <button function="maximize" state="pressed" draw_ops="maximize_unfocused_pressed" />
  436. <button function="minimize" state="normal" draw_ops="minimize_unfocused" />
  437. <button function="minimize" state="prelight" draw_ops="minimize_unfocused_prelight" />
  438. <button function="minimize" state="pressed" draw_ops="minimize_unfocused_pressed" />
  439. <button function="menu" state="normal" draw_ops="menu_unfocused" />
  440. <button function="menu" state="prelight" draw_ops="menu_unfocused_prelight" />
  441. <button function="menu" state="pressed" draw_ops="menu_unfocused_pressed" />
  442. <button version=">= 3.5" function="appmenu" state="normal" draw_ops="appmenu_unfocused" />
  443. <button version=">= 3.5" function="appmenu" state="prelight"
  444. draw_ops="appmenu_unfocused_prelight" />
  445. <button version=">= 3.5" function="appmenu" state="pressed"
  446. draw_ops="appmenu_unfocused_pressed" />
  447. <button function="shade" state="normal" draw_ops="shade_unfocused" />
  448. <button function="shade" state="prelight" draw_ops="shade_unfocused_prelight" />
  449. <button function="shade" state="pressed" draw_ops="shade_unfocused_pressed" />
  450. <button function="unshade" state="normal" draw_ops="unshade_unfocused" />
  451. <button function="unshade" state="prelight" draw_ops="unshade_unfocused_prelight" />
  452. <button function="unshade" state="pressed" draw_ops="unshade_unfocused_pressed" />
  453. <button function="left_middle_background" state="normal" draw_ops="button_unfocused" />
  454. <button function="left_middle_background" state="prelight"
  455. draw_ops="button_unfocused_prelight" />
  456. <button function="left_middle_background" state="pressed"
  457. draw_ops="button_unfocused_pressed" />
  458. <button function="right_middle_background" state="normal" draw_ops="button_unfocused" />
  459. <button function="right_middle_background" state="prelight"
  460. draw_ops="button_unfocused_prelight" />
  461. <button function="right_middle_background" state="pressed"
  462. draw_ops="button_unfocused_pressed" />
  463. <button function="above" state="normal">
  464. <draw_ops></draw_ops>
  465. </button>
  466. <button function="above" state="pressed">
  467. <draw_ops></draw_ops>
  468. </button>
  469. <button function="unabove" state="normal">
  470. <draw_ops></draw_ops>
  471. </button>
  472. <button function="unabove" state="pressed">
  473. <draw_ops></draw_ops>
  474. </button>
  475. <button function="stick" state="normal">
  476. <draw_ops></draw_ops>
  477. </button>
  478. <button function="stick" state="pressed">
  479. <draw_ops></draw_ops>
  480. </button>
  481. <button function="unstick" state="normal">
  482. <draw_ops></draw_ops>
  483. </button>
  484. <button function="unstick" state="pressed">
  485. <draw_ops></draw_ops>
  486. </button>
  487. </frame_style>
  488. <frame_style name="normal_max_focused" geometry="max" parent="normal_focused">
  489. <piece position="titlebar" draw_ops="entire_background_focused" />
  490. <button function="maximize" state="normal" draw_ops="unmaximize_focused" />
  491. <button function="maximize" state="pressed" draw_ops="unmaximize_focused_pressed" />
  492. <button function="maximize" state="prelight" draw_ops="unmaximize_focused_prelight" />
  493. </frame_style>
  494. <frame_style name="normal_max_unfocused" geometry="max" parent="normal_unfocused">
  495. <piece position="titlebar" draw_ops="entire_background_unfocused" />
  496. <button function="maximize" state="normal" draw_ops="unmaximize_unfocused" />
  497. <button function="maximize" state="pressed" draw_ops="unmaximize_unfocused_pressed" />
  498. <button function="maximize" state="prelight" draw_ops="unmaximize_unfocused_prelight" />
  499. </frame_style>
  500. <frame_style name="tiled_left_focused" geometry="tiled_left" parent="normal_focused">
  501. <piece position="titlebar" draw_ops="entire_background_focused" />
  502. </frame_style>
  503. <frame_style name="tiled_left_unfocused" geometry="tiled_left" parent="normal_unfocused">
  504. <piece position="titlebar" draw_ops="entire_background_unfocused" />
  505. </frame_style>
  506. <frame_style name="tiled_right_focused" geometry="tiled_right" parent="normal_focused">
  507. <piece position="titlebar" draw_ops="entire_background_focused" />
  508. </frame_style>
  509. <frame_style name="tiled_right_unfocused" geometry="tiled_right" parent="normal_unfocused">
  510. <piece position="titlebar" draw_ops="entire_background_unfocused" />
  511. </frame_style>
  512. <frame_style name="dialog_focused" geometry="modal" parent="normal_focused">
  513. </frame_style>
  514. <frame_style name="dialog_unfocused" geometry="modal" parent="normal_unfocused">
  515. </frame_style>
  516. <frame_style name="modal_dialog_focused" geometry="modal" parent="normal_focused">
  517. </frame_style>
  518. <frame_style name="modal_dialog_unfocused" geometry="modal" parent="normal_unfocused">
  519. </frame_style>
  520. <frame_style name="utility_focused" geometry="small" parent="normal_focused">
  521. </frame_style>
  522. <frame_style name="utility_unfocused" geometry="small" parent="normal_unfocused">
  523. </frame_style>
  524. <frame_style name="border_focused" geometry="border" parent="normal_focused">
  525. </frame_style>
  526. <frame_style name="border_unfocused" geometry="border" parent="normal_unfocused">
  527. </frame_style>
  528. <frame_style name="borderless_focused" geometry="borderless" parent="normal_focused">
  529. </frame_style>
  530. <frame_style name="borderless_unfocused" geometry="borderless" parent="normal_unfocused">
  531. </frame_style>
  532. <frame_style name="attached_focused" geometry="attached" parent="modal_dialog_focused">
  533. </frame_style>
  534. <frame_style name="attached_unfocused" geometry="attached" parent="modal_dialog_unfocused">
  535. </frame_style>
  536. <!-- placeholder for unimplementated styles-->
  537. <frame_style name="blank" geometry="normal">
  538. <button function="close" state="normal">
  539. <draw_ops></draw_ops>
  540. </button>
  541. <button function="close" state="pressed">
  542. <draw_ops></draw_ops>
  543. </button>
  544. <button function="maximize" state="normal">
  545. <draw_ops></draw_ops>
  546. </button>
  547. <button function="maximize" state="pressed">
  548. <draw_ops></draw_ops>
  549. </button>
  550. <button function="minimize" state="normal">
  551. <draw_ops></draw_ops>
  552. </button>
  553. <button function="minimize" state="pressed">
  554. <draw_ops></draw_ops>
  555. </button>
  556. <button function="menu" state="normal">
  557. <draw_ops></draw_ops>
  558. </button>
  559. <button function="menu" state="pressed">
  560. <draw_ops></draw_ops>
  561. </button>
  562. <button version=">= 3.5" function="appmenu" state="normal">
  563. <draw_ops></draw_ops>
  564. </button>
  565. <button version=">= 3.5" function="appmenu" state="pressed">
  566. <draw_ops></draw_ops>
  567. </button>
  568. <button function="shade" state="normal">
  569. <draw_ops></draw_ops>
  570. </button>
  571. <button function="shade" state="pressed">
  572. <draw_ops></draw_ops>
  573. </button>
  574. <button function="unshade" state="normal">
  575. <draw_ops></draw_ops>
  576. </button>
  577. <button function="unshade" state="pressed">
  578. <draw_ops></draw_ops>
  579. </button>
  580. <button function="above" state="normal">
  581. <draw_ops></draw_ops>
  582. </button>
  583. <button function="above" state="pressed">
  584. <draw_ops></draw_ops>
  585. </button>
  586. <button function="unabove" state="normal">
  587. <draw_ops></draw_ops>
  588. </button>
  589. <button function="unabove" state="pressed">
  590. <draw_ops></draw_ops>
  591. </button>
  592. <button function="stick" state="normal">
  593. <draw_ops></draw_ops>
  594. </button>
  595. <button function="stick" state="pressed">
  596. <draw_ops></draw_ops>
  597. </button>
  598. <button function="unstick" state="normal">
  599. <draw_ops></draw_ops>
  600. </button>
  601. <button function="unstick" state="pressed">
  602. <draw_ops></draw_ops>
  603. </button>
  604. </frame_style>
  605. <!-- frame style sets -->
  606. <frame_style_set name="normal_style_set">
  607. <frame focus="yes" state="normal" resize="both" style="normal_focused" />
  608. <frame focus="no" state="normal" resize="both" style="normal_unfocused" />
  609. <frame focus="yes" state="maximized" style="normal_max_focused" />
  610. <frame focus="no" state="maximized" style="normal_max_unfocused" />
  611. <frame focus="yes" state="shaded" style="normal_focused" />
  612. <frame focus="no" state="shaded" style="normal_unfocused" />
  613. <frame focus="yes" state="maximized_and_shaded" style="normal_max_focused" />
  614. <frame focus="no" state="maximized_and_shaded" style="normal_max_unfocused" />
  615. <frame version=">= 3.3" focus="yes" state="tiled_left" style="tiled_left_focused" />
  616. <frame version=">= 3.3" focus="no" state="tiled_left" style="tiled_left_unfocused" />
  617. <frame version=">= 3.3" focus="yes" state="tiled_right" style="tiled_right_focused" />
  618. <frame version=">= 3.3" focus="no" state="tiled_right" style="tiled_right_unfocused" />
  619. <frame version=">= 3.3" focus="yes" state="tiled_left_and_shaded" style="tiled_left_focused" />
  620. <frame version=">= 3.3" focus="no" state="tiled_left_and_shaded"
  621. style="tiled_left_unfocused" />
  622. <frame version=">= 3.3" focus="yes" state="tiled_right_and_shaded"
  623. style="tiled_right_focused" />
  624. <frame version=">= 3.3" focus="no" state="tiled_right_and_shaded"
  625. style="tiled_right_unfocused" />
  626. </frame_style_set>
  627. <frame_style_set name="dialog_style_set">
  628. <frame focus="yes" state="normal" resize="both" style="dialog_focused" />
  629. <frame focus="no" state="normal" resize="both" style="dialog_unfocused" />
  630. <frame focus="yes" state="maximized" style="blank" />
  631. <frame focus="no" state="maximized" style="blank" />
  632. <frame focus="yes" state="shaded" style="dialog_focused" />
  633. <frame focus="no" state="shaded" style="dialog_unfocused" />
  634. <frame focus="yes" state="maximized_and_shaded" style="blank" />
  635. <frame focus="no" state="maximized_and_shaded" style="blank" />
  636. </frame_style_set>
  637. <frame_style_set name="modal_dialog_style_set">
  638. <frame focus="yes" state="normal" resize="both" style="modal_dialog_focused" />
  639. <frame focus="no" state="normal" resize="both" style="modal_dialog_unfocused" />
  640. <frame focus="yes" state="maximized" style="blank" />
  641. <frame focus="no" state="maximized" style="blank" />
  642. <frame focus="yes" state="shaded" style="modal_dialog_focused" />
  643. <frame focus="no" state="shaded" style="modal_dialog_unfocused" />
  644. <frame focus="yes" state="maximized_and_shaded" style="blank" />
  645. <frame focus="no" state="maximized_and_shaded" style="blank" />
  646. </frame_style_set>
  647. <frame_style_set name="utility_style_set">
  648. <frame focus="yes" state="normal" resize="both" style="utility_focused" />
  649. <frame focus="no" state="normal" resize="both" style="utility_unfocused" />
  650. <frame focus="yes" state="maximized" style="blank" />
  651. <frame focus="no" state="maximized" style="blank" />
  652. <frame focus="yes" state="shaded" style="utility_focused" />
  653. <frame focus="no" state="shaded" style="utility_unfocused" />
  654. <frame focus="yes" state="maximized_and_shaded" style="blank" />
  655. <frame focus="no" state="maximized_and_shaded" style="blank" />
  656. </frame_style_set>
  657. <frame_style_set name="border_style_set">
  658. <frame focus="yes" state="normal" resize="both" style="border_focused" />
  659. <frame focus="no" state="normal" resize="both" style="border_unfocused" />
  660. <frame focus="yes" state="maximized" style="borderless_focused" />
  661. <frame focus="no" state="maximized" style="borderless_unfocused" />
  662. <frame focus="yes" state="shaded" style="blank" />
  663. <frame focus="no" state="shaded" style="blank" />
  664. <frame focus="yes" state="maximized_and_shaded" style="blank" />
  665. <frame focus="no" state="maximized_and_shaded" style="blank" />
  666. </frame_style_set>
  667. <frame_style_set name="attached_style_set">
  668. <frame focus="yes" state="normal" resize="both" style="attached_focused" />
  669. <frame focus="no" state="normal" resize="both" style="attached_unfocused" />
  670. <frame focus="yes" state="maximized" style="blank" />
  671. <frame focus="no" state="maximized" style="blank" />
  672. <frame focus="yes" state="shaded" style="blank" />
  673. <frame focus="no" state="shaded" style="blank" />
  674. <frame focus="yes" state="maximized_and_shaded" style="blank" />
  675. <frame focus="no" state="maximized_and_shaded" style="blank" />
  676. </frame_style_set>
  677. <!-- windows -->
  678. <window type="normal" style_set="normal_style_set" />
  679. <window type="dialog" style_set="dialog_style_set" />
  680. <window type="modal_dialog" style_set="modal_dialog_style_set" />
  681. <window type="menu" style_set="utility_style_set" />
  682. <window type="utility" style_set="utility_style_set" />
  683. <window type="border" style_set="border_style_set" />
  684. <window version=">= 3.2" type="attached" style_set="attached_style_set" />
  685. </metacity_theme>