Added foreground color settings for statusbar messages.

This commit is contained in:
Austin Anderson 2015-05-09 18:07:40 -04:00
parent 41ecc0ad3d
commit 69f729dbe5
2 changed files with 37 additions and 0 deletions

View File

@ -804,18 +804,34 @@ def data(readonly=False):
SettingValue(typ.QssColor(), 'red'),
"Background color of the statusbar if there was an error."),
('statusbar.fg.error',
SettingValue(typ.QssColor(), 'white'),
"Foreground color of the statusbar if there was an error."),
('statusbar.bg.warning',
SettingValue(typ.QssColor(), 'darkorange'),
"Background color of the statusbar if there is a warning."),
('statusbar.fg.warning',
SettingValue(typ.QssColor(), 'white'),
"Foreground color of the statusbar if there is a warning."),
('statusbar.bg.prompt',
SettingValue(typ.QssColor(), 'darkblue'),
"Background color of the statusbar if there is a prompt."),
('statusbar.fg.prompt',
SettingValue(typ.QssColor(), 'white'),
"Foreground color of the statusbar if there is a prompt."),
('statusbar.bg.insert',
SettingValue(typ.QssColor(), 'darkgreen'),
"Background color of the statusbar in insert mode."),
('statusbar.fg.insert',
SettingValue(typ.QssColor(), 'white'),
"Foreground color of the statusbar in insert mode."),
('statusbar.progress.bg',
SettingValue(typ.QssColor(), 'white'),
"Background color of the progress bar."),

View File

@ -97,26 +97,47 @@ class StatusBar(QWidget):
{{ color['statusbar.bg'] }}
}
QWidget#StatusBar QLabel {
{{ color['statusbar.fg'] }}
}
QWidget#StatusBar[insert_active="true"] {
{{ color['statusbar.bg.insert'] }}
}
QWidget#StatusBar[insert_active="true"] QLabel {
{{ color['statusbar.fg.insert'] }}
}
QWidget#StatusBar[prompt_active="true"] {
{{ color['statusbar.bg.prompt'] }}
}
QWidget#StatusBar[prompt_active="true"] QLabel {
{{ color['statusbar.fg.prompt'] }}
}
QWidget#StatusBar[severity="error"] {
{{ color['statusbar.bg.error'] }}
}
QWidget#StatusBar[severity="error"] QLabel {
{{ color['statusbar.fg.error'] }}
}
QWidget#StatusBar[severity="warning"] {
{{ color['statusbar.bg.warning'] }}
}
QWidget#StatusBar[severity="warning"] QLabel {
{{ color['statusbar.fg.warning'] }}
}
QLabel, QLineEdit {
{{ color['statusbar.fg'] }}
{{ font['statusbar'] }}
}
"""
def __init__(self, win_id, parent=None):