Significantly reduced the size of the bar stylesheet.

This commit is contained in:
Austin Anderson 2015-06-04 22:30:40 -04:00
parent ebc013ac2a
commit 34d4c08374

View File

@ -106,90 +106,56 @@ class StatusBar(QWidget):
_caret_mode = CaretMode.off _caret_mode = CaretMode.off
STYLESHEET = """ STYLESHEET = """
QWidget#StatusBar {
QWidget#StatusBar,
QWidget#StatusBar * {
{{ font['statusbar'] }}
{{ color['statusbar.bg'] }} {{ color['statusbar.bg'] }}
}
QWidget#StatusBar QLabel {
{{ color['statusbar.fg'] }} {{ color['statusbar.fg'] }}
} }
QWidget#StatusBar QLineEdit { QWidget#StatusBar[caret_mode="on"],
{{ color['statusbar.fg'] }} QWidget#StatusBar[caret_mode="on"] * {
}
QWidget#StatusBar[caret_mode="on"] QLabel {
{{ color['statusbar.fg.caret'] }} {{ color['statusbar.fg.caret'] }}
}
QWidget#StatusBar[caret_mode="on"] {
{{ color['statusbar.bg.caret'] }} {{ color['statusbar.bg.caret'] }}
} }
QWidget#StatusBar[caret_mode="selection"] QLabel { QWidget#StatusBar[caret_mode="selection"],
QWidget#StatusBar[caret_mode="selection"] * {
{{ color['statusbar.fg.caret-selection'] }} {{ color['statusbar.fg.caret-selection'] }}
}
QWidget#StatusBar[caret_mode="selection"] {
{{ color['statusbar.bg.caret-selection'] }} {{ color['statusbar.bg.caret-selection'] }}
} }
QWidget#StatusBar[prompt_active="true"] { QWidget#StatusBar[severity="error"],
{{ color['statusbar.bg.prompt'] }} QWidget#StatusBar[severity="error"] * {
} {{ color['statusbar.fg.error'] }}
QWidget#StatusBar[severity="error"] {
{{ color['statusbar.bg.error'] }} {{ color['statusbar.bg.error'] }}
} }
QWidget#StatusBar[severity="error"] QLabel { QWidget#StatusBar[severity="warning"],
{{ color['statusbar.fg.error'] }} QWidget#StatusBar[severity="warning"] * {
} {{ color['statusbar.fg.warning'] }}
QWidget#StatusBar[severity="warning"] {
{{ color['statusbar.bg.warning'] }} {{ color['statusbar.bg.warning'] }}
} }
QWidget#StatusBar[severity="warning"] QLabel { QWidget#StatusBar[prompt_active="true"],
{{ color['statusbar.fg.warning'] }} QWidget#StatusBar[prompt_active="true"] * {
} {{ color['statusbar.fg.prompt'] }}
QWidget#StatusBar[prompt_active="true"] {
{{ color['statusbar.bg.prompt'] }} {{ color['statusbar.bg.prompt'] }}
} }
QWidget#StatusBar[prompt_active="true"] QLabel { QWidget#StatusBar[insert_active="true"],
{{ color['statusbar.fg.prompt'] }} QWidget#StatusBar[insert_active="true"] * {
} {{ color['statusbar.fg.insert'] }}
QWidget#StatusBar[prompt_active="true"] QLineEdit {
{{ color['statusbar.fg.prompt'] }}
}
QWidget#StatusBar[insert_active="true"] {
{{ color['statusbar.bg.insert'] }} {{ color['statusbar.bg.insert'] }}
} }
QWidget#StatusBar[insert_active="true"] QLabel { QWidget#StatusBar[command_active="true"],
{{ color['statusbar.fg.insert'] }} QWidget#StatusBar[command_active="true"] * {
} {{ color['statusbar.fg.command'] }}
QWidget#StatusBar[command_active="true"] {
{{ color['statusbar.bg.command'] }} {{ color['statusbar.bg.command'] }}
} }
QWidget#StatusBar[command_active="true"] QLabel {
{{ color['statusbar.fg.command'] }}
}
QWidget#StatusBar[command_active="true"] QLineEdit {
{{ color['statusbar.fg.command'] }}
}
QLabel, QLineEdit {
{{ font['statusbar'] }}
}
""" """
def __init__(self, win_id, parent=None): def __init__(self, win_id, parent=None):