metacity-theme-2.xml 28 KB

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