From ba63965a25f92b20e5ebe2052853788d48eacaeb Mon Sep 17 00:00:00 2001 From: ZyX Date: Thu, 20 Feb 2014 21:33:49 +0400 Subject: [PATCH] Refactor some vim colorschemes to use group aliases --- .../config_files/colorschemes/vim/__main__.json | 15 +++++++++++++++ .../config_files/colorschemes/vim/default.json | 11 ++--------- .../config_files/colorschemes/vim/solarized.json | 11 ++--------- .../colorschemes/vim/solarizedlight.json | 11 ++--------- 4 files changed, 21 insertions(+), 27 deletions(-) create mode 100644 powerline/config_files/colorschemes/vim/__main__.json diff --git a/powerline/config_files/colorschemes/vim/__main__.json b/powerline/config_files/colorschemes/vim/__main__.json new file mode 100644 index 00000000..6bfc59dc --- /dev/null +++ b/powerline/config_files/colorschemes/vim/__main__.json @@ -0,0 +1,15 @@ +{ + "groups": { + "branch_clean": "branch", + "environment": "information:unimportant", + "file_size": "information:unimportant", + "file_format": "information:unimportant", + "file_encoding": "file_format", + "file_type": "file_format", + "branch": "information:additional", + "file_directory": "information:additional", + "file_name_empty": "file_directory", + "line_percent": "information:additional", + "position": "information:additional" + } +} diff --git a/powerline/config_files/colorschemes/vim/default.json b/powerline/config_files/colorschemes/vim/default.json index fae208de..b4f1b483 100644 --- a/powerline/config_files/colorschemes/vim/default.json +++ b/powerline/config_files/colorschemes/vim/default.json @@ -1,6 +1,8 @@ { "name": "Default color scheme", "groups": { + "information:unimportant": { "fg": "gray8", "bg": "gray2", "attr": [] }, + "information:additional": { "fg": "gray9", "bg": "gray4", "attr": [] }, "background": { "fg": "white", "bg": "gray2", "attr": [] }, "background:divider": { "fg": "gray6", "bg": "gray2", "attr": [] }, "mode": { "fg": "darkestgreen", "bg": "brightgreen", "attr": ["bold"] }, @@ -8,19 +10,11 @@ "modified_indicator": { "fg": "brightyellow", "bg": "gray4", "attr": ["bold"] }, "paste_indicator": { "fg": "white", "bg": "mediumorange", "attr": ["bold"] }, "readonly_indicator": { "fg": "brightestred", "bg": "gray4", "attr": [] }, - "branch": { "fg": "gray9", "bg": "gray4", "attr": [] }, "branch_dirty": { "fg": "brightyellow", "bg": "gray4", "attr": [] }, - "branch_clean": { "fg": "gray9", "bg": "gray4", "attr": [] }, "branch:divider": { "fg": "gray7", "bg": "gray4", "attr": [] }, - "file_directory": { "fg": "gray9", "bg": "gray4", "attr": [] }, "file_name": { "fg": "white", "bg": "gray4", "attr": ["bold"] }, "window_title": { "fg": "white", "bg": "gray4", "attr": [] }, - "file_size": { "fg": "gray8", "bg": "gray2", "attr": [] }, "file_name_no_file": { "fg": "gray9", "bg": "gray4", "attr": ["bold"] }, - "file_name_empty": { "fg": "gray9", "bg": "gray4", "attr": [] }, - "file_format": { "fg": "gray8", "bg": "gray2", "attr": [] }, - "file_encoding": { "fg": "gray8", "bg": "gray2", "attr": [] }, - "file_type": { "fg": "gray8", "bg": "gray2", "attr": [] }, "file_vcs_status": { "fg": "brightestred", "bg": "gray4", "attr": [] }, "file_vcs_status_M": { "fg": "brightyellow", "bg": "gray4", "attr": [] }, "file_vcs_status_A": { "fg": "brightgreen", "bg": "gray4", "attr": [] }, @@ -33,7 +27,6 @@ "virtcol_current_gradient": { "fg": "dark_GREEN_Orange_red", "bg": "gray10", "attr": [] }, "col_current": { "fg": "gray6", "bg": "gray10", "attr": [] }, "modified_buffers": { "fg": "brightyellow", "bg": "gray2", "attr": [] }, - "environment": { "fg": "gray8", "bg": "gray2", "attr": [] }, "error": { "fg": "brightestred", "bg": "darkred", "attr": ["bold"] }, "warning": { "fg": "brightyellow", "bg": "darkorange", "attr": ["bold"] }, "current_tag": { "fg": "gray9", "bg": "gray2", "attr": [] } diff --git a/powerline/config_files/colorschemes/vim/solarized.json b/powerline/config_files/colorschemes/vim/solarized.json index 95b0b4b3..a3703d74 100644 --- a/powerline/config_files/colorschemes/vim/solarized.json +++ b/powerline/config_files/colorschemes/vim/solarized.json @@ -1,6 +1,8 @@ { "name": "Solarized dark for vim", "groups": { + "information:additional": { "fg": "lightyellow", "bg": "darkgreencopper", "attr": [] }, + "information:unimportant": { "fg": "oldlace", "bg": "darkgreencopper", "attr": [] }, "background": { "fg": "oldlace", "bg": "royalblue5", "attr": [] }, "background:divider": { "fg": "lightskyblue4", "bg": "royalblue5", "attr": [] }, "mode": { "fg": "oldlace", "bg": "green", "attr": ["bold"] }, @@ -8,19 +10,12 @@ "modified_indicator": { "fg": "yellow", "bg": "darkgreencopper", "attr": ["bold"] }, "paste_indicator": { "fg": "oldlace", "bg": "orange", "attr": ["bold"] }, "readonly_indicator": { "fg": "red", "bg": "darkgreencopper", "attr": [] }, - "branch": { "fg": "lightyellow", "bg": "darkgreencopper", "attr": [] }, "branch_dirty": { "fg": "yellow", "bg": "darkgreencopper", "attr": [] }, - "branch_clean": { "fg": "lightyellow", "bg": "darkgreencopper", "attr": [] }, "branch:divider": { "fg": "gray61", "bg": "darkgreencopper", "attr": [] }, - "file_directory": { "fg": "lightyellow", "bg": "darkgreencopper", "attr": [] }, "file_name": { "fg": "oldlace", "bg": "darkgreencopper", "attr": ["bold"] }, "window_title": { "fg": "oldlace", "bg": "darkgreencopper", "attr": [] }, - "file_size": { "fg": "oldlace", "bg": "darkgreencopper", "attr": [] }, "file_name_no_file": { "fg": "oldlace", "bg": "darkgreencopper", "attr": ["bold"] }, - "file_name_empty": { "fg": "oldlace", "bg": "darkgreencopper", "attr": [] }, "file_format": { "fg": "gray61", "bg": "royalblue5", "attr": [] }, - "file_encoding": { "fg": "gray61", "bg": "royalblue5", "attr": [] }, - "file_type": { "fg": "gray61", "bg": "royalblue5", "attr": [] }, "file_vcs_status": { "fg": "red", "bg": "darkgreencopper", "attr": [] }, "file_vcs_status_M": { "fg": "yellow", "bg": "darkgreencopper", "attr": [] }, "file_vcs_status_A": { "fg": "green", "bg": "darkgreencopper", "attr": [] }, @@ -64,8 +59,6 @@ "file_name_no_file": { "fg": "royalblue5", "bg": "lightyellow", "attr": ["bold"] }, "file_name_empty": { "fg": "royalblue5", "bg": "lightyellow", "attr": [] }, "file_format": { "fg": "lightyellow", "bg": "darkgreencopper", "attr": [] }, - "file_encoding": { "fg": "lightyellow", "bg": "darkgreencopper", "attr": [] }, - "file_type": { "fg": "lightyellow", "bg": "darkgreencopper", "attr": [] }, "file_vcs_status": { "fg": "red", "bg": "lightyellow", "attr": [] }, "file_vcs_status_M": { "fg": "yellow", "bg": "lightyellow", "attr": [] }, "file_vcs_status_A": { "fg": "green", "bg": "lightyellow", "attr": [] }, diff --git a/powerline/config_files/colorschemes/vim/solarizedlight.json b/powerline/config_files/colorschemes/vim/solarizedlight.json index 69940e0d..cd86a7a8 100644 --- a/powerline/config_files/colorschemes/vim/solarizedlight.json +++ b/powerline/config_files/colorschemes/vim/solarizedlight.json @@ -1,6 +1,8 @@ { "name": "Solarized light for vim", "groups": { + "information:additional": { "fg": "royalblue5", "bg": "lightyellow", "attr": [] }, + "information:unimportant": { "fg": "gray61", "bg": "darkgreencopper", "attr": [] }, "background": { "fg": "gray13", "bg": "darkgreencopper", "attr": [] }, "background:divider": { "fg": "azure4", "bg": "darkgreencopper", "attr": [] }, "mode": { "fg": "oldlace", "bg": "green", "attr": ["bold"] }, @@ -8,19 +10,13 @@ "modified_indicator": { "fg": "yellow", "bg": "lightyellow", "attr": ["bold"] }, "paste_indicator": { "fg": "red", "bg": "lightyellow", "attr": ["bold"] }, "readonly_indicator": { "fg": "red", "bg": "lightyellow", "attr": [] }, - "branch": { "fg": "royalblue5", "bg": "lightyellow", "attr": [] }, "branch_dirty": { "fg": "yellow", "bg": "lightyellow", "attr": [] }, - "branch_clean": { "fg": "royalblue5", "bg": "lightyellow", "attr": [] }, "branch:divider": { "fg": "gray61", "bg": "lightyellow", "attr": [] }, - "file_directory": { "fg": "royalblue5", "bg": "lightyellow", "attr": [] }, "file_name": { "fg": "gray13", "bg": "lightyellow", "attr": ["bold"] }, "window_title": { "fg": "gray13", "bg": "lightyellow", "attr": [] }, "file_size": { "fg": "gray13", "bg": "lightyellow", "attr": [] }, "file_name_no_file": { "fg": "gray13", "bg": "lightyellow", "attr": ["bold"] }, "file_name_empty": { "fg": "gray13", "bg": "lightyellow", "attr": [] }, - "file_format": { "fg": "gray61", "bg": "darkgreencopper", "attr": [] }, - "file_encoding": { "fg": "gray61", "bg": "darkgreencopper", "attr": [] }, - "file_type": { "fg": "gray61", "bg": "darkgreencopper", "attr": [] }, "file_vcs_status": { "fg": "red", "bg": "lightyellow", "attr": [] }, "file_vcs_status_M": { "fg": "yellow", "bg": "lightyellow", "attr": [] }, "file_vcs_status_A": { "fg": "green", "bg": "lightyellow", "attr": [] }, @@ -32,7 +28,6 @@ "line_current_symbol": { "fg": "oldlace", "bg": "royalblue5", "attr": [] }, "virtcol_current_gradient": { "fg": "yellow_orange_red", "bg": "royalblue5", "attr": [] }, "col_current": { "fg": "lightskyblue4", "bg": "royalblue5", "attr": [] }, - "environment": { "fg": "gray61", "bg": "darkgreencopper", "attr": [] }, "error": { "fg": "gray13", "bg": "red", "attr": ["bold"] }, "warning": { "fg": "gray13", "bg": "lightyellow", "attr": ["bold"] }, "current_tag": { "fg": "gray13", "bg": "darkgreencopper", "attr": ["bold"] } @@ -64,8 +59,6 @@ "file_name_no_file": { "fg": "darkgreencopper", "bg": "royalblue5", "attr": ["bold"] }, "file_name_empty": { "fg": "darkgreencopper", "bg": "royalblue5", "attr": [] }, "file_format": { "fg": "royalblue5", "bg": "lightyellow", "attr": [] }, - "file_encoding": { "fg": "royalblue5", "bg": "lightyellow", "attr": [] }, - "file_type": { "fg": "royalblue5", "bg": "lightyellow", "attr": [] }, "file_vcs_status": { "fg": "red", "bg": "royalblue5", "attr": [] }, "file_vcs_status_M": { "fg": "yellow", "bg": "royalblue5", "attr": [] }, "file_vcs_status_A": { "fg": "green", "bg": "royalblue5", "attr": [] },