Added foreground color settings for statusbar messages.
This commit is contained in:
parent
41ecc0ad3d
commit
69f729dbe5
@ -804,18 +804,34 @@ def data(readonly=False):
|
|||||||
SettingValue(typ.QssColor(), 'red'),
|
SettingValue(typ.QssColor(), 'red'),
|
||||||
"Background color of the statusbar if there was an error."),
|
"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',
|
('statusbar.bg.warning',
|
||||||
SettingValue(typ.QssColor(), 'darkorange'),
|
SettingValue(typ.QssColor(), 'darkorange'),
|
||||||
"Background color of the statusbar if there is a warning."),
|
"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',
|
('statusbar.bg.prompt',
|
||||||
SettingValue(typ.QssColor(), 'darkblue'),
|
SettingValue(typ.QssColor(), 'darkblue'),
|
||||||
"Background color of the statusbar if there is a prompt."),
|
"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',
|
('statusbar.bg.insert',
|
||||||
SettingValue(typ.QssColor(), 'darkgreen'),
|
SettingValue(typ.QssColor(), 'darkgreen'),
|
||||||
"Background color of the statusbar in insert mode."),
|
"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',
|
('statusbar.progress.bg',
|
||||||
SettingValue(typ.QssColor(), 'white'),
|
SettingValue(typ.QssColor(), 'white'),
|
||||||
"Background color of the progress bar."),
|
"Background color of the progress bar."),
|
||||||
|
@ -97,26 +97,47 @@ class StatusBar(QWidget):
|
|||||||
{{ color['statusbar.bg'] }}
|
{{ color['statusbar.bg'] }}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QWidget#StatusBar QLabel {
|
||||||
|
{{ color['statusbar.fg'] }}
|
||||||
|
}
|
||||||
|
|
||||||
QWidget#StatusBar[insert_active="true"] {
|
QWidget#StatusBar[insert_active="true"] {
|
||||||
{{ color['statusbar.bg.insert'] }}
|
{{ color['statusbar.bg.insert'] }}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QWidget#StatusBar[insert_active="true"] QLabel {
|
||||||
|
{{ color['statusbar.fg.insert'] }}
|
||||||
|
}
|
||||||
|
|
||||||
QWidget#StatusBar[prompt_active="true"] {
|
QWidget#StatusBar[prompt_active="true"] {
|
||||||
{{ color['statusbar.bg.prompt'] }}
|
{{ color['statusbar.bg.prompt'] }}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QWidget#StatusBar[prompt_active="true"] QLabel {
|
||||||
|
{{ color['statusbar.fg.prompt'] }}
|
||||||
|
}
|
||||||
|
|
||||||
QWidget#StatusBar[severity="error"] {
|
QWidget#StatusBar[severity="error"] {
|
||||||
{{ color['statusbar.bg.error'] }}
|
{{ color['statusbar.bg.error'] }}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QWidget#StatusBar[severity="error"] QLabel {
|
||||||
|
{{ color['statusbar.fg.error'] }}
|
||||||
|
}
|
||||||
|
|
||||||
QWidget#StatusBar[severity="warning"] {
|
QWidget#StatusBar[severity="warning"] {
|
||||||
{{ color['statusbar.bg.warning'] }}
|
{{ color['statusbar.bg.warning'] }}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QWidget#StatusBar[severity="warning"] QLabel {
|
||||||
|
{{ color['statusbar.fg.warning'] }}
|
||||||
|
}
|
||||||
|
|
||||||
QLabel, QLineEdit {
|
QLabel, QLineEdit {
|
||||||
{{ color['statusbar.fg'] }}
|
{{ color['statusbar.fg'] }}
|
||||||
{{ font['statusbar'] }}
|
{{ font['statusbar'] }}
|
||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, win_id, parent=None):
|
def __init__(self, win_id, parent=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user