Merge remote-tracking branch 'origin/pr/4332'
This commit is contained in:
commit
cde94e7356
@ -166,11 +166,11 @@ class CompletionItemDelegate(QStyledItemDelegate):
|
|||||||
self._painter.save()
|
self._painter.save()
|
||||||
|
|
||||||
if self._opt.state & QStyle.State_Selected:
|
if self._opt.state & QStyle.State_Selected:
|
||||||
color = config.val.colors.completion.item.selected.fg
|
color = config.cache['colors.completion.item.selected.fg']
|
||||||
elif not self._opt.state & QStyle.State_Enabled:
|
elif not self._opt.state & QStyle.State_Enabled:
|
||||||
color = config.val.colors.completion.category.fg
|
color = config.cache['colors.completion.category.fg']
|
||||||
else:
|
else:
|
||||||
colors = config.val.colors.completion.fg
|
colors = config.cache['colors.completion.fg']
|
||||||
# if multiple colors are set, use different colors per column
|
# if multiple colors are set, use different colors per column
|
||||||
color = colors[col % len(colors)]
|
color = colors[col % len(colors)]
|
||||||
self._painter.setPen(color)
|
self._painter.setPen(color)
|
||||||
|
Loading…
Reference in New Issue
Block a user