diff options
Diffstat (limited to 'themes/dark')
-rw-r--r--[-rwxr-xr-x] | themes/dark/buffer.lua | 0 | ||||
-rw-r--r-- | themes/dark/lexer.lua | 106 | ||||
-rw-r--r--[-rwxr-xr-x] | themes/dark/view.lua | 20 |
3 files changed, 81 insertions, 45 deletions
diff --git a/themes/dark/buffer.lua b/themes/dark/buffer.lua index 70d80751..70d80751 100755..100644 --- a/themes/dark/buffer.lua +++ b/themes/dark/buffer.lua diff --git a/themes/dark/lexer.lua b/themes/dark/lexer.lua index 04936944..3b2c7ce1 100644 --- a/themes/dark/lexer.lua +++ b/themes/dark/lexer.lua @@ -8,37 +8,73 @@ 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'), + -- Greyscale colors. +--dark_black = color('00', '00', '00'), + black = color('1A', '1A', '1A'), + light_black = color('33', '33', '33'), + -- color('4D', '4D', '4D'), + dark_grey = color('66', '66', '66'), +--grey = color('80', '80', '80'), + light_grey = color('99', '99', '99'), + -- color('B3', 'B3', 'B3'), + dark_white = color('CC', 'CC', 'CC'), +--white = color('E6', 'E6', 'E6'), +--light_white = color('FF', 'FF', 'FF'), + + -- Dark colors. +--dark_red = color('66', '1A', '1A'), +--dark_yellow = color('66', '66', '1A'), +--dark_green = color('1A', '66', '1A'), +--dark_teal = color('1A', '66', '66'), +--dark_purple = color('66', '1A', '66'), +--dark_orange = color('B3', '66', '1A'), +--dark_pink = color('B3', '66', '66'), +--dark_lavender = color('66', '66', 'B3'), +--dark_blue = color('1A', '66', 'B3'), + + -- Normal colors. + red = color('99', '4D', '4D'), + yellow = color('99', '99', '4D'), + green = color('4D', '99', '4D'), + teal = color('4D', '99', '99'), + purple = color('99', '4D', '99'), + orange = color('E6', '99', '4D'), +--pink = color('E6', '99', '99'), + lavender = color('99', '99', 'E6'), + blue = color('4D', '99', 'E6'), + + -- Light colors. + light_red = color('CC', '80', '80'), + light_yellow = color('CC', 'CC', '80'), + light_green = color('80', 'CC', '80'), +--light_teal = color('80', 'CC', 'CC'), +--light_purple = color('CC', '80', 'CC'), +--light_orange = color('FF', 'CC', '80'), +--light_pink = color('FF', 'CC', 'CC'), +--light_lavender = color('CC', 'CC', 'FF'), + light_blue = color('80', 'CC', 'FF'), } -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_whitespace = style { } -style_embedded = style_tag..{ back = color('44', '44', '44') } -style_identifier = style_nothing +style_nothing = style { } +style_class = style { fore = colors.light_yellow } +style_comment = style { fore = colors.dark_grey } +style_constant = style { fore = colors.red } +style_definition = style { fore = colors.light_yellow } +style_error = style { fore = colors.red, italic = true } +style_function = style { fore = colors.blue } +style_keyword = style { fore = colors.dark_white } +style_label = style { fore = colors.orange } +style_number = style { fore = colors.teal } +style_operator = style { fore = colors.yellow } +style_regex = style { fore = colors.light_green } +style_string = style { fore = colors.green } +style_preproc = style { fore = colors.purple } +style_tag = style { fore = colors.dark_white } +style_type = style { fore = colors.lavender } +style_variable = style { fore = colors.light_blue } +style_whitespace = style { } +style_embedded = style_tag..{ back = colors.light_black } +style_identifier = style_nothing -- Default styles. local font_face = '!Bitstream Vera Sans Mono' @@ -52,12 +88,12 @@ end style_default = style { font = font_face, size = font_size, - fore = colors.white, + fore = colors.light_grey, 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_line_number = style { fore = colors.dark_grey, back = colors.black } +style_bracelight = style { fore = colors.light_blue } +style_bracebad = style { fore = colors.light_red } style_controlchar = style_nothing -style_indentguide = style { fore = colors.grey, back = colors.white } -style_calltip = style { fore = colors.white, back = color('44', '44', '44') } +style_indentguide = style { fore = colors.light_black, back = colors.light_black } +style_calltip = style { fore = colors.light_grey, back = colors.light_black } diff --git a/themes/dark/view.lua b/themes/dark/view.lua index 69a54953..95c1a5a2 100755..100644 --- a/themes/dark/view.lua +++ b/themes/dark/view.lua @@ -39,12 +39,12 @@ buffer:set_y_caret_policy(13, 1) -- CARET_SLOP | CARET_STRICT | CARET_EVEN -- Caret and Selection Styles. buffer:set_sel_fore(1, 0x333333) -buffer:set_sel_back(1, 0x999999) +buffer:set_sel_back(1, 0x808080) --buffer.sel_alpha = --buffer.sel_eol_filled = true -buffer.caret_fore = 0xAAAAAA +buffer.caret_fore = 0x808080 buffer.caret_line_visible = true -buffer.caret_line_back = 0x444444 +buffer.caret_line_back = 0x333333 --buffer.caret_line_back_alpha = --buffer.caret_period = 0 --buffer.caret_style = 2 @@ -64,8 +64,8 @@ buffer.margin_mask_n[2] = c.SC_MASK_FOLDERS buffer.margin_sensitive_n[2] = true --buffer.margin_left = --buffer.margin_right = -buffer:set_fold_margin_colour(1, 0xAAAAAA) -buffer:set_fold_margin_hi_colour(1, 0xAAAAAA) +buffer:set_fold_margin_colour(1, 0x1A1A1A) +buffer:set_fold_margin_hi_colour(1, 0x1A1A1A) -- Annotations. buffer.annotation_visible = 2 @@ -79,11 +79,11 @@ buffer.indentation_guides = 3 -- Fold Margin Markers. buffer:marker_define(c.SC_MARKNUM_FOLDEROPEN, c.SC_MARK_ARROWDOWN) -buffer:marker_set_fore(c.SC_MARKNUM_FOLDEROPEN, 0) -buffer:marker_set_back(c.SC_MARKNUM_FOLDEROPEN, 0) +buffer:marker_set_fore(c.SC_MARKNUM_FOLDEROPEN, 0x666666) +buffer:marker_set_back(c.SC_MARKNUM_FOLDEROPEN, 0x666666) buffer:marker_define(c.SC_MARKNUM_FOLDER, c.SC_MARK_ARROW) -buffer:marker_set_fore(c.SC_MARKNUM_FOLDER, 0) -buffer:marker_set_back(c.SC_MARKNUM_FOLDER, 0) +buffer:marker_set_fore(c.SC_MARKNUM_FOLDER, 0x666666) +buffer:marker_set_back(c.SC_MARKNUM_FOLDER, 0x666666) buffer:marker_define(c.SC_MARKNUM_FOLDERSUB, c.SC_MARK_EMPTY) buffer:marker_define(c.SC_MARKNUM_FOLDERTAIL, c.SC_MARK_EMPTY) buffer:marker_define(c.SC_MARKNUM_FOLDEREND, c.SC_MARK_EMPTY) @@ -113,7 +113,7 @@ buffer:set_fold_flags(16) -- Long Lines. --buffer.edge_mode = 1 --buffer.edge_column = 80 ---buffer.edge_colour = 0xAAAAAA +--buffer.edge_colour = 0x666666 -- Notifications. buffer.mod_event_mask = c.SC_MOD_CHANGEFOLD |