commit resolving issue #1395
This commit is contained in:
parent
f9c09a1f43
commit
212d5fe932
@ -206,7 +206,7 @@ class CompletionItemDelegate(QStyledItemDelegate):
|
||||
else:
|
||||
self._doc.setPlainText(self._opt.text)
|
||||
else:
|
||||
self._doc.setHtml('<b>{}</b>'.format(html.escape(self._opt.text)))
|
||||
self._doc.setHtml('{}'.format(html.escape(self._opt.text)))
|
||||
|
||||
def _draw_focus_rect(self):
|
||||
"""Draw the focus rectangle of an ItemViewItem."""
|
||||
|
@ -69,6 +69,8 @@ class CompletionView(QTreeView):
|
||||
{{ color['completion.category.border.top'] }};
|
||||
border-bottom: 1px solid
|
||||
{{ color['completion.category.border.bottom'] }};
|
||||
font: {{ config.get('completion', 'bold') }};
|
||||
|
||||
}
|
||||
|
||||
QTreeView::item:selected, QTreeView::item:selected:hover {
|
||||
|
@ -466,6 +466,18 @@ def data(readonly=False):
|
||||
SettingValue(typ.Int(minval=0), '2'),
|
||||
"Padding of scrollbar handle in completion window (in px)."),
|
||||
|
||||
('_monospace',
|
||||
SettingValue(typ.Font(), 'Terminus, Monospace, '
|
||||
'"DejaVu Sans Mono", Monaco, '
|
||||
'"Bitstream Vera Sans Mono", "Andale Mono", '
|
||||
'"Courier New", Courier, "Liberation Mono", '
|
||||
'monospace, Fixed, Consolas, Terminal'),
|
||||
"Default monospace fonts."),
|
||||
|
||||
('bold',
|
||||
SettingValue(typ.Font(), 'bold' + DEFAULT_FONT_SIZE + ' ${_monospace}' ),
|
||||
"Font used in the completion fonts."),
|
||||
|
||||
readonly=readonly
|
||||
)),
|
||||
|
||||
@ -1244,6 +1256,7 @@ def data(readonly=False):
|
||||
SettingValue(typ.Font(), DEFAULT_FONT_SIZE + ' ${_monospace}'),
|
||||
"Font used in the completion widget."),
|
||||
|
||||
|
||||
('tabbar',
|
||||
SettingValue(typ.QtFont(), DEFAULT_FONT_SIZE + ' ${_monospace}'),
|
||||
"Font used in the tab bar."),
|
||||
|
Loading…
Reference in New Issue
Block a user