Fix completion coloring

This commit is contained in:
Florian Bruhin 2014-06-21 17:50:29 +02:00
parent 664079c728
commit 14bcdafe47

View File

@ -57,6 +57,8 @@ class CompletionView(QTreeView):
resize_completion: Emitted when the completion should be resized. resize_completion: Emitted when the completion should be resized.
""" """
# Drawing the item foreground will be done by CompletionItemDelegate, so we
# don't define that in this stylesheet.
STYLESHEET = """ STYLESHEET = """
QTreeView {{ QTreeView {{
{font[completion]} {font[completion]}
@ -64,11 +66,6 @@ class CompletionView(QTreeView):
outline: 0; outline: 0;
}} }}
QTreeView::item:enabled {{
{color[completion.item.fg]}
{color[completion.item.bg]}
}}
QTreeView::item:disabled {{ QTreeView::item:disabled {{
{color[completion.category.bg]} {color[completion.category.bg]}
border-top: 1px solid {color[completion.category.border.top]}; border-top: 1px solid {color[completion.category.border.top]};
@ -81,7 +78,6 @@ class CompletionView(QTreeView):
border-bottom: 1px solid border-bottom: 1px solid
{color[completion.item.selected.border.bottom]}; {color[completion.item.selected.border.bottom]};
{color[completion.item.selected.bg]} {color[completion.item.selected.bg]}
{color[completion.item.selected.fg]}
}} }}
""" """
COLUMN_WIDTHS = (20, 70, 10) COLUMN_WIDTHS = (20, 70, 10)