aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arctic Ice Studio <development@arcticicestudio.com>2017-10-01 10:04:45 +0200
committerGravatar Arctic Ice Studio <development@arcticicestudio.com>2017-10-01 10:04:45 +0200
commit30f0e1bec57685bee7ebc2475146dcca9580c5e0 (patch)
tree35c034f0bc919d3568bda6d141e18d110e12ebe8
parent81fef161be188b947b01d6d40f52186ce8c4ce12 (diff)
downloadnord-vim-30f0e1bec57685bee7ebc2475146dcca9580c5e0.tar.gz
Optimize uniform status lines theme config
The variable has been renamed to "nord_uniform_status_lines" to better match the name scheme. The documentation style has been updated and preview screenshots have been added. GH-37
-rw-r--r--README.md17
-rwxr-xr-xassets/scrot-config-uniform-status-lines-default.pngbin0 -> 39481 bytes
-rwxr-xr-xassets/scrot-config-uniform-status-lines.pngbin0 -> 39095 bytes
-rwxr-xr-xcolors/nord.vim14
4 files changed, 16 insertions, 15 deletions
diff --git a/README.md b/README.md
index 45cd795..4b72403 100644
--- a/README.md
+++ b/README.md
@@ -20,6 +20,7 @@ Nord Vim is a 16 colorspace theme build to run in GUI- and terminal mode with su
- [Activation](#activation)
- [Configuration](#configuration)
- [Italic comments](#italic-comments)
+ - [Uniform status lines](#uniform-status-lines)
- [Plugin Support](#plugin-support)
- [UI Plugins](#ui-plugins)
- [Language Plugins](#language-plugins)
@@ -114,20 +115,20 @@ It can be enabled by setting the `g:nord_italic_comments` variable to `1`.
let g:nord_italic_comments = 1
```
-### Uniform StatusLine Backgrund
+### Uniform status lines
-Allow StatusLine backgrounds to be uniform.
+Enables uniform activate- and inactive status lines using `nord3` as background.
-By default, Nord uses a slightly brighter background for the current split buffer.
-This is designed to draw attention to the currently active buffer without being
-distracting.
+By default, Nord Vim uses a slightly brighter background for the current split buffer. This is designed to draw attention to the currently active buffer without being distracting.
+
+If the user desires the backgrounds to be a uniform color, `g:nord_uniform_status_lines` can be set to `1`:
-However, if the user desires the backgrounds to be a uniform color,
-`g:nord_statusline_uniform` can be set to `1` as follows:
```vim
-let g:nord_statusline_uniform = 1
+let g:nord_uniform_status_lines = 1
```
+<align="center"><strong>Default status lines</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-vim/develop/assets/scrot-config-uniform-status-lines-default.png"/><br><strong>Uniform status lines</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-vim/develop/assets/scrot-config-uniform-status-lines.png"/></p>
+
## Plugin Support
Nord Vim provides support for many third-party language- and the UI plugins.
diff --git a/assets/scrot-config-uniform-status-lines-default.png b/assets/scrot-config-uniform-status-lines-default.png
new file mode 100755
index 0000000..4784f71
--- /dev/null
+++ b/assets/scrot-config-uniform-status-lines-default.png
Binary files differ
diff --git a/assets/scrot-config-uniform-status-lines.png b/assets/scrot-config-uniform-status-lines.png
new file mode 100755
index 0000000..74b6b3d
--- /dev/null
+++ b/assets/scrot-config-uniform-status-lines.png
Binary files differ
diff --git a/colors/nord.vim b/colors/nord.vim
index 1c394ef..bbff773 100755
--- a/colors/nord.vim
+++ b/colors/nord.vim
@@ -52,8 +52,8 @@ if !exists('g:nord_italic_comments')
let g:nord_italic_comments = 0
endif
-if !exists('g:nord_statusline_uniform')
- let g:nord_statusline_uniform = 0
+if !exists('g:nord_uniform_status_lines')
+ let g:nord_uniform_status_lines = 0
endif
function! s:hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp)
@@ -131,12 +131,12 @@ call s:hi("ErrorMsg", s:nord4_gui, s:nord11_gui, "NONE", s:nord11_term, "", "")
call s:hi("ModeMsg", s:nord4_gui, "", "", "", "", "")
call s:hi("MoreMsg", s:nord4_gui, "", "", "", "", "")
call s:hi("Question", s:nord4_gui, "", "NONE", "", "", "")
-if g:nord_statusline_uniform == 0
- call s:hi("StatusLine", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "")
- call s:hi("StatusLineNC", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "")
+if g:nord_uniform_status_lines == 0
+ call s:hi("StatusLine", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "")
+ call s:hi("StatusLineNC", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "")
else
- call s:hi("StatusLine", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "")
- call s:hi("StatusLineNC", s:nord4_gui, s:nord3_gui, "NONE", s:nord3_term, "NONE", "")
+ call s:hi("StatusLine", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "")
+ call s:hi("StatusLineNC", s:nord4_gui, s:nord3_gui, "NONE", s:nord3_term, "NONE", "")
endif
call s:hi("WarningMsg", s:nord0_gui, s:nord13_gui, s:nord1_term, s:nord13_term, "", "")
call s:hi("WildMenu", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "", "")