Fix config bugs
This commit is contained in:
parent
ab40f59b2e
commit
a49a486cef
@ -99,7 +99,7 @@ class NewConfig:
|
||||
('statusbar.fg', opt.StatusbarFgColor()),
|
||||
('statusbar.bg.error', opt.StatusbarBgErrorColor()),
|
||||
('statusbar.fg.error', opt.StatusbarFgErrorColor()),
|
||||
('statusbar.progress.pg', opt.StatusbarProgressBgColor()),
|
||||
('statusbar.progress.bg', opt.StatusbarProgressBgColor()),
|
||||
('statusbar.url.fg', opt.StatusbarUrlFgColor()),
|
||||
('statusbar.url.fg.success', opt.StatusbarUrlHoverFgColor()),
|
||||
('statusbar.url.fg.error', opt.StatusbarUrlErrorFgColor()),
|
||||
@ -118,7 +118,6 @@ class NewConfig:
|
||||
)),
|
||||
])
|
||||
|
||||
|
||||
def __getitem__(self, key):
|
||||
"""Get a section from the config."""
|
||||
return self.config[key]
|
||||
|
@ -179,8 +179,8 @@ class CompletionCategoryBgColor(template.ColorSettingValue):
|
||||
|
||||
"""Background color of the completion widget category headers."""
|
||||
|
||||
default = ("completion.category.bg = qlineargradient("
|
||||
"x1:0, y1:0, x2:0, y2:1, stop:0 #e4e4e4, stop:1 #dbdbdb")
|
||||
default = ("qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #e4e4e4, "
|
||||
"stop:1 #dbdbdb)")
|
||||
|
||||
|
||||
class CompletionCategoryTopBorderColor(template.ColorSettingValue):
|
||||
|
@ -63,7 +63,7 @@ class ColorDict(dict):
|
||||
|
||||
"""
|
||||
try:
|
||||
val = super().__getitem__(key)
|
||||
val = super().__getitem__(key).value
|
||||
except KeyError:
|
||||
return ''
|
||||
if 'fg' in key.split('.'):
|
||||
@ -84,7 +84,7 @@ class ColorDict(dict):
|
||||
|
||||
"""
|
||||
try:
|
||||
return super().__getitem__(key)
|
||||
return super().__getitem__(key).value
|
||||
except KeyError:
|
||||
return None
|
||||
|
||||
@ -107,7 +107,7 @@ class FontDict(dict):
|
||||
|
||||
"""
|
||||
try:
|
||||
val = super().__getitem__(key)
|
||||
val = super().__getitem__(key).value
|
||||
except KeyError:
|
||||
return ''
|
||||
else:
|
||||
@ -124,6 +124,6 @@ class FontDict(dict):
|
||||
|
||||
"""
|
||||
try:
|
||||
return super().__getitem__(key)
|
||||
return super().__getitem__(key).value
|
||||
except KeyError:
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user