Alternate row colors in completion.
This commit is contained in:
parent
ccce2eddad
commit
001bf982e5
@ -59,6 +59,7 @@ class CompletionView(QTreeView):
|
||||
QTreeView {
|
||||
{{ font['completion'] }}
|
||||
{{ color['completion.bg'] }}
|
||||
alternate-background-color: {{ color['completion.alternate-bg'] }};
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
@ -107,6 +108,7 @@ class CompletionView(QTreeView):
|
||||
style.set_register_stylesheet(self)
|
||||
self.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Minimum)
|
||||
self.setHeaderHidden(True)
|
||||
self.setAlternatingRowColors(True)
|
||||
self.setIndentation(0)
|
||||
self.setItemsExpandable(False)
|
||||
self.setExpandsOnDoubleClick(False)
|
||||
|
@ -670,6 +670,10 @@ DATA = collections.OrderedDict([
|
||||
SettingValue(typ.QssColor(), '#333333'),
|
||||
"Background color of the completion widget."),
|
||||
|
||||
('completion.alternate-bg',
|
||||
SettingValue(typ.QssColor(), '#444444'),
|
||||
"Alternating background color of the completion widget."),
|
||||
|
||||
('completion.item.bg',
|
||||
SettingValue(typ.QssColor(), '${completion.bg}'),
|
||||
"Background color of completion widget items."),
|
||||
|
Loading…
Reference in New Issue
Block a user