mirror of
https://github.com/powerline/powerline.git
synced 2025-07-22 13:25:13 +02:00
Merge remote-tracking branch 'zyx-i/readd-pl-argument' into develop
This commit is contained in:
commit
7ccab8e436
@ -45,7 +45,7 @@ segment_getters = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def gen_segment_getter(ext, path, theme_configs, default_module=None):
|
def gen_segment_getter(pl, ext, path, theme_configs, default_module=None):
|
||||||
data = {
|
data = {
|
||||||
'default_module': default_module or 'powerline.segments.' + ext,
|
'default_module': default_module or 'powerline.segments.' + ext,
|
||||||
'path': path,
|
'path': path,
|
||||||
|
@ -44,7 +44,7 @@ class Theme(object):
|
|||||||
theme_configs = [theme_config]
|
theme_configs = [theme_config]
|
||||||
if top_theme_config:
|
if top_theme_config:
|
||||||
theme_configs.append(top_theme_config)
|
theme_configs.append(top_theme_config)
|
||||||
get_segment = gen_segment_getter(ext, common_config['paths'], theme_configs, theme_config.get('default_module'))
|
get_segment = gen_segment_getter(pl, ext, common_config['paths'], theme_configs, theme_config.get('default_module'))
|
||||||
for side in ['left', 'right']:
|
for side in ['left', 'right']:
|
||||||
for segment in theme_config['segments'].get(side, []):
|
for segment in theme_config['segments'].get(side, []):
|
||||||
segment = get_segment(segment, side)
|
segment = get_segment(segment, side)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user