main.rc 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614
  1. style "default" {
  2. xthickness = 1
  3. ythickness = 1
  4. ####################
  5. # Style Properties #
  6. ####################
  7. GtkWidget::focus-line-width = 1
  8. GtkWidget::focus-line-pattern = "\2\1"
  9. GtkToolbar::internal-padding = 4
  10. GtkToolButton::icon-spacing = 4
  11. GtkWidget::tooltip-radius = 3
  12. GtkWidget::tooltip-alpha = 235
  13. GtkWidget::new-tooltip-style = 1 #for compatibility
  14. GtkWidget::link-color = shade(0.9, @selected_bg_color)
  15. GtkWidget::visited-link-color = shade(0.8, @selected_bg_color)
  16. GnomeHRef::link_color = shade(0.9, @selected_bg_color)
  17. GtkHTML::link-color = shade(0.9, @selected_bg_color)
  18. GtkHTML::vlink-color = shade(0.8, @selected_bg_color)
  19. GtkIMHtml::hyperlink-color = shade(0.9, @selected_bg_color)
  20. GtkIMHtml::hyperlink-visited-color = shade(0.8, @selected_bg_color)
  21. GtkSeparatorMenuItem::horizontal-padding = 0
  22. GtkSeparatorMenuItem::wide-separators = 1
  23. GtkSeparatorMenuItem::separator-height = 1
  24. GtkButton::child-displacement-y = 0
  25. GtkButton::default-border = {0, 0, 0, 0}
  26. GtkButton::default-outside-border = {0, 0, 0, 0}
  27. GtkButton::inner-border = {4, 4, 4, 4}
  28. GtkEntry::state-hint = 1
  29. GtkEntry::inner-border = {7, 7, 4, 5}
  30. GtkPaned::handle-size = 9
  31. GtkHPaned::handle-size = 9
  32. GtkVPaned::handle-size = 9
  33. GtkScrollbar::trough-border = 0
  34. GtkRange::trough-border = 0
  35. GtkRange::slider-width = 13
  36. GtkRange::stepper-size = 0
  37. GtkRange::activate-slider = 1
  38. GtkScrollbar::activate-slider = 1
  39. GtkScrollbar::stepper-size = 0
  40. GtkScrollbar::has-backward-stepper = 0
  41. GtkScrollbar::has-forward-stepper = 0
  42. GtkScrollbar::min-slider-length = 48 # 42 + 2*3 (margins)
  43. GtkScrolledWindow::scrollbar-spacing = 0
  44. GtkScrolledWindow::scrollbars-within-bevel = 1
  45. GtkScale::slider_length = 26
  46. GtkScale::slider_width = 26
  47. GtkScale::trough-side-details = 1
  48. GtkProgressBar::min-horizontal-bar-height = 6
  49. GtkProgressBar::min-vertical-bar-width = 6
  50. # Making this bigger than the min[height,width]-2*[y,x]spacing makes the
  51. # whole progressbar thicker, so by setting it to the exact above value
  52. # we get the maximum spacing between the text and the edges without
  53. # doing so.
  54. GtkProgressBar::xspacing = 4
  55. GtkProgressBar::yspacing = 4
  56. GtkStatusbar::shadow_type = GTK_SHADOW_NONE
  57. GtkSpinButton::shadow_type = GTK_SHADOW_NONE
  58. GtkMenuBar::shadow-type = GTK_SHADOW_NONE
  59. GtkToolbar::shadow-type = GTK_SHADOW_NONE
  60. # TODO: find out what this comment means:
  61. # ( every window is misaligned for the sake of menus ):
  62. GtkMenuBar::internal-padding = 0
  63. GtkMenu::horizontal-padding = 0
  64. GtkMenu::vertical-padding = 2
  65. GtkMenu::double-arrows = 0
  66. GtkMenuItem::arrow-scaling = 1
  67. GtkMenuItem::toggle-spacing = 10
  68. GtkCheckButton::indicator_spacing = 3
  69. GtkOptionMenu::indicator_spacing = {13, 13, 5, 8}
  70. GtkTreeView::expander-size = 16
  71. GtkTreeView::vertical-separator = 0
  72. GtkTreeView::horizontal-separator = 4
  73. GtkTreeView::allow-rules = 1
  74. # Set this because some apps read it
  75. GtkTreeView::odd-row-color = @base_color
  76. GtkTreeView::even-row-color = @base_color
  77. GtkTreeView::odd_row_color = shade(0.90, @base_color)
  78. GtkExpander::expander-size = 16
  79. GtkNotebook::tab-overlap = 4
  80. ##########
  81. # Colors #
  82. ##########
  83. bg[NORMAL] = @bg_color
  84. bg[PRELIGHT] = @bg_color
  85. bg[SELECTED] = @selected_bg_color
  86. bg[INSENSITIVE] = mix (0.6, @bg_color, @base_color)
  87. bg[ACTIVE] = @bg_color
  88. fg[NORMAL] = @fg_color
  89. fg[PRELIGHT] = @fg_color
  90. fg[SELECTED] = @selected_fg_color
  91. fg[INSENSITIVE] = mix (0.5, @fg_color, @bg_color)
  92. fg[ACTIVE] = @fg_color
  93. text[NORMAL] = @text_color
  94. text[PRELIGHT] = @text_color
  95. text[SELECTED] = @selected_fg_color
  96. text[INSENSITIVE] = darker (@bg_color)
  97. text[ACTIVE] = @selected_fg_color
  98. base[NORMAL] = @base_color
  99. base[PRELIGHT] = shade (0.95, @bg_color)
  100. base[SELECTED] = @selected_bg_color
  101. base[INSENSITIVE] = mix (0.5, @fg_color, @bg_color)
  102. base[ACTIVE] = @selected_bg_color
  103. # For succinctness, all reasonable pixmap options remain here
  104. # Draw frame around menu in a non-compositied environment
  105. # This needs to go before pixmap because we need to override some stuff
  106. engine "adwaita" {}
  107. engine "pixmap" {
  108. #################
  109. # Check Buttons #
  110. #################
  111. image {
  112. function = CHECK
  113. state = NORMAL
  114. shadow = OUT
  115. overlay_file = "assets/checkbox-unchecked.png"
  116. overlay_stretch = FALSE
  117. }
  118. image {
  119. function = CHECK
  120. state = PRELIGHT
  121. shadow = OUT
  122. overlay_file = "assets/checkbox-unchecked-hover.png"
  123. overlay_stretch = FALSE
  124. }
  125. image {
  126. function = CHECK
  127. state = ACTIVE
  128. shadow = OUT
  129. overlay_file = "assets/checkbox-unchecked-active.png"
  130. overlay_stretch = FALSE
  131. }
  132. image {
  133. function = CHECK
  134. state = SELECTED
  135. shadow = OUT
  136. overlay_file = "assets/checkbox-unchecked.png"
  137. overlay_stretch = FALSE
  138. }
  139. image {
  140. function = CHECK
  141. state = INSENSITIVE
  142. shadow = OUT
  143. overlay_file = "assets/checkbox-unchecked-insensitive.png"
  144. overlay_stretch = FALSE
  145. }
  146. image {
  147. function = CHECK
  148. state = NORMAL
  149. shadow = IN
  150. overlay_file = "assets/checkbox-checked.png"
  151. overlay_stretch = FALSE
  152. }
  153. image {
  154. function = CHECK
  155. state = PRELIGHT
  156. shadow = IN
  157. overlay_file = "assets/checkbox-checked-hover.png"
  158. overlay_stretch = FALSE
  159. }
  160. image {
  161. function = CHECK
  162. state = ACTIVE
  163. shadow = IN
  164. overlay_file = "assets/checkbox-checked-active.png"
  165. overlay_stretch = FALSE
  166. }
  167. image {
  168. function = CHECK
  169. state = SELECTED
  170. shadow = IN
  171. overlay_file = "assets/checkbox-checked.png"
  172. overlay_stretch = FALSE
  173. }
  174. image {
  175. function = CHECK
  176. state = INSENSITIVE
  177. shadow = IN
  178. overlay_file = "assets/checkbox-checked-insensitive.png"
  179. overlay_stretch = FALSE
  180. }
  181. image {
  182. function = CHECK
  183. state = NORMAL
  184. shadow = ETCHED_IN
  185. overlay_file = "assets/checkbox-mixed.png"
  186. overlay_stretch = FALSE
  187. }
  188. image {
  189. function = CHECK
  190. state = PRELIGHT
  191. shadow = ETCHED_IN
  192. overlay_file = "assets/checkbox-mixed-hover.png"
  193. overlay_stretch = FALSE
  194. }
  195. image {
  196. function = CHECK
  197. state = ACTIVE
  198. shadow = ETCHED_IN
  199. overlay_file = "assets/checkbox-mixed-active.png"
  200. overlay_stretch = FALSE
  201. }
  202. image {
  203. function = CHECK
  204. state = SELECTED
  205. shadow = ETCHED_IN
  206. overlay_file = "assets/checkbox-mixed.png"
  207. overlay_stretch = FALSE
  208. }
  209. image {
  210. function = CHECK
  211. state = INSENSITIVE
  212. shadow = ETCHED_IN
  213. overlay_file = "assets/checkbox-mixed-insensitive.png"
  214. overlay_stretch = FALSE
  215. }
  216. #################
  217. # Radio Buttons #
  218. #################
  219. image {
  220. function = OPTION
  221. state = NORMAL
  222. shadow = OUT
  223. overlay_file = "assets/radio-unchecked.png"
  224. overlay_stretch = FALSE
  225. }
  226. image {
  227. function = OPTION
  228. state = PRELIGHT
  229. shadow = OUT
  230. overlay_file = "assets/radio-unchecked-hover.png"
  231. overlay_stretch = FALSE
  232. }
  233. image {
  234. function = OPTION
  235. state = ACTIVE
  236. shadow = OUT
  237. overlay_file = "assets/radio-unchecked-active.png"
  238. overlay_stretch = FALSE
  239. }
  240. image {
  241. function = OPTION
  242. state = SELECTED
  243. shadow = OUT
  244. overlay_file = "assets/radio-unchecked.png"
  245. overlay_stretch = FALSE
  246. }
  247. image {
  248. function = OPTION
  249. state = INSENSITIVE
  250. shadow = OUT
  251. overlay_file = "assets/radio-unchecked-insensitive.png"
  252. overlay_stretch = FALSE
  253. }
  254. image {
  255. function = OPTION
  256. state = NORMAL
  257. shadow = IN
  258. overlay_file = "assets/radio-checked.png"
  259. overlay_stretch = FALSE
  260. }
  261. image {
  262. function = OPTION
  263. state = PRELIGHT
  264. shadow = IN
  265. overlay_file = "assets/radio-checked-hover.png"
  266. overlay_stretch = FALSE
  267. }
  268. image {
  269. function = OPTION
  270. state = ACTIVE
  271. shadow = IN
  272. overlay_file = "assets/radio-checked-active.png"
  273. overlay_stretch = FALSE
  274. }
  275. image {
  276. function = OPTION
  277. state = SELECTED
  278. shadow = IN
  279. overlay_file = "assets/radio-checked.png"
  280. overlay_stretch = FALSE
  281. }
  282. image {
  283. function = OPTION
  284. state = INSENSITIVE
  285. shadow = IN
  286. overlay_file = "assets/radio-checked-insensitive.png"
  287. overlay_stretch = FALSE
  288. }
  289. image {
  290. function = OPTION
  291. state = NORMAL
  292. shadow = ETCHED_IN
  293. overlay_file = "assets/radio-mixed.png"
  294. overlay_stretch = FALSE
  295. }
  296. image {
  297. function = OPTION
  298. state = PRELIGHT
  299. shadow = ETCHED_IN
  300. overlay_file = "assets/radio-mixed-hover.png"
  301. overlay_stretch = FALSE
  302. }
  303. image {
  304. function = OPTION
  305. state = ACTIVE
  306. shadow = ETCHED_IN
  307. overlay_file = "assets/radio-mixed-active.png"
  308. overlay_stretch = FALSE
  309. }
  310. image {
  311. function = OPTION
  312. state = SELECTED
  313. shadow = ETCHED_IN
  314. overlay_file = "assets/radio-mixed.png"
  315. overlay_stretch = FALSE
  316. }
  317. image {
  318. function = OPTION
  319. state = INSENSITIVE
  320. shadow = ETCHED_IN
  321. overlay_file = "assets/radio-mixed-insensitive.png"
  322. overlay_stretch = FALSE
  323. }
  324. ##########
  325. # Arrows #
  326. ##########
  327. # Overrides
  328. # Disable arrows in spinbuttons
  329. image {
  330. function = ARROW
  331. detail = "spinbutton"
  332. }
  333. # Disable arrows for qt in scrollbars
  334. image {
  335. function = ARROW
  336. detail = "vscrollbar"
  337. }
  338. image {
  339. function = ARROW
  340. detail = "hscrollbar"
  341. }
  342. # Menu arrows
  343. image {
  344. function = ARROW
  345. state = NORMAL
  346. detail = "menuitem"
  347. overlay_file = "assets/menu-pan-left.png"
  348. overlay_stretch = FALSE
  349. arrow_direction = LEFT
  350. }
  351. image {
  352. function = ARROW
  353. state = PRELIGHT
  354. detail = "menuitem"
  355. overlay_file = "assets/menu-pan-left-hover.png"
  356. overlay_stretch = FALSE
  357. arrow_direction = LEFT
  358. }
  359. image {
  360. function = ARROW
  361. state = INSENSITIVE
  362. detail = "menuitem"
  363. overlay_file = "assets/menu-pan-left-insensitive.png"
  364. overlay_stretch = FALSE
  365. arrow_direction = LEFT
  366. }
  367. image {
  368. function = ARROW
  369. state = NORMAL
  370. detail = "menuitem"
  371. overlay_file = "assets/menu-pan-right.png"
  372. overlay_stretch = FALSE
  373. arrow_direction = RIGHT
  374. }
  375. image {
  376. function = ARROW
  377. state = PRELIGHT
  378. detail = "menuitem"
  379. overlay_file = "assets/menu-pan-right-hover.png"
  380. overlay_stretch = FALSE
  381. arrow_direction = RIGHT
  382. }
  383. image {
  384. function = ARROW
  385. state = INSENSITIVE
  386. detail = "menuitem"
  387. overlay_file = "assets/menu-pan-right-insensitive.png"
  388. overlay_stretch = FALSE
  389. arrow_direction = RIGHT
  390. }
  391. image {
  392. function = ARROW
  393. state = INSENSITIVE
  394. detail = "menu_scroll_arrow_up"
  395. overlay_file = "assets/menu-pan-up-insensitive.png"
  396. overlay_stretch = FALSE
  397. }
  398. image {
  399. function = ARROW
  400. detail = "menu_scroll_arrow_up"
  401. overlay_file = "assets/menu-pan-up.png"
  402. overlay_stretch = FALSE
  403. }
  404. image {
  405. function = ARROW
  406. state = INSENSITIVE
  407. detail = "menu_scroll_arrow_down"
  408. overlay_file = "assets/menu-pan-down-insensitive.png"
  409. overlay_stretch = FALSE
  410. }
  411. image {
  412. function = ARROW
  413. detail = "menu_scroll_arrow_down"
  414. overlay_file = "assets/menu-pan-down.png"
  415. overlay_stretch = FALSE
  416. }
  417. # Regular arrows
  418. image {
  419. function = ARROW
  420. state = NORMAL
  421. overlay_file = "assets/pan-up.png"
  422. overlay_stretch = FALSE
  423. arrow_direction = UP
  424. }
  425. image {
  426. function = ARROW
  427. state = PRELIGHT
  428. overlay_file = "assets/pan-up.png"
  429. overlay_stretch = FALSE
  430. arrow_direction = UP
  431. }
  432. image {
  433. function = ARROW
  434. state = ACTIVE
  435. overlay_file = "assets/pan-up.png"
  436. overlay_stretch = FALSE
  437. arrow_direction = UP
  438. }
  439. image {
  440. function = ARROW
  441. state = INSENSITIVE
  442. overlay_file = "assets/pan-up-insensitive.png"
  443. overlay_stretch = FALSE
  444. arrow_direction = UP
  445. }
  446. image {
  447. function = ARROW
  448. state = NORMAL
  449. overlay_file = "assets/pan-down.png"
  450. overlay_stretch = FALSE
  451. arrow_direction = DOWN
  452. }
  453. image {
  454. function = ARROW
  455. state = PRELIGHT
  456. overlay_file = "assets/pan-down.png"
  457. overlay_stretch = FALSE
  458. arrow_direction = DOWN
  459. }
  460. image {
  461. function = ARROW
  462. state = ACTIVE
  463. overlay_file = "assets/pan-down.png"
  464. overlay_stretch = FALSE
  465. arrow_direction = DOWN
  466. }
  467. image {
  468. function = ARROW
  469. state = INSENSITIVE
  470. overlay_file = "assets/pan-down-insensitive.png"
  471. overlay_stretch = FALSE
  472. arrow_direction = DOWN
  473. }
  474. image {
  475. function = ARROW
  476. state = NORMAL
  477. overlay_file = "assets/pan-left.png"
  478. overlay_stretch = FALSE
  479. arrow_direction = LEFT
  480. }
  481. image {
  482. function = ARROW
  483. state = PRELIGHT
  484. overlay_file = "assets/pan-left.png"
  485. overlay_stretch = FALSE
  486. arrow_direction = LEFT
  487. }
  488. image {
  489. function = ARROW
  490. state = ACTIVE
  491. overlay_file = "assets/pan-left.png"
  492. overlay_stretch = FALSE
  493. arrow_direction = LEFT
  494. }
  495. image {
  496. function = ARROW
  497. state = INSENSITIVE
  498. overlay_file = "assets/pan-left-insensitive.png"
  499. overlay_stretch = FALSE
  500. arrow_direction = LEFT
  501. }
  502. image {
  503. function = ARROW
  504. state = NORMAL
  505. overlay_file = "assets/pan-right.png"
  506. overlay_stretch = FALSE
  507. arrow_direction = RIGHT
  508. }
  509. image {
  510. function = ARROW
  511. state = PRELIGHT
  512. overlay_file = "assets/pan-right.png"
  513. overlay_stretch = FALSE
  514. arrow_direction = RIGHT
  515. }
  516. image {
  517. function = ARROW
  518. state = ACTIVE
  519. overlay_file = "assets/pan-right.png"
  520. overlay_stretch = FALSE
  521. arrow_direction = RIGHT
  522. }
  523. image {
  524. function = ARROW
  525. state = INSENSITIVE
  526. overlay_file = "assets/pan-right-insensitive.png"
  527. overlay_stretch = FALSE
  528. arrow_direction = RIGHT
  529. }
  530. ######################
  531. # Option Menu Arrows #
  532. ######################
  533. image {
  534. function = TAB
  535. state = NORMAL
  536. overlay_file = "assets/pan-down.png"
  537. overlay_stretch = FALSE
  538. }
  539. image {
  540. function = TAB
  541. state = PRELIGHT
  542. overlay_file = "assets/pan-down.png"
  543. overlay_stretch = FALSE
  544. }
  545. image {
  546. function = TAB
  547. state = ACTIVE
  548. overlay_file = "assets/pan-down.png"
  549. overlay_stretch = FALSE
  550. }
  551. image {
  552. function = TAB
  553. state = INSENSITIVE
  554. overlay_file = "assets/pan-down-insensitive.png"
  555. overlay_stretch = FALSE
  556. }
  557. #########
  558. # Lines #
  559. #########
  560. image {
  561. function = VLINE
  562. file = "assets/line.png"
  563. border = {1, 0, 0, 0}
  564. }
  565. image {
  566. function = HLINE
  567. file = "assets/line.png"
  568. border = {0, 0, 1, 0}
  569. }
  570. #########
  571. # Focus #
  572. #########
  573. image {
  574. function = FOCUS
  575. file = "assets/focus.png"
  576. border = {1, 1, 1, 1}
  577. stretch = TRUE
  578. }
  579. ###########
  580. # Handles #
  581. ###########
  582. image {
  583. function = HANDLE
  584. detail = "handlebox"
  585. overlay_file = "assets/handle.png"
  586. overlay_stretch = FALSE
  587. }
  588. image {
  589. function = HANDLE
  590. file = "assets/handle-horz.png"
  591. border = {0, 0, 4, 4}
  592. orientation = HORIZONTAL
  593. }
  594. image {
  595. function = HANDLE
  596. file = "assets/handle-vert.png"
  597. border = {4, 4, 0, 0}
  598. orientation = VERTICAL
  599. }
  600. image {
  601. function = RESIZE_GRIP
  602. }
  603. #############
  604. # Expanders #
  605. #############
  606. image {
  607. function = EXPANDER
  608. expander_style = EXPANDED
  609. file = "assets/pan-down.png"
  610. }
  611. # LTR
  612. image {
  613. function = EXPANDER
  614. expander_style = COLLAPSED
  615. file = "assets/pan-right.png"
  616. direction = LTR
  617. }
  618. image {
  619. function = EXPANDER
  620. expander_style = SEMI_COLLAPSED
  621. file = "assets/pan-right-semi.png"
  622. direction = LTR
  623. }
  624. image {
  625. function = EXPANDER
  626. expander_style = SEMI_EXPANDED
  627. file = "assets/pan-right-semi.png"
  628. direction = LTR
  629. }
  630. # RTL
  631. image {
  632. function = EXPANDER
  633. expander_style = COLLAPSED
  634. file = "assets/pan-left.png"
  635. direction = RTL
  636. }
  637. image {
  638. function = EXPANDER
  639. expander_style = SEMI_COLLAPSED
  640. file = "assets/pan-left-semi.png"
  641. direction = RTL
  642. }
  643. image {
  644. function = EXPANDER
  645. expander_style = SEMI_EXPANDED
  646. file = "assets/pan-left-semi.png"
  647. direction = RTL
  648. }
  649. #############
  650. # Notebooks #
  651. #############
  652. # Left
  653. image {
  654. function = EXTENSION
  655. state = NORMAL
  656. file = "assets/tab-left-active.png"
  657. border = { 3,3,3,3 }
  658. stretch = TRUE
  659. gap_side = RIGHT
  660. }
  661. image {
  662. function = EXTENSION
  663. file = "assets/tab-left.png"
  664. border = { 3,3,3,3 }
  665. stretch = TRUE
  666. gap_side = RIGHT
  667. }
  668. # Right
  669. image {
  670. function = EXTENSION
  671. state = NORMAL
  672. file = "assets/tab-right-active.png"
  673. border = { 3,3,3,3 }
  674. stretch = TRUE
  675. gap_side = LEFT
  676. }
  677. image {
  678. function = EXTENSION
  679. file = "assets/tab-right.png"
  680. border = { 3,3,3,3 }
  681. stretch = TRUE
  682. gap_side = LEFT
  683. }
  684. # Up
  685. image {
  686. function = EXTENSION
  687. state = NORMAL
  688. file = "assets/tab-up-active.png"
  689. border = { 3,3,5,3 }
  690. stretch = TRUE
  691. gap_side = BOTTOM
  692. }
  693. image {
  694. function = EXTENSION
  695. file = "assets/tab-up.png"
  696. border = { 3,3,3,3 }
  697. stretch = TRUE
  698. gap_side = BOTTOM
  699. }
  700. # Down
  701. image {
  702. function = EXTENSION
  703. state = NORMAL
  704. file = "assets/tab-down-active.png"
  705. border = { 3,3,3,5 }
  706. stretch = TRUE
  707. gap_side = TOP
  708. }
  709. image {
  710. function = EXTENSION
  711. file = "assets/tab-down.png"
  712. border = { 3,3,3,3 }
  713. stretch = TRUE
  714. gap_side = TOP
  715. }
  716. # Inner frame
  717. image {
  718. function = BOX_GAP
  719. detail = "notebook"
  720. file = "assets/frame-notebook.png"
  721. border = {1, 1, 1, 1}
  722. stretch = TRUE
  723. gap_file = "assets/tab-vert-gap.png"
  724. gap_border = {1, 0, 1, 1}
  725. gap_side = LEFT
  726. }
  727. image {
  728. function = BOX_GAP
  729. detail = "notebook"
  730. file = "assets/frame-notebook.png"
  731. border = {1, 1, 1, 1}
  732. stretch = TRUE
  733. gap_file = "assets/tab-vert-gap.png"
  734. gap_border = {0, 1, 1, 1}
  735. gap_side = RIGHT
  736. }
  737. image {
  738. function = BOX_GAP
  739. detail = "notebook"
  740. file = "assets/frame-notebook.png"
  741. border = {1, 1, 1, 1}
  742. stretch = TRUE
  743. gap_file = "assets/tab-horz-gap.png"
  744. gap_border = {1, 1, 1, 0}
  745. gap_side = TOP
  746. }
  747. image {
  748. function = BOX_GAP
  749. detail = "notebook"
  750. file = "assets/frame-notebook.png"
  751. border = {1, 1, 1, 1}
  752. stretch = TRUE
  753. gap_file = "assets/tab-horz-gap.png"
  754. gap_border = {1, 1, 0, 1}
  755. gap_side = BOTTOM
  756. }
  757. # Standalone frame
  758. image {
  759. function = BOX
  760. detail = "notebook"
  761. file = "assets/frame-notebook.png"
  762. border = {1, 1, 1, 1}
  763. stretch = TRUE
  764. }
  765. ##############
  766. # Scrollbars #
  767. ##############
  768. image {
  769. function = BOX
  770. detail = "trough"
  771. file = "assets/scrollbar-horz-trough.png"
  772. border = {0, 0, 1, 0}
  773. orientation = HORIZONTAL
  774. }
  775. image {
  776. function = BOX
  777. detail = "trough"
  778. file = "assets/scrollbar-vert-trough.png"
  779. border = {1, 0, 0, 0}
  780. orientation = VERTICAL
  781. direction = LTR
  782. }
  783. image {
  784. function = BOX
  785. detail = "trough"
  786. file = "assets/scrollbar-vert-trough-rtl.png"
  787. border = {0, 1, 0, 0}
  788. orientation = VERTICAL
  789. direction = RTL
  790. }
  791. # Disable insensitive sliders
  792. image {
  793. function = SLIDER
  794. state = INSENSITIVE
  795. detail = "slider"
  796. }
  797. # Horizontal sliders
  798. image {
  799. function = SLIDER
  800. state = NORMAL
  801. detail = "slider"
  802. file = "assets/scrollbar-horz-slider.png"
  803. border = {6, 6, 7, 6 }
  804. stretch = TRUE
  805. orientation = HORIZONTAL
  806. }
  807. image {
  808. function = SLIDER
  809. state = PRELIGHT
  810. detail = "slider"
  811. file = "assets/scrollbar-horz-slider-hover.png"
  812. border = {6, 6, 7, 6 }
  813. stretch = TRUE
  814. orientation = HORIZONTAL
  815. }
  816. image {
  817. function = SLIDER
  818. state = ACTIVE
  819. detail = "slider"
  820. file = "assets/scrollbar-horz-slider-active.png"
  821. border = {6, 6, 7, 6 }
  822. stretch = TRUE
  823. orientation = HORIZONTAL
  824. }
  825. # Vertical sliders
  826. image {
  827. function = SLIDER
  828. state = NORMAL
  829. detail = "slider"
  830. file = "assets/scrollbar-vert-slider.png"
  831. border = {7, 6, 6, 6}
  832. stretch = TRUE
  833. orientation = VERTICAL
  834. direction = LTR
  835. }
  836. image {
  837. function = SLIDER
  838. state = PRELIGHT
  839. detail = "slider"
  840. file = "assets/scrollbar-vert-slider-hover.png"
  841. border = {7, 6, 6, 6}
  842. stretch = TRUE
  843. orientation = VERTICAL
  844. direction = LTR
  845. }
  846. image {
  847. function = SLIDER
  848. state = ACTIVE
  849. detail = "slider"
  850. file = "assets/scrollbar-vert-slider-active.png"
  851. border = {7, 6, 6, 6}
  852. stretch = TRUE
  853. orientation = VERTICAL
  854. direction = LTR
  855. }
  856. # RTL
  857. image {
  858. function = SLIDER
  859. state = NORMAL
  860. detail = "slider"
  861. file = "assets/scrollbar-vert-slider-rtl.png"
  862. border = {6, 7, 6, 6}
  863. stretch = TRUE
  864. orientation = VERTICAL
  865. direction = RTL
  866. }
  867. image {
  868. function = SLIDER
  869. state = PRELIGHT
  870. detail = "slider"
  871. file = "assets/scrollbar-vert-slider-hover-rtl.png"
  872. border = {6, 7, 6, 6}
  873. stretch = TRUE
  874. orientation = VERTICAL
  875. direction = RTL
  876. }
  877. image {
  878. function = SLIDER
  879. state = ACTIVE
  880. detail = "slider"
  881. file = "assets/scrollbar-vert-slider-active-rtl.png"
  882. border = {6, 7, 6, 6}
  883. stretch = TRUE
  884. orientation = VERTICAL
  885. direction = RTL
  886. }
  887. ##########
  888. # Scales #
  889. ##########
  890. # Troughs
  891. # They are overrided later on
  892. # We set them here too because some widgets don't specify their orientation
  893. image {
  894. function = BOX
  895. detail = "trough-upper"
  896. file = "assets/scale-horz-trough.png"
  897. border = {10, 10, 0, 0}
  898. stretch = TRUE
  899. orientation = HORIZONTAL
  900. }
  901. image {
  902. function = BOX
  903. detail = "trough-lower"
  904. file = "assets/scale-horz-trough-active.png"
  905. border = {10, 10, 0, 0}
  906. stretch = TRUE
  907. orientation = HORIZONTAL
  908. }
  909. image {
  910. function = BOX
  911. detail = "trough-upper"
  912. file = "assets/scale-vert-trough.png"
  913. border = {0, 0, 10, 10}
  914. stretch = TRUE
  915. orientation = VERTICAL
  916. }
  917. image {
  918. function = BOX
  919. detail = "trough-lower"
  920. file = "assets/scale-vert-trough-active.png"
  921. border = {0, 0, 10, 10}
  922. stretch = TRUE
  923. orientation = VERTICAL
  924. }
  925. # Sliders
  926. image {
  927. function = SLIDER
  928. state = NORMAL
  929. detail = "hscale"
  930. file = "assets/scale-slider.png"
  931. }
  932. image {
  933. function = SLIDER
  934. state = PRELIGHT
  935. detail = "hscale"
  936. file = "assets/scale-slider-hover.png"
  937. }
  938. image {
  939. function = SLIDER
  940. state = ACTIVE
  941. detail = "hscale"
  942. file = "assets/scale-slider-active.png"
  943. }
  944. image {
  945. function = SLIDER
  946. state = INSENSITIVE
  947. detail = "hscale"
  948. file = "assets/scale-slider-insensitive.png"
  949. }
  950. image {
  951. function = SLIDER
  952. state = NORMAL
  953. detail = "vscale"
  954. file = "assets/scale-slider.png"
  955. }
  956. image {
  957. function = SLIDER
  958. state = PRELIGHT
  959. detail = "vscale"
  960. file = "assets/scale-slider-hover.png"
  961. }
  962. image {
  963. function = SLIDER
  964. state = ACTIVE
  965. detail = "vscale"
  966. file = "assets/scale-slider-active.png"
  967. }
  968. image {
  969. function = SLIDER
  970. state = INSENSITIVE
  971. detail = "vscale"
  972. file = "assets/scale-slider-insensitive.png"
  973. }
  974. ###########
  975. # Menubar #
  976. ###########
  977. image {
  978. function = BOX
  979. detail = "menubar"
  980. file = "assets/line.png"
  981. border = {0, 0, 0, 1}
  982. }
  983. #########
  984. # Menus #
  985. #########
  986. image {
  987. function = BOX
  988. state = PRELIGHT
  989. detail = "menu_scroll_arrow_up"
  990. file = "assets/line.png"
  991. }
  992. image {
  993. function = BOX
  994. detail = "menu_scroll_arrow_up"
  995. file = "assets/line.png"
  996. border = {0, 0, 0, 1}
  997. }
  998. image {
  999. function = BOX
  1000. state = PRELIGHT
  1001. detail = "menu_scroll_arrow_down"
  1002. file = "assets/line.png"
  1003. }
  1004. image {
  1005. function = BOX
  1006. detail = "menu_scroll_arrow_down"
  1007. file = "assets/line.png"
  1008. border = {0, 0, 1, 0}
  1009. }
  1010. ###########
  1011. # Entries #
  1012. ###########
  1013. image {
  1014. function = SHADOW
  1015. state = ACTIVE
  1016. detail = "entry"
  1017. file = "assets/entry-active.png"
  1018. border = {4, 4, 4, 4}
  1019. stretch = TRUE
  1020. }
  1021. image {
  1022. function = SHADOW
  1023. state = INSENSITIVE
  1024. detail = "entry"
  1025. file = "assets/entry-insensitive.png"
  1026. border = {4, 4, 4, 4}
  1027. stretch = TRUE
  1028. }
  1029. image {
  1030. function = SHADOW
  1031. detail = "entry"
  1032. file = "assets/entry.png"
  1033. border = {4, 4, 4, 4}
  1034. stretch = TRUE
  1035. }
  1036. image {
  1037. function = FLAT_BOX
  1038. state = ACTIVE
  1039. detail = "entry_bg"
  1040. file = "assets/entry-background.png"
  1041. }
  1042. image {
  1043. function = FLAT_BOX
  1044. state = INSENSITIVE
  1045. detail = "entry_bg"
  1046. file = "assets/entry-background-insensitive.png"
  1047. }
  1048. image {
  1049. function = FLAT_BOX
  1050. detail = "entry_bg"
  1051. file = "assets/entry-background.png"
  1052. }
  1053. #########
  1054. # Spins #
  1055. #########
  1056. # Spin-Up LTR
  1057. image {
  1058. function = BOX
  1059. state = NORMAL
  1060. detail = "spinbutton_up"
  1061. file = "assets/spin-ltr-up.png"
  1062. border = {1, 4, 4, 0}
  1063. stretch = TRUE
  1064. overlay_file = "assets/spin-up.png"
  1065. overlay_stretch = FALSE
  1066. direction = LTR
  1067. }
  1068. image {
  1069. function = BOX
  1070. state = PRELIGHT
  1071. detail = "spinbutton_up"
  1072. file = "assets/spin-ltr-up-hover.png"
  1073. border = {1, 4, 4, 0}
  1074. stretch = TRUE
  1075. overlay_file = "assets/spin-up.png"
  1076. overlay_stretch = FALSE
  1077. direction = LTR
  1078. }
  1079. image {
  1080. function = BOX
  1081. state = ACTIVE
  1082. detail = "spinbutton_up"
  1083. file = "assets/spin-ltr-up-active.png"
  1084. border = {1, 4, 4, 0}
  1085. stretch = TRUE
  1086. overlay_file = "assets/spin-up.png"
  1087. overlay_stretch = FALSE
  1088. direction = LTR
  1089. }
  1090. image {
  1091. function = BOX
  1092. state = INSENSITIVE
  1093. detail = "spinbutton_up"
  1094. file = "assets/spin-ltr-up-insensitive.png"
  1095. border = {1, 4, 4, 0}
  1096. stretch = TRUE
  1097. overlay_file = "assets/spin-up-insensitive.png"
  1098. overlay_stretch = FALSE
  1099. direction = LTR
  1100. }
  1101. # Spin-Up RTL
  1102. image {
  1103. function = BOX
  1104. state = NORMAL
  1105. detail = "spinbutton_up"
  1106. file = "assets/spin-rtl-up.png"
  1107. border = {4, 1, 4, 0}
  1108. stretch = TRUE
  1109. overlay_file = "assets/spin-up.png"
  1110. overlay_stretch = FALSE
  1111. direction = RTL
  1112. }
  1113. image {
  1114. function = BOX
  1115. state = PRELIGHT
  1116. detail = "spinbutton_up"
  1117. file = "assets/spin-rtl-up-hover.png"
  1118. border = {4, 1, 4, 0}
  1119. stretch = TRUE
  1120. overlay_file = "assets/spin-up.png"
  1121. overlay_stretch = FALSE
  1122. direction = RTL
  1123. }
  1124. image {
  1125. function = BOX
  1126. state = ACTIVE
  1127. detail = "spinbutton_up"
  1128. file = "assets/spin-rtl-up-hover.png"
  1129. border = {4, 1, 4, 0}
  1130. stretch = TRUE
  1131. overlay_file = "assets/spin-up.png"
  1132. overlay_stretch = FALSE
  1133. direction = RTL
  1134. }
  1135. image {
  1136. function = BOX
  1137. state = INSENSITIVE
  1138. detail = "spinbutton_up"
  1139. file = "assets/spin-rtl-up-insensitive.png"
  1140. border = {4, 1, 4, 0}
  1141. stretch = TRUE
  1142. overlay_file = "assets/spin-up-insensitive.png"
  1143. overlay_stretch = FALSE
  1144. direction = RTL
  1145. }
  1146. # Spin-Down LTR
  1147. image {
  1148. function = BOX
  1149. state = NORMAL
  1150. detail = "spinbutton_down"
  1151. file = "assets/spin-ltr-down.png"
  1152. border = {1, 4, 1, 4}
  1153. stretch = TRUE
  1154. overlay_file = "assets/spin-down.png"
  1155. overlay_stretch = FALSE
  1156. direction = LTR
  1157. }
  1158. image {
  1159. function = BOX
  1160. state = PRELIGHT
  1161. detail = "spinbutton_down"
  1162. file = "assets/spin-ltr-down-hover.png"
  1163. border = {1, 4, 1, 4}
  1164. stretch = TRUE
  1165. overlay_file = "assets/spin-down.png"
  1166. overlay_stretch = FALSE
  1167. direction = LTR
  1168. }
  1169. image {
  1170. function = BOX
  1171. state = ACTIVE
  1172. detail = "spinbutton_down"
  1173. file = "assets/spin-ltr-down-active.png"
  1174. border = {1, 4, 1, 4}
  1175. stretch = TRUE
  1176. overlay_file = "assets/spin-down.png"
  1177. overlay_stretch = FALSE
  1178. direction = LTR
  1179. }
  1180. image {
  1181. function = BOX
  1182. state = INSENSITIVE
  1183. detail = "spinbutton_down"
  1184. file = "assets/spin-ltr-down-insensitive.png"
  1185. border = {1, 4, 1, 4}
  1186. stretch = TRUE
  1187. overlay_file = "assets/spin-down-insensitive.png"
  1188. overlay_stretch = FALSE
  1189. direction = LTR
  1190. }
  1191. # Spin-Down RTL
  1192. image {
  1193. function = BOX
  1194. state = NORMAL
  1195. detail = "spinbutton_down"
  1196. file = "assets/spin-rtl-down.png"
  1197. border = {4, 1, 1, 4}
  1198. stretch = TRUE
  1199. overlay_file = "assets/spin-down.png"
  1200. overlay_stretch = FALSE
  1201. direction = RTL
  1202. }
  1203. image {
  1204. function = BOX
  1205. state = PRELIGHT
  1206. detail = "spinbutton_down"
  1207. file = "assets/spin-rtl-down-hover.png"
  1208. border = {4, 1, 1, 4}
  1209. stretch = TRUE
  1210. overlay_file = "assets/spin-down.png"
  1211. overlay_stretch = FALSE
  1212. direction = RTL
  1213. }
  1214. image {
  1215. function = BOX
  1216. state = ACTIVE
  1217. detail = "spinbutton_down"
  1218. file = "assets/spin-rtl-down-active.png"
  1219. border = {4, 1, 1, 4}
  1220. stretch = TRUE
  1221. overlay_file = "assets/spin-down.png"
  1222. overlay_stretch = FALSE
  1223. direction = RTL
  1224. }
  1225. image {
  1226. function = BOX
  1227. state = INSENSITIVE
  1228. detail = "spinbutton_down"
  1229. file = "assets/spin-rtl-down-insensitive.png"
  1230. border = {4, 1, 1, 4}
  1231. stretch = TRUE
  1232. overlay_file = "assets/spin-down-insensitive.png"
  1233. overlay_stretch = FALSE
  1234. direction = RTL
  1235. }
  1236. ##############
  1237. # Scrollbars #
  1238. ##############
  1239. image {
  1240. function = BOX
  1241. detail = "bar"
  1242. file = "assets/progressbar-horz.png"
  1243. stretch = TRUE
  1244. border = {2, 2, 1, 1}
  1245. orientation = HORIZONTAL
  1246. }
  1247. image {
  1248. function = BOX
  1249. detail = "bar"
  1250. file = "assets/progressbar-vert.png"
  1251. stretch = TRUE
  1252. border = {1, 1, 2, 2}
  1253. orientation = VERTICAL
  1254. }
  1255. #############
  1256. # Treeviews #
  1257. #############
  1258. # Disable active the column highlight
  1259. # We need to match specific cells or we break stuff
  1260. # Looking at you deadbeef
  1261. image {
  1262. function = FLAT_BOX
  1263. detail = "cell_even_sorted"
  1264. state = NORMAL
  1265. }
  1266. image {
  1267. function = FLAT_BOX
  1268. detail = "cell_odd_sorted"
  1269. state = NORMAL
  1270. }
  1271. # Disable all the other shadows
  1272. # This prevents the Raleigh effect
  1273. image {
  1274. function = SHADOW
  1275. }
  1276. }
  1277. }
  1278. style "menubar" {
  1279. # Needed to fix Firefox's menubar text
  1280. bg[NORMAL] = @dark_bg_color
  1281. text[NORMAL] = @dark_fg_color
  1282. fg[NORMAL] = @dark_fg_color
  1283. bg[SELECTED] = @dark_bg_color
  1284. fg[SELECTED] = shade(0.9, @dark_fg_color)
  1285. }
  1286. style "menubar_item" {
  1287. xthickness = 3
  1288. ythickness = 4
  1289. fg[NORMAL] = @dark_fg_color
  1290. fg[PRELIGHT] = @dark_fg_color
  1291. text[NORMAL] = @dark_fg_color
  1292. engine "pixmap" {
  1293. image {
  1294. function = BOX
  1295. state = PRELIGHT
  1296. file = "assets/menubar-item-active.png"
  1297. border = {0, 0, 0, 3}
  1298. }
  1299. }
  1300. }
  1301. style "menu" {
  1302. xthickness = 0
  1303. ythickness = 0
  1304. bg[NORMAL] = @base_color
  1305. bg[INSENSITIVE] = @base_color
  1306. bg[PRELIGHT] = @base_color
  1307. bg[SELECTED] = @selected_bg_color
  1308. }
  1309. style "menu_item" {
  1310. xthickness = 3
  1311. ythickness = 4
  1312. bg[PRELIGHT] = @selected_bg_color
  1313. # Chromium uses this setting
  1314. bg[SELECTED] = @selected_bg_color
  1315. fg[PRELIGHT] = @selected_fg_color
  1316. # Some widgets use text, we need to handle that
  1317. text[NORMAL] = @fg_color
  1318. text[PRELIGHT] = @selected_fg_color
  1319. # Unfortunately we can't tell regular and menu checks/radios apart
  1320. # Without the heirarchy
  1321. engine "pixmap" {
  1322. #################
  1323. # Check Buttons #
  1324. #################
  1325. image {
  1326. function = CHECK
  1327. state = NORMAL
  1328. shadow = OUT
  1329. overlay_file = "assets/menu-checkbox.png"
  1330. overlay_stretch = FALSE
  1331. }
  1332. image {
  1333. function = CHECK
  1334. state = PRELIGHT
  1335. shadow = OUT
  1336. overlay_file = "assets/menu-checkbox-hover.png"
  1337. overlay_stretch = FALSE
  1338. }
  1339. image {
  1340. function = CHECK
  1341. state = ACTIVE
  1342. shadow = OUT
  1343. overlay_file = "assets/menu-checkbox.png"
  1344. overlay_stretch = FALSE
  1345. }
  1346. image {
  1347. function = CHECK
  1348. state = INSENSITIVE
  1349. shadow = OUT
  1350. overlay_file = "assets/menu-checkbox-insensitive.png"
  1351. overlay_stretch = FALSE
  1352. }
  1353. image {
  1354. function = CHECK
  1355. state = NORMAL
  1356. shadow = IN
  1357. overlay_file = "assets/menu-checkbox-checked.png"
  1358. overlay_stretch = FALSE
  1359. }
  1360. image {
  1361. function = CHECK
  1362. state = PRELIGHT
  1363. shadow = IN
  1364. overlay_file = "assets/menu-checkbox-checked-hover.png"
  1365. overlay_stretch = FALSE
  1366. }
  1367. image {
  1368. function = CHECK
  1369. state = ACTIVE
  1370. shadow = IN
  1371. overlay_file = "assets/menu-checkbox-checked.png"
  1372. overlay_stretch = FALSE
  1373. }
  1374. image {
  1375. function = CHECK
  1376. state = INSENSITIVE
  1377. shadow = IN
  1378. overlay_file = "assets/menu-checkbox-checked-insensitive.png"
  1379. overlay_stretch = FALSE
  1380. }
  1381. image {
  1382. function = CHECK
  1383. state = NORMAL
  1384. shadow = ETCHED_IN
  1385. overlay_file = "assets/menu-checkbox-mixed.png"
  1386. overlay_stretch = FALSE
  1387. }
  1388. image {
  1389. function = CHECK
  1390. state = PRELIGHT
  1391. shadow = ETCHED_IN
  1392. overlay_file = "assets/menu-checkbox-mixed-hover.png"
  1393. overlay_stretch = FALSE
  1394. }
  1395. image {
  1396. function = CHECK
  1397. state = ACTIVE
  1398. shadow = ETCHED_IN
  1399. overlay_file = "assets/menu-checkbox-mixed.png"
  1400. overlay_stretch = FALSE
  1401. }
  1402. image {
  1403. function = CHECK
  1404. state = INSENSITIVE
  1405. shadow = ETCHED_IN
  1406. overlay_file = "assets/menu-checkbox-mixed-insensitive.png"
  1407. overlay_stretch = FALSE
  1408. }
  1409. #################
  1410. # Radio Buttons #
  1411. #################
  1412. image {
  1413. function = OPTION
  1414. state = NORMAL
  1415. shadow = OUT
  1416. overlay_file = "assets/menu-radio.png"
  1417. overlay_stretch = FALSE
  1418. }
  1419. image {
  1420. function = OPTION
  1421. state = PRELIGHT
  1422. shadow = OUT
  1423. overlay_file = "assets/menu-radio-hover.png"
  1424. overlay_stretch = FALSE
  1425. }
  1426. image {
  1427. function = OPTION
  1428. state = ACTIVE
  1429. shadow = OUT
  1430. overlay_file = "assets/menu-radio.png"
  1431. overlay_stretch = FALSE
  1432. }
  1433. image {
  1434. function = OPTION
  1435. state = INSENSITIVE
  1436. shadow = OUT
  1437. overlay_file = "assets/menu-radio-insensitive.png"
  1438. overlay_stretch = FALSE
  1439. }
  1440. image {
  1441. function = OPTION
  1442. state = NORMAL
  1443. shadow = IN
  1444. overlay_file = "assets/menu-radio-checked.png"
  1445. overlay_stretch = FALSE
  1446. }
  1447. image {
  1448. function = OPTION
  1449. state = PRELIGHT
  1450. shadow = IN
  1451. overlay_file = "assets/menu-radio-checked-hover.png"
  1452. overlay_stretch = FALSE
  1453. }
  1454. image {
  1455. function = OPTION
  1456. state = ACTIVE
  1457. shadow = IN
  1458. overlay_file = "assets/menu-radio-checked.png"
  1459. overlay_stretch = FALSE
  1460. }
  1461. image {
  1462. function = OPTION
  1463. state = INSENSITIVE
  1464. shadow = IN
  1465. overlay_file = "assets/menu-radio-checked-insensitive.png"
  1466. overlay_stretch = FALSE
  1467. }
  1468. image {
  1469. function = OPTION
  1470. state = NORMAL
  1471. shadow = ETCHED_IN
  1472. overlay_file = "assets/menu-radio-mixed.png"
  1473. overlay_stretch = FALSE
  1474. }
  1475. image {
  1476. function = OPTION
  1477. state = PRELIGHT
  1478. shadow = ETCHED_IN
  1479. overlay_file = "assets/menu-radio-mixed-hover.png"
  1480. overlay_stretch = FALSE
  1481. }
  1482. image {
  1483. function = OPTION
  1484. state = ACTIVE
  1485. shadow = ETCHED_IN
  1486. overlay_file = "assets/menu-radio-mixed.png"
  1487. overlay_stretch = FALSE
  1488. }
  1489. image {
  1490. function = OPTION
  1491. state = INSENSITIVE
  1492. shadow = ETCHED_IN
  1493. overlay_file = "assets/menu-radio-mixed-insensitive.png"
  1494. overlay_stretch = FALSE
  1495. }
  1496. }
  1497. }
  1498. style "separator_menu_item" {
  1499. xthickness = 0
  1500. ythickness = 0
  1501. engine "pixmap" {
  1502. image {
  1503. function = BOX
  1504. file = "assets/line.png"
  1505. }
  1506. }
  1507. }
  1508. style "button_label" {
  1509. fg[PRELIGHT] = @selected_fg_color
  1510. fg[ACTIVE] = @selected_fg_color
  1511. }
  1512. style "misc_button_label" {
  1513. fg[PRELIGHT] = @fg_color
  1514. fg[ACTIVE] = @fg_color
  1515. }
  1516. style "button" {
  1517. xthickness = 2
  1518. ythickness = 2
  1519. fg[PRELIGHT] = @selected_fg_color
  1520. fg[ACTIVE] = @selected_fg_color
  1521. font_name = "Bold"
  1522. # For the sake of sanity style buttons this way
  1523. engine "pixmap" {
  1524. ###########
  1525. # Buttons #
  1526. ###########
  1527. image {
  1528. function = BOX
  1529. state = NORMAL
  1530. file = "assets/button.png"
  1531. border = {4, 4, 4, 4}
  1532. stretch = TRUE
  1533. }
  1534. image {
  1535. function = BOX
  1536. state = PRELIGHT
  1537. shadow = OUT
  1538. file = "assets/button-hover.png"
  1539. border = {4, 4, 4, 4}
  1540. stretch = TRUE
  1541. }
  1542. # Don't add hover effect on pressed buttons
  1543. image {
  1544. function = BOX
  1545. state = PRELIGHT
  1546. shadow = IN
  1547. file = "assets/button-active.png"
  1548. border = {4, 4, 4, 4}
  1549. stretch = TRUE
  1550. }
  1551. image {
  1552. function = BOX
  1553. state = ACTIVE
  1554. file = "assets/button-active.png"
  1555. border = {4, 4, 4, 4}
  1556. stretch = TRUE
  1557. }
  1558. image {
  1559. function = BOX
  1560. state = INSENSITIVE
  1561. file = "assets/button-insensitive.png"
  1562. border = {4, 4, 4, 4}
  1563. stretch = TRUE
  1564. }
  1565. }
  1566. }
  1567. style "link_button" {
  1568. # Disable the button effect, leave just the link
  1569. engine "pixmap" {
  1570. image {
  1571. function = BOX
  1572. }
  1573. }
  1574. }
  1575. style "entry" {
  1576. # We set this same as the border of the border of the entry
  1577. # This way theres no overlap
  1578. xthickness = 4
  1579. ythickness = 4
  1580. }
  1581. style "combobox" {
  1582. xthickness = 6
  1583. ythickness = 4
  1584. # This affects only the button beside an entry
  1585. GtkButton::inner-border = {0, 0, 0, 0}
  1586. }
  1587. style "combobox_cellview" {
  1588. text[NORMAL] = @fg_color
  1589. text[PRELIGHT] = @fg_color
  1590. }
  1591. style "combobox_entry" {
  1592. # Since one side of the button is missing, we need to shift the arrow a little to the right
  1593. GtkButton::inner-border = {0, 1, 0, 0}
  1594. engine "pixmap" {
  1595. #############
  1596. # LTR entry #
  1597. #############
  1598. image {
  1599. function = SHADOW
  1600. state = NORMAL
  1601. detail = "entry"
  1602. file = "assets/combo-entry-ltr-entry.png"
  1603. border = {4, 4, 4, 4}
  1604. stretch = TRUE
  1605. direction = LTR
  1606. }
  1607. image {
  1608. function = SHADOW
  1609. state = ACTIVE
  1610. detail = "entry"
  1611. file = "assets/combo-entry-ltr-entry-active.png"
  1612. border = {4, 4, 4, 4}
  1613. stretch = TRUE
  1614. direction = LTR
  1615. }
  1616. image {
  1617. function = SHADOW
  1618. state = INSENSITIVE
  1619. detail = "entry"
  1620. file = "assets/combo-entry-ltr-entry-insensitive.png"
  1621. border = {4, 4, 4, 4}
  1622. stretch = TRUE
  1623. direction = LTR
  1624. }
  1625. #############
  1626. # RTL entry #
  1627. #############
  1628. image {
  1629. function = SHADOW
  1630. state = NORMAL
  1631. detail = "entry"
  1632. file = "assets/combo-entry-rtl-entry.png"
  1633. border = {4, 4, 4, 4}
  1634. stretch = TRUE
  1635. direction = RTL
  1636. }
  1637. image {
  1638. function = SHADOW
  1639. state = ACTIVE
  1640. detail = "entry"
  1641. file = "assets/combo-entry-rtl-entry-active.png"
  1642. border = {4, 4, 4, 4}
  1643. stretch = TRUE
  1644. direction = RTL
  1645. }
  1646. image {
  1647. function = SHADOW
  1648. state = INSENSITIVE
  1649. detail = "entry"
  1650. file = "assets/combo-entry-rtl-entry-insensitive.png"
  1651. border = {4, 4, 4, 4}
  1652. stretch = TRUE
  1653. direction = RTL
  1654. }
  1655. ##############
  1656. # LTR button #
  1657. ##############
  1658. image {
  1659. function = BOX
  1660. state = NORMAL
  1661. detail = "button"
  1662. file = "assets/combo-entry-ltr-button.png"
  1663. border = {0, 4, 4, 4}
  1664. stretch = TRUE
  1665. direction = LTR
  1666. }
  1667. image {
  1668. function = BOX
  1669. state = PRELIGHT
  1670. detail = "button"
  1671. file = "assets/combo-entry-ltr-button-hover.png"
  1672. border = {0, 4, 4, 4}
  1673. stretch = TRUE
  1674. direction = LTR
  1675. }
  1676. image {
  1677. function = BOX
  1678. state = ACTIVE
  1679. detail = "button"
  1680. file = "assets/combo-entry-ltr-button-active.png"
  1681. border = {0, 4, 4, 4}
  1682. stretch = TRUE
  1683. direction = LTR
  1684. }
  1685. image {
  1686. function = BOX
  1687. state = INSENSITIVE
  1688. detail = "button"
  1689. file = "assets/combo-entry-ltr-button-insensitive.png"
  1690. border = {0, 4, 4, 4}
  1691. stretch = TRUE
  1692. direction = LTR
  1693. }
  1694. ##############
  1695. # RTL button #
  1696. ##############
  1697. image {
  1698. function = BOX
  1699. state = NORMAL
  1700. detail = "button"
  1701. file = "assets/combo-entry-rtl-button.png"
  1702. border = {4, 0, 4, 4}
  1703. stretch = TRUE
  1704. direction = RTL
  1705. }
  1706. image {
  1707. function = BOX
  1708. state = PRELIGHT
  1709. detail = "button"
  1710. file = "assets/combo-entry-rtl-button-hover.png"
  1711. border = {4, 0, 4, 4}
  1712. stretch = TRUE
  1713. direction = RTL
  1714. }
  1715. image {
  1716. function = BOX
  1717. state = ACTIVE
  1718. detail = "button"
  1719. file = "assets/combo-entry-rtl-button-active.png"
  1720. border = {4, 0, 4, 4}
  1721. stretch = TRUE
  1722. direction = RTL
  1723. }
  1724. image {
  1725. function = BOX
  1726. state = INSENSITIVE
  1727. detail = "button"
  1728. file = "assets/combo-entry-rtl-button-insensitive.png"
  1729. border = {4, 0, 4, 4}
  1730. stretch = TRUE
  1731. direction = RTL
  1732. }
  1733. }
  1734. }
  1735. style "combo_button_padding" {
  1736. # Since one side of the button is missing, we need to shift the arrow a little to the right
  1737. # This is the same thing we've done above but the combo, unlike the combobox,
  1738. # uses padding the same way as a button
  1739. GtkButton::inner-border = {6, 8, 4, 4}
  1740. }
  1741. style "notebook" {
  1742. xthickness = 5
  1743. ythickness = 2
  1744. }
  1745. style "notebook_viewport" {
  1746. bg[NORMAL] = @base_color
  1747. }
  1748. style "notebook_bg" {
  1749. bg[NORMAL] = @base_color
  1750. bg[PRELIGHT] = @base_color
  1751. bg[INSENSITIVE] = @base_color
  1752. }
  1753. style "notebook_entry" {
  1754. engine "pixmap" {
  1755. image {
  1756. function = SHADOW
  1757. state = ACTIVE
  1758. detail = "entry"
  1759. file = "assets/notebook-entry-active.png"
  1760. border = {4, 4, 4, 4}
  1761. stretch = TRUE
  1762. }
  1763. image {
  1764. function = SHADOW
  1765. state = INSENSITIVE
  1766. detail = "entry"
  1767. file = "assets/notebook-entry-insensitive.png"
  1768. border = {4, 4, 4, 4}
  1769. stretch = TRUE
  1770. }
  1771. image {
  1772. function = SHADOW
  1773. detail = "entry"
  1774. file = "assets/notebook-entry.png"
  1775. border = {4, 4, 4, 4}
  1776. stretch = TRUE
  1777. }
  1778. }
  1779. }
  1780. style "normal_bg" {
  1781. bg[NORMAL] = @bg_color
  1782. bg[PRELIGHT] = @bg_color
  1783. bg[INSENSITIVE] = mix (0.6, @bg_color, @base_color)
  1784. }
  1785. style "normal_entry" {
  1786. engine "pixmap" {
  1787. image {
  1788. function = SHADOW
  1789. state = ACTIVE
  1790. detail = "entry"
  1791. file = "assets/entry-active.png"
  1792. border = {4, 4, 4, 4}
  1793. stretch = TRUE
  1794. }
  1795. image {
  1796. function = SHADOW
  1797. state = INSENSITIVE
  1798. detail = "entry"
  1799. file = "assets/entry-insensitive.png"
  1800. border = {4, 4, 4, 4}
  1801. stretch = TRUE
  1802. }
  1803. image {
  1804. function = SHADOW
  1805. detail = "entry"
  1806. file = "assets/entry.png"
  1807. border = {4, 4, 4, 4}
  1808. stretch = TRUE
  1809. }
  1810. }
  1811. }
  1812. style "notebook_combo" {
  1813. engine "pixmap" {
  1814. #############
  1815. # LTR entry #
  1816. #############
  1817. image {
  1818. function = SHADOW
  1819. state = NORMAL
  1820. detail = "entry"
  1821. file = "assets/notebook-combo-entry-ltr-entry.png"
  1822. border = {4, 4, 4, 4}
  1823. stretch = TRUE
  1824. direction = LTR
  1825. }
  1826. image {
  1827. function = SHADOW
  1828. state = ACTIVE
  1829. detail = "entry"
  1830. file = "assets/notebook-combo-entry-ltr-entry-active.png"
  1831. border = {4, 4, 4, 4}
  1832. stretch = TRUE
  1833. direction = LTR
  1834. }
  1835. image {
  1836. function = SHADOW
  1837. state = INSENSITIVE
  1838. detail = "entry"
  1839. file = "assets/notebook-combo-entry-ltr-entry-insensitive.png"
  1840. border = {4, 4, 4, 4}
  1841. stretch = TRUE
  1842. direction = LTR
  1843. }
  1844. #############
  1845. # RTL entry #
  1846. #############
  1847. image {
  1848. function = SHADOW
  1849. state = NORMAL
  1850. detail = "entry"
  1851. file = "assets/notebook-combo-entry-rtl-entry.png"
  1852. border = {4, 4, 4, 4}
  1853. stretch = TRUE
  1854. direction = RTL
  1855. }
  1856. image {
  1857. function = SHADOW
  1858. state = ACTIVE
  1859. detail = "entry"
  1860. file = "assets/notebook-combo-entry-rtl-entry-active.png"
  1861. border = {4, 4, 4, 4}
  1862. stretch = TRUE
  1863. direction = RTL
  1864. }
  1865. image {
  1866. function = SHADOW
  1867. state = INSENSITIVE
  1868. detail = "entry"
  1869. file = "assets/notebook-combo-entry-rtl-entry-insensitive.png"
  1870. border = {4, 4, 4, 4}
  1871. stretch = TRUE
  1872. direction = RTL
  1873. }
  1874. }
  1875. }
  1876. style "textview" {
  1877. bg[NORMAL] = @base_color
  1878. }
  1879. style "scale_horz" {
  1880. engine "pixmap" {
  1881. image {
  1882. function = BOX
  1883. detail = "trough-upper"
  1884. file = "assets/scale-horz-trough.png"
  1885. border = {10, 10, 0, 0}
  1886. stretch = TRUE
  1887. }
  1888. image {
  1889. function = BOX
  1890. detail = "trough-lower"
  1891. file = "assets/scale-horz-trough-active.png"
  1892. border = {10, 10, 0, 0}
  1893. stretch = TRUE
  1894. }
  1895. }
  1896. }
  1897. style "scale_vert" {
  1898. engine "pixmap" {
  1899. image {
  1900. function = BOX
  1901. detail = "trough-upper"
  1902. file = "assets/scale-vert-trough.png"
  1903. border = {0, 0, 10, 10}
  1904. stretch = TRUE
  1905. }
  1906. image {
  1907. function = BOX
  1908. detail = "trough-lower"
  1909. file = "assets/scale-vert-trough-active.png"
  1910. border = {0, 0, 10, 10}
  1911. stretch = TRUE
  1912. }
  1913. }
  1914. }
  1915. style "progressbar" {
  1916. xthickness = 1
  1917. ythickness = 1
  1918. fg[PRELIGHT] = @selected_fg_color
  1919. engine "pixmap" {
  1920. image {
  1921. function = BOX
  1922. detail = "trough"
  1923. file = "assets/progressbar-horz-trough.png"
  1924. border = {3, 3, 2, 2}
  1925. stretch = TRUE
  1926. orientation = HORIZONTAL
  1927. }
  1928. image {
  1929. function = BOX
  1930. detail = "trough"
  1931. file = "assets/progressbar-vert-trough.png"
  1932. border = {2, 2, 3, 3}
  1933. stretch = TRUE
  1934. orientation = VERTICAL
  1935. }
  1936. }
  1937. }
  1938. style "treeview_header" {
  1939. xthickness = 1
  1940. ythickness = 0
  1941. fg[NORMAL] = mix(0.5, @fg_color, @base_color)
  1942. fg[PRELIGHT] = mix(0.5, mix(0.5, @fg_color, @base_color), @fg_color)
  1943. font_name = "Bold"
  1944. GtkButton::inner-border = {5, 5, 0, 1}
  1945. engine "pixmap" {
  1946. image {
  1947. function = BOX
  1948. file = "assets/treeview-separator-ltr.png"
  1949. border = {0, 1, 0, 1}
  1950. stretch = TRUE
  1951. direction = LTR
  1952. }
  1953. image {
  1954. function = BOX
  1955. file = "assets/treeview-separator-rtl.png"
  1956. border = {1, 0, 0, 1}
  1957. stretch = TRUE
  1958. direction = RTL
  1959. }
  1960. image {
  1961. function = ARROW
  1962. state = NORMAL
  1963. overlay_file = "assets/treeview-pan-up.png"
  1964. overlay_stretch = FALSE
  1965. arrow_direction = UP
  1966. }
  1967. image {
  1968. function = ARROW
  1969. state = PRELIGHT
  1970. overlay_file = "assets/treeview-pan-up-hover.png"
  1971. overlay_stretch = FALSE
  1972. arrow_direction = UP
  1973. }
  1974. image {
  1975. function = ARROW
  1976. state = ACTIVE
  1977. overlay_file = "assets/treeview-pan-up-active.png"
  1978. overlay_stretch = FALSE
  1979. arrow_direction = UP
  1980. }
  1981. image {
  1982. function = ARROW
  1983. state = NORMAL
  1984. overlay_file = "assets/treeview-pan-down.png"
  1985. overlay_stretch = FALSE
  1986. arrow_direction = DOWN
  1987. }
  1988. image {
  1989. function = ARROW
  1990. state = PRELIGHT
  1991. overlay_file = "assets/treeview-pan-down-hover.png"
  1992. overlay_stretch = FALSE
  1993. arrow_direction = DOWN
  1994. }
  1995. image {
  1996. function = ARROW
  1997. state = ACTIVE
  1998. overlay_file = "assets/treeview-pan-down-active.png"
  1999. overlay_stretch = FALSE
  2000. arrow_direction = DOWN
  2001. }
  2002. }
  2003. }
  2004. style "scrolled_window" {
  2005. engine "pixmap" {
  2006. image {
  2007. function = SHADOW
  2008. file = "assets/frame.png"
  2009. border = {1, 1, 1, 1}
  2010. stretch = TRUE
  2011. }
  2012. }
  2013. }
  2014. style "frame" {
  2015. engine "pixmap" {
  2016. image {
  2017. function = SHADOW
  2018. file = "assets/frame.png"
  2019. border = {0, 0, 0, 0}
  2020. stretch = TRUE
  2021. }
  2022. image {
  2023. function = SHADOW_GAP
  2024. file = "assets/frame.png"
  2025. border = {0, 0, 0, 0}
  2026. stretch = TRUE
  2027. gap_start_file = "assets/border.png"
  2028. gap_end_file = "assets/border.png"
  2029. }
  2030. }
  2031. }
  2032. style "toolbar_button" {
  2033. xthickness = 2
  2034. ythickness = 2
  2035. GtkButton::inner-border = {2, 2, 2, 2}
  2036. engine "pixmap" {
  2037. image {
  2038. function = BOX
  2039. state = PRELIGHT
  2040. shadow = OUT
  2041. file = "assets/toolbar-button-hover.png"
  2042. border = {4, 4, 4, 4}
  2043. stretch = TRUE
  2044. }
  2045. # Don't add hover effect on pressed buttons
  2046. image {
  2047. function = BOX
  2048. state = PRELIGHT
  2049. shadow = IN
  2050. file = "assets/toolbar-button-active.png"
  2051. border = {4, 4, 4, 4}
  2052. stretch = TRUE
  2053. }
  2054. image {
  2055. function = BOX
  2056. state = ACTIVE
  2057. file = "assets/toolbar-button-active.png"
  2058. border = {4, 4, 4, 4}
  2059. stretch = TRUE
  2060. }
  2061. }
  2062. }
  2063. style "toolbar_separator" {
  2064. GtkWidget::wide-separators = 1
  2065. GtkWidget::separator-width = 1
  2066. GtkWidget::separator-height = 1
  2067. engine "pixmap" {
  2068. image {
  2069. function = BOX
  2070. file = "assets/line.png"
  2071. }
  2072. }
  2073. }
  2074. style "inline_toolbar" {
  2075. GtkToolbar::button-relief = GTK_RELIEF_NORMAL
  2076. engine "pixmap" {
  2077. image {
  2078. function = SHADOW
  2079. file = "assets/frame-inline.png"
  2080. border = {1, 1, 0, 1}
  2081. stretch = TRUE
  2082. }
  2083. }
  2084. }
  2085. style "tooltip" {
  2086. xthickness = 13
  2087. ythickness = 13
  2088. bg[NORMAL] = @tooltip_bg_color
  2089. fg[NORMAL] = @tooltip_fg_color
  2090. bg[SELECTED] = @tooltip_bg_color
  2091. }
  2092. style "disable_shadow" {
  2093. engine "pixmap" {
  2094. image {
  2095. function = SHADOW
  2096. }
  2097. }
  2098. }
  2099. style "disable_separator" {
  2100. xthickness = 0
  2101. ythickness = 0
  2102. GtkWidget::wide-separators = 1
  2103. }
  2104. # Text Style
  2105. style "text" = "default" {
  2106. engine "murrine" { textstyle = 0 }
  2107. }
  2108. style "menu_text" = "menu_item" {
  2109. engine "murrine" { textstyle = 0 }
  2110. }
  2111. # Default style, containing most of the stuff
  2112. class "GtkWidget" style "default"
  2113. # Override padding, style and colour
  2114. class "GtkButton" style "button"
  2115. class "GtkLinkButton" style "link_button"
  2116. class "GtkEntry" style "entry"
  2117. class "GtkOldEditable" style "entry"
  2118. class "GtkNotebook" style "notebook"
  2119. class "GtkHScale" style "scale_horz"
  2120. class "GtkVScale" style "scale_vert"
  2121. class "GtkProgressBar" style "progressbar"
  2122. class "GtkScrolledWindow" style "scrolled_window"
  2123. class "GtkFrame" style "frame"
  2124. class "GtkSeparatorToolItem" style "toolbar_separator"
  2125. class "GtkMenuBar" style "menubar"
  2126. class "GtkMenu" style "menu"
  2127. class "GtkTextView" style "textview"
  2128. widget_class "*<GtkButton>*<GtkLabel>" style "button_label"
  2129. widget_class "*<GtkCheckButton>*<GtkLabel>" style "misc_button_label"
  2130. # Menu and menubar items
  2131. widget_class "*<GtkMenuItem>*" style "menu_item"
  2132. widget_class "*<GtkMenuBar>.<GtkMenuItem>*" style "menubar_item"
  2133. widget_class "*<GtkSeparatorMenuItem>*" style "separator_menu_item"
  2134. # Frames in statusbars look ugly, let's disable them
  2135. widget_class "*<GtkStatusbar>*<GtkFrame>" style "disable_shadow"
  2136. # Disable the frame around poor Wilbert too
  2137. widget_class "*<GimpToolbox>*<GtkFrame>" style "disable_shadow"
  2138. # Treeview buttons
  2139. widget_class "*<GtkTreeView>*<GtkButton>*" style "treeview_header"
  2140. # Give the file chooser toolbar a border
  2141. widget_class "*<GtkFileChooserDefault>*<GtkToolbar>" style "inline_toolbar"
  2142. # Fix padding on regular comboboxes
  2143. widget_class "*<GtkComboBox>.<GtkButton>" style "combobox"
  2144. # And disable separators on them
  2145. widget_class "*<GtkComboBox>.<GtkButton>*<GtkSeparator>" style "disable_separator"
  2146. # Join together the ComboBoxEntry entry and button
  2147. widget_class "*<GtkComboBoxEntry>*" style "combobox_entry"
  2148. # Join the Combo entry and button
  2149. widget_class "*<GtkCombo>*" style "combobox_entry"
  2150. # Tweak the padding on the button a little bit because it uses it a bit differently
  2151. widget_class "*<GtkCombo>.<GtkButton>" style "combo_button_padding"
  2152. # Alas we cannot do the same for ComboBoxText because there isn't a way to apply the style to only
  2153. # the comboboxes that have an entry inside
  2154. # Toolbar buttons have different paddings
  2155. widget_class "*<GtkToolbar>*<GtkButton>" style "toolbar_button"
  2156. # Notebooks are white, act accordingly
  2157. widget_class "*<GtkNotebook>*<GtkEntry>" style "notebook_entry"
  2158. widget_class "*<GtkNotebook>*<GtkProgressBar>" style "notebook_bg"
  2159. widget_class "*<GtkNotebook>*<GtkSpinButton>" style "notebook_bg"
  2160. widget_class "*<GtkNotebook>*<GtkScrolledWindow>*<GtkViewport>" style "notebook_bg"
  2161. widget_class "*<GtkNotebook>*<GimpRuler>" style "notebook_bg"
  2162. widget_class "*<GtkNotebook>.<GimpDisplayShell>*<GtkEventBox>" style "notebook_bg"
  2163. widget_class "*<GtkNotebook>*<GtkComboBoxEntry>*" style "notebook_combo"
  2164. widget_class "*<GtkNotebook>*<GtkCombo>*" style "notebook_combo"
  2165. # However, stuff inside eventboxes inside notebooks is grey again, react
  2166. widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkEntry>" style "normal_entry"
  2167. widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkProgressBar>" style "normal_bg"
  2168. widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkSpinButton>" style "normal_bg"
  2169. widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkComboBoxEntry>*" style "combobox_entry"
  2170. widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkCombo>*" style "combobox_entry"
  2171. widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkCombo>.<GtkButton>" style "combo_button_padding"
  2172. # ComboBoxes tend to draw the button label with text[] instead of fg[], we need to fix that
  2173. widget_class "*<GtkComboBox>*<GtkCellView>" style "combobox_cellview"
  2174. # GTK tooltips
  2175. widget "gtk-tooltip*" style "tooltip"
  2176. # Fixes ugly text shadows for insensitive text
  2177. widget_class "*<GtkLabel>" style "text"
  2178. widget_class "*<GtkMenu>*<GtkLabel>" style "menu_text"
  2179. widget_class "*<GtkComboBox>*<GtkCellLayout>" style "text"
  2180. widget_class "*<GtkNotebook>*<GtkLabel>" style "text"
  2181. widget_class "*<GtkNotebook>*<GtkCellLayout>" style "text"