gruvbox.py 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. # gruvbox dark hard qutebrowser theme by Florian Bruhin <me@the-compiler.org>
  2. #
  3. # Originally based on:
  4. # base16-qutebrowser (https://github.com/theova/base16-qutebrowser)
  5. # Base16 qutebrowser template by theova and Daniel Mulford
  6. # Gruvbox dark, hard scheme by Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)
  7. # -*- coding: utf-8 -*-
  8. # from qutebrowser.config import config
  9. bg0_hard = "#1d2021"
  10. bg0_soft = '#32302f'
  11. bg0_normal = '#282828'
  12. bg0 = bg0_normal
  13. bg1 = "#3c3836"
  14. bg2 = "#504945"
  15. bg3 = "#665c54"
  16. bg4 = "#7c6f64"
  17. fg0 = "#fbf1c7"
  18. fg1 = "#ebdbb2"
  19. fg2 = "#d5c4a1"
  20. fg3 = "#bdae93"
  21. fg4 = "#a89984"
  22. bright_red = "#fb4934"
  23. bright_green = "#b8bb26"
  24. bright_yellow = "#fabd2f"
  25. bright_blue = "#83a598"
  26. bright_purple = "#d3869b"
  27. bright_aqua = "#8ec07c"
  28. bright_gray = "#928374"
  29. bright_orange = "#fe8019"
  30. dark_red = "#cc241d"
  31. dark_green = "#98971a"
  32. dark_yellow = "#d79921"
  33. dark_blue = "#458588"
  34. dark_purple = "#b16286"
  35. dark_aqua = "#689d6a"
  36. dark_gray = "#a89984"
  37. dark_orange = "#d65d0e"
  38. ### Completion
  39. # Text color of the completion widget. May be a single color to use for
  40. # all columns or a list of three colors, one for each column.
  41. c.colors.completion.fg = [fg1, bright_aqua, bright_yellow]
  42. # Background color of the completion widget for odd rows.
  43. c.colors.completion.odd.bg = bg0
  44. # Background color of the completion widget for even rows.
  45. c.colors.completion.even.bg = c.colors.completion.odd.bg
  46. # Foreground color of completion widget category headers.
  47. c.colors.completion.category.fg = bright_blue
  48. # Background color of the completion widget category headers.
  49. c.colors.completion.category.bg = bg1
  50. # Top border color of the completion widget category headers.
  51. c.colors.completion.category.border.top = c.colors.completion.category.bg
  52. # Bottom border color of the completion widget category headers.
  53. c.colors.completion.category.border.bottom = c.colors.completion.category.bg
  54. # Foreground color of the selected completion item.
  55. c.colors.completion.item.selected.fg = fg0
  56. # Background color of the selected completion item.
  57. c.colors.completion.item.selected.bg = bg4
  58. # Top border color of the selected completion item.
  59. c.colors.completion.item.selected.border.top = bg2
  60. # Bottom border color of the selected completion item.
  61. c.colors.completion.item.selected.border.bottom = c.colors.completion.item.selected.border.top
  62. # Foreground color of the matched text in the selected completion item.
  63. c.colors.completion.item.selected.match.fg = bright_orange
  64. # Foreground color of the matched text in the completion.
  65. c.colors.completion.match.fg = c.colors.completion.item.selected.match.fg
  66. # Color of the scrollbar handle in the completion view.
  67. c.colors.completion.scrollbar.fg = c.colors.completion.item.selected.fg
  68. # Color of the scrollbar in the completion view.
  69. c.colors.completion.scrollbar.bg = c.colors.completion.category.bg
  70. ### Context menu
  71. # Background color of disabled items in the context menu.
  72. c.colors.contextmenu.disabled.bg = bg3
  73. # Foreground color of disabled items in the context menu.
  74. c.colors.contextmenu.disabled.fg = fg3
  75. # Background color of the context menu. If set to null, the Qt default is used.
  76. c.colors.contextmenu.menu.bg = bg0
  77. # Foreground color of the context menu. If set to null, the Qt default is used.
  78. c.colors.contextmenu.menu.fg = fg2
  79. # Background color of the context menu’s selected item. If set to null, the Qt default is used.
  80. c.colors.contextmenu.selected.bg = bg2
  81. #Foreground color of the context menu’s selected item. If set to null, the Qt default is used.
  82. c.colors.contextmenu.selected.fg = c.colors.contextmenu.menu.fg
  83. ### Downloads
  84. # Background color for the download bar.
  85. c.colors.downloads.bar.bg = bg0
  86. # Color gradient start for download text.
  87. c.colors.downloads.start.fg = bg0
  88. # Color gradient start for download backgrounds.
  89. c.colors.downloads.start.bg = bright_blue
  90. # Color gradient end for download text.
  91. c.colors.downloads.stop.fg = c.colors.downloads.start.fg
  92. # Color gradient stop for download backgrounds.
  93. c.colors.downloads.stop.bg = bright_aqua
  94. # Foreground color for downloads with errors.
  95. c.colors.downloads.error.fg = bright_red
  96. ### Hints
  97. # Font color for hints.
  98. c.colors.hints.fg = bg0
  99. # Background color for hints.
  100. c.colors.hints.bg = 'rgba(250, 191, 47, 200)' # bright_yellow
  101. # Font color for the matched part of hints.
  102. c.colors.hints.match.fg = bg4
  103. ### Keyhint widget
  104. # Text color for the keyhint widget.
  105. c.colors.keyhint.fg = fg4
  106. # Highlight color for keys to complete the current keychain.
  107. c.colors.keyhint.suffix.fg = fg0
  108. # Background color of the keyhint widget.
  109. c.colors.keyhint.bg = bg0
  110. ### Messages
  111. # Foreground color of an error message.
  112. c.colors.messages.error.fg = bg0
  113. # Background color of an error message.
  114. c.colors.messages.error.bg = bright_red
  115. # Border color of an error message.
  116. c.colors.messages.error.border = c.colors.messages.error.bg
  117. # Foreground color of a warning message.
  118. c.colors.messages.warning.fg = bg0
  119. # Background color of a warning message.
  120. c.colors.messages.warning.bg = bright_purple
  121. # Border color of a warning message.
  122. c.colors.messages.warning.border = c.colors.messages.warning.bg
  123. # Foreground color of an info message.
  124. c.colors.messages.info.fg = fg2
  125. # Background color of an info message.
  126. c.colors.messages.info.bg = bg0
  127. # Border color of an info message.
  128. c.colors.messages.info.border = c.colors.messages.info.bg
  129. ### Prompts
  130. # Foreground color for prompts.
  131. c.colors.prompts.fg = fg2
  132. # Border used around UI elements in prompts.
  133. c.colors.prompts.border = f'1px solid {bg1}'
  134. # Background color for prompts.
  135. c.colors.prompts.bg = bg3
  136. # Background color for the selected item in filename prompts.
  137. c.colors.prompts.selected.bg = bg2
  138. ### Statusbar
  139. # Foreground color of the statusbar.
  140. c.colors.statusbar.normal.fg = fg2
  141. # Background color of the statusbar.
  142. c.colors.statusbar.normal.bg = bg0
  143. # Foreground color of the statusbar in insert mode.
  144. c.colors.statusbar.insert.fg = bg0
  145. # Background color of the statusbar in insert mode.
  146. c.colors.statusbar.insert.bg = dark_aqua
  147. # Foreground color of the statusbar in passthrough mode.
  148. c.colors.statusbar.passthrough.fg = bg0
  149. # Background color of the statusbar in passthrough mode.
  150. c.colors.statusbar.passthrough.bg = dark_blue
  151. # Foreground color of the statusbar in private browsing mode.
  152. c.colors.statusbar.private.fg = bright_purple
  153. # Background color of the statusbar in private browsing mode.
  154. c.colors.statusbar.private.bg = bg0
  155. # Foreground color of the statusbar in command mode.
  156. c.colors.statusbar.command.fg = fg3
  157. # Background color of the statusbar in command mode.
  158. c.colors.statusbar.command.bg = bg1
  159. # Foreground color of the statusbar in private browsing + command mode.
  160. c.colors.statusbar.command.private.fg = c.colors.statusbar.private.fg
  161. # Background color of the statusbar in private browsing + command mode.
  162. c.colors.statusbar.command.private.bg = c.colors.statusbar.command.bg
  163. # Foreground color of the statusbar in caret mode.
  164. c.colors.statusbar.caret.fg = bg0
  165. # Background color of the statusbar in caret mode.
  166. c.colors.statusbar.caret.bg = dark_purple
  167. # Foreground color of the statusbar in caret mode with a selection.
  168. c.colors.statusbar.caret.selection.fg = c.colors.statusbar.caret.fg
  169. # Background color of the statusbar in caret mode with a selection.
  170. c.colors.statusbar.caret.selection.bg = bright_purple
  171. # Background color of the progress bar.
  172. c.colors.statusbar.progress.bg = bright_blue
  173. # Default foreground color of the URL in the statusbar.
  174. c.colors.statusbar.url.fg = fg4
  175. # Foreground color of the URL in the statusbar on error.
  176. c.colors.statusbar.url.error.fg = dark_red
  177. # Foreground color of the URL in the statusbar for hovered links.
  178. c.colors.statusbar.url.hover.fg = bright_orange
  179. # Foreground color of the URL in the statusbar on successful load
  180. # (http).
  181. c.colors.statusbar.url.success.http.fg = bright_red
  182. # Foreground color of the URL in the statusbar on successful load
  183. # (https).
  184. c.colors.statusbar.url.success.https.fg = fg0
  185. # Foreground color of the URL in the statusbar when there's a warning.
  186. c.colors.statusbar.url.warn.fg = bright_purple
  187. ### tabs
  188. # Background color of the tab bar.
  189. c.colors.tabs.bar.bg = bg0
  190. # Color gradient start for the tab indicator.
  191. c.colors.tabs.indicator.start = bright_blue
  192. # Color gradient end for the tab indicator.
  193. c.colors.tabs.indicator.stop = bright_aqua
  194. # Color for the tab indicator on errors.
  195. c.colors.tabs.indicator.error = bright_red
  196. # Foreground color of unselected odd tabs.
  197. c.colors.tabs.odd.fg = fg2
  198. # Background color of unselected odd tabs.
  199. c.colors.tabs.odd.bg = bg2
  200. # Foreground color of unselected even tabs.
  201. c.colors.tabs.even.fg = c.colors.tabs.odd.fg
  202. # Background color of unselected even tabs.
  203. c.colors.tabs.even.bg = bg3
  204. # Foreground color of selected odd tabs.
  205. c.colors.tabs.selected.odd.fg = fg2
  206. # Background color of selected odd tabs.
  207. c.colors.tabs.selected.odd.bg = bg0
  208. # Foreground color of selected even tabs.
  209. c.colors.tabs.selected.even.fg = c.colors.tabs.selected.odd.fg
  210. # Background color of selected even tabs.
  211. c.colors.tabs.selected.even.bg = bg0
  212. # Background color of pinned unselected even tabs.
  213. c.colors.tabs.pinned.even.bg = bright_green
  214. # Foreground color of pinned unselected even tabs.
  215. c.colors.tabs.pinned.even.fg = bg2
  216. # Background color of pinned unselected odd tabs.
  217. c.colors.tabs.pinned.odd.bg = bright_green
  218. # Foreground color of pinned unselected odd tabs.
  219. c.colors.tabs.pinned.odd.fg = c.colors.tabs.pinned.even.fg
  220. # Background color of pinned selected even tabs.
  221. c.colors.tabs.pinned.selected.even.bg = bg0
  222. # Foreground color of pinned selected even tabs.
  223. c.colors.tabs.pinned.selected.even.fg = c.colors.tabs.selected.odd.fg
  224. # Background color of pinned selected odd tabs.
  225. c.colors.tabs.pinned.selected.odd.bg = c.colors.tabs.pinned.selected.even.bg
  226. # Foreground color of pinned selected odd tabs.
  227. c.colors.tabs.pinned.selected.odd.fg = c.colors.tabs.selected.odd.fg
  228. # Background color for webpages if unset (or empty to use the theme's
  229. # color).
  230. c.colors.webpage.bg = bg4