diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-10-09 00:24:58 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-10-09 00:24:58 -0400 |
commit | a488a97c9eb58d8e9db224f3793c74f23d26b07e (patch) | |
tree | 16105cf5b2a2e0f8ab583a7cff483aff34c82a2c /themes | |
parent | 098be412f70bb6722c6751b70f939f08f70e196d (diff) |
Use an indicator to highlight matching braces.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/dark.lua | 8 | ||||
-rw-r--r-- | themes/light.lua | 6 | ||||
-rw-r--r-- | themes/term.lua | 11 |
3 files changed, 12 insertions, 13 deletions
diff --git a/themes/dark.lua b/themes/dark.lua index 71bfd636..b95d02f7 100644 --- a/themes/dark.lua +++ b/themes/dark.lua @@ -41,7 +41,7 @@ property['color.lavender'] = 0xE69999 property['color.blue'] = 0xE6994D -- Light colors. -property['color.light_red'] = 0x8080CC +--property['color.light_red'] = 0x8080CC property['color.light_yellow'] = 0x80CCCC property['color.light_green'] = 0x80CC80 --property['color.light_teal'] = 0xCCCC80 @@ -63,9 +63,7 @@ end property['style.default'] = 'font:%(font),size:%(fontsize),'.. 'fore:%(color.light_grey),back:%(color.black)' property['style.linenumber'] = 'fore:%(color.dark_grey),back:%(color.black)' -property['style.bracelight'] = 'fore:%(color.light_blue)' -property['style.bracebad'] = 'fore:%(color.light_red)' -property['style.controlchar'] = '%(style.nothing)' +--property['style.controlchar'] = property['style.indentguide'] = 'fore:%(color.light_black)' property['style.calltip'] = 'fore:%(color.light_grey),back:%(color.light_black)' @@ -121,6 +119,8 @@ for i = 25, 31 do -- fold margin markers end -- Indicators. +local INDIC_BRACEMATCH = textadept.editing.INDIC_BRACEMATCH +buffer.indic_fore[INDIC_BRACEMATCH] = property_int['color.light_grey'] local INDIC_HIGHLIGHT = textadept.editing.INDIC_HIGHLIGHT buffer.indic_fore[INDIC_HIGHLIGHT] = property_int['color.orange'] buffer.indic_alpha[INDIC_HIGHLIGHT] = 255 diff --git a/themes/light.lua b/themes/light.lua index b13cb0ed..52546980 100644 --- a/themes/light.lua +++ b/themes/light.lua @@ -63,9 +63,7 @@ end property['style.default'] = 'font:%(font),size:%(fontsize),'.. 'fore:%(color.light_black),back:%(color.white)' property['style.linenumber'] = 'fore:%(color.grey),back:%(color.white)' -property['style.bracelight'] = 'fore:%(color.light_blue)' -property['style.bracebad'] = 'fore:%(color.light_red)' -property['style.controlchar'] = '%(style.nothing)' +--property['style.controlchar'] = '%(style.nothing)' property['style.indentguide'] = 'fore:%(color.dark_white)' property['style.calltip'] = 'fore:%(color.light_black),back:%(color.dark_white)' @@ -121,6 +119,8 @@ for i = 25, 31 do -- fold margin markers end -- Indicators. +local INDIC_BRACEMATCH = textadept.editing.INDIC_BRACEMATCH +buffer.indic_fore[INDIC_BRACEMATCH] = property_int['color.grey'] local INDIC_HIGHLIGHT = textadept.editing.INDIC_HIGHLIGHT buffer.indic_fore[INDIC_HIGHLIGHT] = property_int['color.orange'] buffer.indic_alpha[INDIC_HIGHLIGHT] = 255 diff --git a/themes/term.lua b/themes/term.lua index bee6b44f..d268a856 100644 --- a/themes/term.lua +++ b/themes/term.lua @@ -21,19 +21,18 @@ property['color.white'] = 0xC0C0C0 property['color.light_black'] = 0x404040 property['color.light_red'] = 0x0000FF property['color.light_green'] = 0x00FF00 -property['color.light_yellow'] = 0x00FFFF +--property['color.light_yellow'] = 0x00FFFF property['color.light_blue'] = 0xFF0000 property['color.light_magenta'] = 0xFF00FF -property['color.light_cyan'] = 0xFFFF00 +--property['color.light_cyan'] = 0xFFFF00 property['color.light_white'] = 0xFFFFFF -- Predefined styles. property['style.default'] = 'fore:%(color.white),back:%(color.black)' -property['style.linenumber'] = '%(style.default)' +--property['style.linenumber'] = property['style.bracelight'] = 'fore:%(color.black),back:%(color.white)' -property['style.bracebad'] = 'fore:%(color.red),bold' -property['style.controlchar'] = '%(style.nothing)' -property['style.indentguide'] = '%(style.nothing)' +--property['style.controlchar'] = +--property['style.indentguide'] = property['style.calltip'] = '%(style.default)' -- Token styles. |