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):
|
def init(confdir):
|
||||||
global config, colordict
|
global config, colordict
|
||||||
config = Config(confdir)
|
config = Config(confdir)
|
||||||
@ -61,7 +67,7 @@ def init(confdir):
|
|||||||
|
|
||||||
def get_stylesheet(template):
|
def get_stylesheet(template):
|
||||||
global colordict
|
global colordict
|
||||||
return template.strip().format(color=colordict)
|
return template.strip().format(color=colordict, monospace=MONOSPACE)
|
||||||
|
|
||||||
class ColorDict(dict):
|
class ColorDict(dict):
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
|
@ -15,7 +15,7 @@ from qutebrowser.commands.utils import CommandCompletionModel
|
|||||||
class CompletionView(QTreeView):
|
class CompletionView(QTreeView):
|
||||||
_stylesheet = """
|
_stylesheet = """
|
||||||
QTreeView {{
|
QTreeView {{
|
||||||
font-family: Monospace, Courier;
|
font-family: {monospace};
|
||||||
{color[completion.fg]}
|
{color[completion.fg]}
|
||||||
{color[completion.bg]}
|
{color[completion.bg]}
|
||||||
outline: 0;
|
outline: 0;
|
||||||
|
@ -21,7 +21,7 @@ class StatusBar(QWidget):
|
|||||||
* {{
|
* {{
|
||||||
{color[statusbar.bg.__cur__]}
|
{color[statusbar.bg.__cur__]}
|
||||||
{color[statusbar.fg.__cur__]}
|
{color[statusbar.fg.__cur__]}
|
||||||
font-family: Monospace, Courier;
|
font-family: {monospace};
|
||||||
}}
|
}}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ class TabWidget(QTabWidget):
|
|||||||
}}
|
}}
|
||||||
|
|
||||||
QTabBar {{
|
QTabBar {{
|
||||||
font-family: Monospace, Courier;
|
font-family: {monospace};
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user