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. # don't define that in this stylesheet.
STYLESHEET = """ STYLESHEET = """
QTreeView { QTreeView {
{{font['completion']}} {{ font['completion'] }}
{{color['completion.bg']}} {{ color['completion.bg'] }}
outline: 0; outline: 0;
} }
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'] }};
border-bottom: 1px solid border-bottom: 1px solid
{{color['completion.category.border.bottom']}}; {{ color['completion.category.border.bottom'] }};
} }
QTreeView::item:selected, QTreeView::item:selected:hover { QTreeView::item:selected, QTreeView::item:selected:hover {
border-top: 1px solid border-top: 1px solid
{{color['completion.item.selected.border.top']}}; {{ color['completion.item.selected.border.top'] }};
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'] }}
} }
QTreeView:item::hover { QTreeView:item::hover {

View File

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

View File

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

View File

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

View File

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

View File

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