metacity-theme-3.xml 32 KB

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