More monospace fonts
This commit is contained in:
parent
1bede88b62
commit
a907e913dd
@ -51,6 +51,12 @@ default_config = {
|
||||
},
|
||||
}
|
||||
|
||||
_MONOSPACE = ['Monospace', 'DejaVu Sans Mono', 'Consolas', 'Monaco',
|
||||
'Bitstream Vera Sans Mono', 'Andale Mono', 'Liberation Mono',
|
||||
'Courier New', 'Courier', 'monospace', 'Fixed', 'Terminal']
|
||||
|
||||
MONOSPACE = ', '.join(_MONOSPACE)
|
||||
|
||||
def init(confdir):
|
||||
global config, colordict
|
||||
config = Config(confdir)
|
||||
@ -61,7 +67,7 @@ def init(confdir):
|
||||
|
||||
def get_stylesheet(template):
|
||||
global colordict
|
||||
return template.strip().format(color=colordict)
|
||||
return template.strip().format(color=colordict, monospace=MONOSPACE)
|
||||
|
||||
class ColorDict(dict):
|
||||
def __getitem__(self, key):
|
||||
|
@ -15,7 +15,7 @@ from qutebrowser.commands.utils import CommandCompletionModel
|
||||
class CompletionView(QTreeView):
|
||||
_stylesheet = """
|
||||
QTreeView {{
|
||||
font-family: Monospace, Courier;
|
||||
font-family: {monospace};
|
||||
{color[completion.fg]}
|
||||
{color[completion.bg]}
|
||||
outline: 0;
|
||||
|
@ -21,7 +21,7 @@ class StatusBar(QWidget):
|
||||
* {{
|
||||
{color[statusbar.bg.__cur__]}
|
||||
{color[statusbar.fg.__cur__]}
|
||||
font-family: Monospace, Courier;
|
||||
font-family: {monospace};
|
||||
}}
|
||||
"""
|
||||
|
||||
|
@ -16,7 +16,7 @@ class TabWidget(QTabWidget):
|
||||
}}
|
||||
|
||||
QTabBar {{
|
||||
font-family: Monospace, Courier;
|
||||
font-family: {monospace};
|
||||
font-size: 8pt;
|
||||
}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user