diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2009-01-24 15:56:26 -0500 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2009-01-24 15:56:26 -0500 |
commit | f0456d89738b562917a820b986fc038cd70235cb (patch) | |
tree | 8fe12e00d68c49847ac4889550c6adeb9bbf3fda /themes | |
parent | 60544f1550999df6a55dbdfc2cbd7542fecb3314 (diff) |
Use lexer themes defined in Textadept's themes/, not scintilla-st's themes/.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/dark/lexer.lua | 58 | ||||
-rw-r--r-- | themes/light/lexer.lua | 65 | ||||
-rw-r--r-- | themes/scite/lexer.lua | 57 |
3 files changed, 180 insertions, 0 deletions
diff --git a/themes/dark/lexer.lua b/themes/dark/lexer.lua new file mode 100644 index 00000000..9138e11b --- /dev/null +++ b/themes/dark/lexer.lua @@ -0,0 +1,58 @@ +-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. +-- Dark lexer theme for Textadept. + +module('lexer', package.seeall) + +colors = { + green = color('4D', '99', '4D'), + blue = color('40', '80', 'C0'), + red = color('99', '4C', '4C'), + yellow = color('99', '99', '4D'), + teal = color('4D', '99', '99'), + white = color('AA', 'AA', 'AA'), + black = color('33', '33', '33'), + grey = color('99', '99', '99'), + purple = color('99', '4D', '99'), + orange = color('C0', '80', '40'), +} + +style_nothing = style { } +style_char = style { fore = colors.red, bold = true } +style_class = style { fore = colors.white, underline = true } +style_comment = style { fore = colors.blue, bold = true } +style_constant = style { fore = colors.teal, bold = true } +style_definition = style { fore = colors.red, bold = true } +style_error = style { fore = colors.red, italic = true } +style_function = style { fore = colors.white, bold = true } +style_keyword = style { fore = colors.yellow, bold = true } +style_number = style { fore = colors.teal } +style_operator = style { fore = colors.white, bold = true } +style_string = style { fore = colors.green, bold = true } +style_preproc = style { fore = colors.blue } +style_tag = style { fore = colors.teal, bold = true } +style_type = style { fore = colors.green } +style_variable = style { fore = colors.white, italic = true } +style_embedded = style_tag..{ back = color('44', '44', '44') } +style_identifier = style_nothing + +-- Default styles. +local font_face = '!Bitstream Vera Sans Mono' +local font_size = 10 +if WIN32 then + font_face = '!Courier New' +elseif MAC then + font_face = '!Monaco' + font_size = 12 +end +style_default = style{ + font = font_face, + size = font_size, + fore = colors.white, + back = colors.black +} +style_line_number = style { fore = colors.black, back = colors.grey } +style_bracelight = style { fore = color('66', '99', 'FF'), bold = true } +style_bracebad = style { fore = color('FF', '66', '99'), bold = true } +style_controlchar = style_nothing +style_indentguide = style { fore = colors.grey, back = colors.white } +style_calltip = style { fore = colors.white, back = color('44', '44', '44') } diff --git a/themes/light/lexer.lua b/themes/light/lexer.lua new file mode 100644 index 00000000..67a977dc --- /dev/null +++ b/themes/light/lexer.lua @@ -0,0 +1,65 @@ +-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. +-- Light lexer theme for Textadept. + +module('lexer', package.seeall) + +colors = { + green = color('4D', '99', '4D'), + blue = color('4D', '4D', '99'), + red = color('99', '4C', '4C'), + yellow = color('99', '99', '4D'), + teal = color('4D', '99', '99'), + white = color('EE', 'EE', 'EE'), + black = color('33', '33', '33'), + grey = color('AA', 'AA', 'AA'), + purple = color('99', '4D', '99'), + orange = color('C0', '80', '40'), + lgreen = color('80', 'C0', '40'), + lblue = color('40', '80', 'C0'), + lred = color('C0', '40', '40'), + lyellow = color('C0', 'C0', '40'), + lteal = color('40', 'C0', 'C0'), + lpurple = color('C0', '40', '80'), + lorange = color('C0', '80', '40'), +} + +style_nothing = style { } +style_char = style { fore = colors.red, bold = true } +style_class = style { fore = colors.black, underline = true } +style_comment = style { fore = colors.lblue, bold = true } +style_constant = style { fore = colors.teal, bold = true } +style_definition = style { fore = colors.red, bold = true } +style_error = style { fore = colors.lred } +style_function = style { fore = colors.blue, bold = true } +style_keyword = style { fore = colors.yellow, bold = true } +style_number = style { fore = colors.teal } +style_operator = style { fore = colors.black, bold = true } +style_string = style { fore = colors.green, bold = true } +style_preproc = style { fore = colors.red } +style_tag = style { fore = colors.teal, bold = true } +style_type = style { fore = colors.green } +style_variable = style { fore = colors.red } +style_embedded = style_tag..{ back = color('DD', 'DD', 'DD') } +style_identifier = style_nothing + +-- Default styles. +local font_face = '!Bitstream Vera Sans Mono' +local font_size = 10 +if WIN32 then + font_face = '!Courier New' +elseif MAC then + font_face = '!Monaco' + font_size = 12 +end +style_default = style{ + font = font_face, + size = font_size, + fore = colors.black, + back = colors.white +} +style_line_number = style { fore = colors.black, back = colors.grey } +style_bracelight = style { fore = color('66', '99', 'FF'), bold = true } +style_bracebad = style { fore = color('FF', '66', '99'), bold = true } +style_controlchar = style_nothing +style_indentguide = style { fore = colors.grey, back = colors.white } +style_calltip = style { fore = colors.black, back = color('DD', 'DD', 'DD') } diff --git a/themes/scite/lexer.lua b/themes/scite/lexer.lua new file mode 100644 index 00000000..162d47ee --- /dev/null +++ b/themes/scite/lexer.lua @@ -0,0 +1,57 @@ +-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. +-- SciTE lexer theme for Textadept. + +module('lexer', package.seeall) + +lexer.colors = { + green = color('00', '7F', '00'), + blue = color('00', '00', '7F'), + red = color('7F', '00', '00'), + yellow = color('7F', '7F', '00'), + teal = color('00', '7F', '7F'), + white = color('FF', 'FF', 'FF'), + black = color('00', '00', '00'), + grey = color('80', '80', '80'), + purple = color('7F', '00', '7F'), + orange = color('B0', '7F', '00'), +} + +style_nothing = style { } +style_char = style { fore = colors.purple } +style_class = style { fore = colors.black, bold = true } +style_comment = style { fore = colors.green } +style_constant = style { fore = colors.teal, bold = true } +style_definition = style { fore = colors.black, bold = true } +style_error = style { fore = colors.red } +style_function = style { fore = colors.black, bold = true } +style_keyword = style { fore = colors.blue, bold = true } +style_number = style { fore = colors.teal } +style_operator = style { fore = colors.black, bold = true } +style_string = style { fore = colors.purple } +style_preproc = style { fore = colors.yellow } +style_tag = style { fore = colors.teal } +style_type = style { fore = colors.blue } +style_variable = style { fore = colors.black } +style_identifier = style_nothing + +-- Default styles. +local font_face = '!Monospace' +local font_size = 11 +if WIN32 then + font_face = '!Courier New' +elseif MAC then + font_face = '!Monaco' + font_size = 12 +end +style_default = style{ + font = font_face, + size = font_size, + fore = colors.black, + back = colors.white, +} +style_line_number = style { back = color('C0', 'C0', 'C0') } +style_bracelight = style { fore = color('00', '00', 'FF'), bold = true } +style_bracebad = style { fore = color('FF', '00', '00'), bold = true } +style_controlchar = style_nothing +style_indentguide = style { fore = color('C0', 'C0', 'C0'), back = colors.white } +style_calltip = style { fore = colors.white, back = color('44', '44', '44') } |