main.rc 67 KB

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