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