Lowered the color change percent option default down to 0.05

This commit is contained in:
Nate Kane 2010-12-10 23:19:39 +10:00
parent cc79a2eca9
commit f802cd2fb5
3 changed files with 11 additions and 11 deletions

View File

@ -106,13 +106,13 @@ endfunction
" colorscheme is being used.
"
function! indent_guides#lighten_or_darken_color(color)
let percent = g:indent_guides_auto_colors_change_percent
let percent = g:indent_guides_color_change_percent
let new_color = (&g:background == 'dark') ?
\ color_helper#hex_color_lighten(a:color, percent) :
\ color_helper#hex_color_darken (a:color, percent)
let new_color = (&g:background == 'dark') ?
\ color_helper#hex_color_lighten(a:color, percent) :
\ color_helper#hex_color_darken (a:color, percent)
return new_color
return new_color
endfunction
"

View File

@ -56,12 +56,12 @@ Default: 1. Values: 0 or 1.
let g:indent_guides_auto_colors = 1
<
*'indent_guides_auto_colors_change_percent'*
*'indent_guides_color_change_percent'*
Use this option to control the percent at which the highlight colors will be
lightened or darkened.
Default: 0.20. Values: between 0 and 1.
Default: 0.05. Values: between 0 and 1.
>
let g:indent_guides_auto_colors_change_percent = 0.20
let g:indent_guides_color_change_percent = 0.05
<
==============================================================================

View File

@ -27,9 +27,9 @@ let g:indent_guides_auto_colors =
\ exists('g:indent_guides_auto_colors') ?
\ g:indent_guides_auto_colors : 1
let g:indent_guides_auto_colors_change_percent =
\ exists('g:indent_guides_auto_colors_change_percent') ?
\ g:indent_guides_auto_colors_change_percent : 0.20
let g:indent_guides_color_change_percent =
\ exists('g:indent_guides_color_change_percent') ?
\ g:indent_guides_color_change_percent : 0.05
let g:indent_guides_debug =
\ exists('g:indent_guides_debug') ?