~tardypad/dotfiles

ref: e0559832d0222c315135f2044b903bc8147a7057 dotfiles/files/configs/qutebrowser/config.d/style.py -rw-r--r-- 9.6 KiB
e0559832 — Damien Tardy-Panis Decrease font size again 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# fonts
c.fonts.completion.category       = "bold 10pt monospace"
c.fonts.completion.entry          = "10pt monospace"
c.fonts.contextmenu               = "9 Source Sans Pro"
c.fonts.default_family            = "Source Code Pro"
c.fonts.default_size              = "10pt"
c.fonts.debug_console             = "10pt monospace"
c.fonts.downloads                 = "10pt Source Sans Pro"
c.fonts.hints                     = "bold 10pt monospace"
c.fonts.keyhint                   = "10pt monospace"
c.fonts.messages.error            = "10pt Source Sans Pro"
c.fonts.messages.info             = "10pt Source Sans Pro"
c.fonts.messages.warning          = "10pt Source Sans Pro"
c.fonts.prompts                   = "10pt Source Sans Pro"
c.fonts.statusbar                 = "10pt monospace"
c.fonts.tabs.selected             = "10pt Source Sans Pro"
c.fonts.tabs.unselected           = "10pt Source Sans Pro"
c.fonts.web.family.cursive        = ""
c.fonts.web.family.fantasy        = ""
c.fonts.web.family.fixed          = "Source Code Pro"
c.fonts.web.family.sans_serif     = "Source Sans Pro"
c.fonts.web.family.serif          = "Source Serif Pro"
c.fonts.web.family.standard       = "Source Sans Pro"
c.fonts.web.size.default          = 13
c.fonts.web.size.default_fixed    = 10
c.fonts.web.size.minimum          = 0
c.fonts.web.size.minimum_logical  = 6

# colors
colors = {
    'base00'                 : '#{color/base00/hex}',
    'base01'                 : '#{color/base01/hex}',
    'base02'                 : '#{color/base02/hex}',
    'base03'                 : '#{color/base03/hex}',
    'base04'                 : '#{color/base04/hex}',
    'base05'                 : '#{color/base05/hex}',
    'base06'                 : '#{color/base06/hex}',
    'base07'                 : '#{color/base07/hex}',
    'base08'                 : '#{color/base08/hex}',
    'base09'                 : '#{color/base09/hex}',
    'base0A'                 : '#{color/base0A/hex}',
    'base0B'                 : '#{color/base0B/hex}',
    'base0C'                 : '#{color/base0C/hex}',
    'base0D'                 : '#{color/base0D/hex}',
    'base0E'                 : '#{color/base0E/hex}',
    'base0F'                 : '#{color/base0F/hex}',
    'error'                  : '#{color/error/hex}',
    'warning'                : '#{color/warning/hex}',
    'notice'                 : '#{color/notice/hex}',
    'info'                   : '#{color/info/hex}',
    'success'                : '#{color/success/hex}',
    'background'             : '#{color/background/hex}',
    'foreground'             : '#{color/foreground/hex}',
    'popup_background'       : '#{color/popup_background/hex}',
    'popup_foreground'       : '#{color/popup_foreground/hex}',
    'popup_group_background' : '#{color/popup_group_background/hex}',
    'popup_group_foreground' : '#{color/popup_group_foreground/hex}',
    'current_item'           : '#{color/current_item/hex}'
}

c.colors.completion.category.bg                 = colors['popup_group_background']
c.colors.completion.category.border.bottom      = colors['popup_group_background']
c.colors.completion.category.border.top         = colors['popup_group_background']
c.colors.completion.category.fg                 = colors['popup_group_foreground']
c.colors.completion.even.bg                     = colors['popup_background']
c.colors.completion.fg                          = colors['popup_foreground']
c.colors.completion.item.selected.bg            = colors['current_item']
c.colors.completion.item.selected.border.bottom = colors['current_item']
c.colors.completion.item.selected.border.top    = colors['current_item']
c.colors.completion.item.selected.fg            = colors['base00']
c.colors.completion.item.selected.match.fg      = colors['base05']
c.colors.completion.match.fg                    = colors['base09']
c.colors.completion.odd.bg                      = colors['popup_background']
c.colors.completion.scrollbar.bg                = colors['popup_background']
c.colors.completion.scrollbar.fg                = colors['popup_foreground']

c.colors.contextmenu.menu.bg                    = colors['popup_background']
c.colors.contextmenu.menu.fg                    = colors['popup_foreground']
c.colors.contextmenu.disabled.bg                = colors['popup_background']
c.colors.contextmenu.disabled.fg                = colors['base03']
c.colors.contextmenu.selected.bg                = colors['current_item']
c.colors.contextmenu.selected.fg                = colors['base00']

c.colors.downloads.bar.bg                       = colors['background']
c.colors.downloads.error.bg                     = colors['error']
c.colors.downloads.error.fg                     = colors['base00']
c.colors.downloads.start.bg                     = colors['base0A']
c.colors.downloads.start.fg                     = colors['base00']
c.colors.downloads.stop.bg                      = colors['base0A']
c.colors.downloads.stop.fg                      = colors['base00']
c.colors.downloads.system.bg                    = "none"
c.colors.downloads.system.fg                    = "none"

c.colors.hints.bg                               = colors['base09']
c.colors.hints.fg                               = colors['base00']
c.colors.hints.match.fg                         = colors['base05']
c.hints.border                                  = "1px solid " + colors['base08']

c.colors.keyhint.bg                             = colors['base09']
c.colors.keyhint.fg                             = colors['base05']
c.colors.keyhint.suffix.fg                      = colors['base00']

c.colors.messages.error.bg                      = colors['error']
c.colors.messages.error.border                  = colors['error']
c.colors.messages.error.fg                      = colors['base00']
c.colors.messages.info.bg                       = colors['info']
c.colors.messages.info.border                   = colors['info']
c.colors.messages.info.fg                       = colors['base00']
c.colors.messages.warning.bg                    = colors['warning']
c.colors.messages.warning.border                = colors['warning']
c.colors.messages.warning.fg                    = colors['base00']

c.colors.prompts.bg                             = colors['base02']
c.colors.prompts.border                         = "1px solid " + colors['base05']
c.colors.prompts.fg                             = colors['base04']
c.colors.prompts.selected.bg                    = colors['current_item']

c.colors.statusbar.caret.bg                     = colors['background']
c.colors.statusbar.caret.fg                     = colors['notice']
c.colors.statusbar.caret.selection.bg           = colors['background']
c.colors.statusbar.caret.selection.fg           = colors['notice']
c.colors.statusbar.command.bg                   = colors['background']
c.colors.statusbar.command.fg                   = colors['foreground']
c.colors.statusbar.command.private.bg           = colors['background']
c.colors.statusbar.command.private.fg           = colors['notice']
c.colors.statusbar.insert.bg                    = colors['background']
c.colors.statusbar.insert.fg                    = colors['notice']
c.colors.statusbar.normal.bg                    = colors['background']
c.colors.statusbar.normal.fg                    = colors['foreground']
c.colors.statusbar.passthrough.bg               = colors['background']
c.colors.statusbar.passthrough.fg               = colors['notice']
c.colors.statusbar.private.bg                   = colors['base08']
c.colors.statusbar.private.fg                   = colors['base00']
c.colors.statusbar.progress.bg                  = colors['base0A']

c.colors.statusbar.url.error.fg                 = colors['error']
c.colors.statusbar.url.fg                       = colors['base05']
c.colors.statusbar.url.hover.fg                 = colors['base0B']
c.colors.statusbar.url.success.http.fg          = colors['base05']
c.colors.statusbar.url.success.https.fg         = colors['success']
c.colors.statusbar.url.warn.fg                  = colors['warning']

c.colors.tabs.bar.bg                            = colors['background']
c.colors.tabs.even.bg                           = colors['background']
c.colors.tabs.even.fg                           = colors['foreground']
c.colors.tabs.indicator.error                   = colors['error']
c.colors.tabs.indicator.start                   = colors['base0A']
c.colors.tabs.indicator.stop                    = colors['base0A']
c.colors.tabs.indicator.system                  = "none"
c.colors.tabs.odd.bg                            = colors['background']
c.colors.tabs.odd.fg                            = colors['foreground']
c.colors.tabs.pinned.even.bg                    = colors['background']
c.colors.tabs.pinned.even.fg                    = colors['foreground']
c.colors.tabs.pinned.odd.bg                     = colors['background']
c.colors.tabs.pinned.odd.fg                     = colors['foreground']
c.colors.tabs.pinned.selected.even.bg           = colors['base0A']
c.colors.tabs.pinned.selected.even.fg           = colors['base00']
c.colors.tabs.pinned.selected.odd.bg            = colors['base0A']
c.colors.tabs.pinned.selected.odd.fg            = colors['base00']
c.colors.tabs.selected.even.bg                  = colors['base0A']
c.colors.tabs.selected.even.fg                  = colors['base00']
c.colors.tabs.selected.odd.bg                   = colors['base0A']
c.colors.tabs.selected.odd.fg                   = colors['base00']

# many websites base their design
# on the assumption that the background is always white...
c.colors.webpage.bg                             = 'white'

# bars position
c.statusbar.position = 'bottom'
c.downloads.position = 'bottom'
c.tabs.position      = 'top'

c.tabs.max_width = 1000