Add spaces in templates.

This commit is contained in:
Florian Bruhin 2014-08-28 17:54:11 +02:00
parent a6ae129595
commit dd3489b936
6 changed files with 24 additions and 23 deletions

View File

@ -59,24 +59,25 @@ class CompletionView(QTreeView):
# don't define that in this stylesheet.
STYLESHEET = """
QTreeView {
{{font['completion']}}
{{color['completion.bg']}}
{{ font['completion'] }}
{{ color['completion.bg'] }}
outline: 0;
}
QTreeView::item:disabled {
{{color['completion.category.bg']}}
border-top: 1px solid {{color['completion.category.border.top']}};
{{ color['completion.category.bg'] }}
border-top: 1px solid
{{ color['completion.category.border.top'] }};
border-bottom: 1px solid
{{color['completion.category.border.bottom']}};
{{ color['completion.category.border.bottom'] }};
}
QTreeView::item:selected, QTreeView::item:selected:hover {
border-top: 1px solid
{{color['completion.item.selected.border.top']}};
{{ color['completion.item.selected.border.top'] }};
border-bottom: 1px solid
{{color['completion.item.selected.border.bottom']}};
{{color['completion.item.selected.bg']}}
{{ color['completion.item.selected.border.bottom'] }};
{{ color['completion.item.selected.bg'] }}
}
QTreeView:item::hover {

View File

@ -190,7 +190,7 @@ class CompletionItemDelegate(QStyledItemDelegate):
self._doc.setDefaultTextOption(text_option)
self._doc.setDefaultStyleSheet(style.get_stylesheet("""
.highlight {
{{color['completion.match.fg']}}
{{ color['completion.match.fg'] }}
}
"""))
self._doc.setDocumentMargin(2)

View File

@ -38,8 +38,8 @@ class DownloadView(QListView):
STYLESHEET = """
QListView {
{{color['downloads.bg.bar']}}
{{font['downloads']}}
{{ color['downloads.bg.bar'] }}
{{ font['downloads'] }}
}
QListView::item {

View File

@ -94,24 +94,24 @@ class StatusBar(QWidget):
STYLESHEET = """
QWidget#StatusBar {
{{color['statusbar.bg']}}
{{ color['statusbar.bg'] }}
}
QWidget#StatusBar[insert_active="true"] {
{{color['statusbar.bg.insert']}}
{{ color['statusbar.bg.insert'] }}
}
QWidget#StatusBar[prompt_active="true"] {
{{color['statusbar.bg.prompt']}}
{{ color['statusbar.bg.prompt'] }}
}
QWidget#StatusBar[error="true"] {
{{color['statusbar.bg.error']}}
{{ color['statusbar.bg.error'] }}
}
QWidget {
{{color['statusbar.fg']}}
{{font['statusbar']}}
{{ color['statusbar.fg'] }}
{{ font['statusbar'] }}
}
"""

View File

@ -40,7 +40,7 @@ class Progress(QProgressBar):
}
QProgressBar::chunk {
{{color['statusbar.progress.bg']}}
{{ color['statusbar.progress.bg'] }}
}
"""

View File

@ -54,23 +54,23 @@ class UrlText(textbase.TextBase):
STYLESHEET = """
QLabel#UrlText[urltype="normal"] {
{{color['statusbar.url.fg']}}
{{ color['statusbar.url.fg'] }}
}
QLabel#UrlText[urltype="success"] {
{{color['statusbar.url.fg.success']}}
{{ color['statusbar.url.fg.success'] }}
}
QLabel#UrlText[urltype="error"] {
{{color['statusbar.url.fg.error']}}
{{ color['statusbar.url.fg.error'] }}
}
QLabel#UrlText[urltype="warn"] {
{{color['statusbar.url.fg.warn']}}
{{ color['statusbar.url.fg.warn'] }}
}
QLabel#UrlText[urltype="hover"] {
{{color['statusbar.url.fg.hover']}}
{{ color['statusbar.url.fg.hover'] }}
}
"""