diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2008-12-22 13:08:27 -0500 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2008-12-22 13:08:27 -0500 |
commit | 3343fa2a376e0737b926b570f8cd743b2a75e693 (patch) | |
tree | 2ec41f1f5ea2cbed2bb737ee421e619926b312c3 /themes | |
parent | 38e32a9a93904a768d4d56516ff547963b570cfc (diff) |
Light theme is the default; moved old dark default into its own theme.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/dark/buffer.lua | 20 | ||||
-rw-r--r-- | themes/dark/view.lua | 55 | ||||
-rw-r--r-- | themes/light/buffer.lua | 20 |
3 files changed, 95 insertions, 0 deletions
diff --git a/themes/dark/buffer.lua b/themes/dark/buffer.lua new file mode 100644 index 00000000..3253969f --- /dev/null +++ b/themes/dark/buffer.lua @@ -0,0 +1,20 @@ +-- Copyright 2007-2008 Mitchell mitchell<att>caladbolg.net. See LICENSE. +-- Dark editor theme for Textadept. + +local textadept, buffer = textadept, buffer + +-- folding +buffer.property['fold'] = '1' +buffer.property['fold.by.indentation'] = '1' + +-- tabs and indentation +buffer.tab_width = 2 +buffer.use_tabs = false +buffer.indent = 2 +buffer.tab_indents = true +buffer.back_space_un_indents = true +buffer.indentation_guides = 1 + +-- various +buffer.eol_mode = textadept.constants.SC_EOL_LF +buffer.auto_c_choose_single = true diff --git a/themes/dark/view.lua b/themes/dark/view.lua new file mode 100644 index 00000000..42ad776c --- /dev/null +++ b/themes/dark/view.lua @@ -0,0 +1,55 @@ +-- Copyright 2007-2008 Mitchell mitchell<att>caladbolg.net. See LICENSE. +-- Dark editor theme for Textadept. + +local c, buffer = textadept.constants, buffer + +-- caret +buffer.caret_fore = 11184810 -- 0xAA | 0xAA << 8 | 0xAA << 16 +buffer.caret_line_visible = true +buffer.caret_line_back = 4473924 -- 0x44 | 0x44 << 8 | 0x44 << 16 +buffer:set_x_caret_policy(1, 20) -- CARET_SLOP +buffer:set_y_caret_policy(13, 1) -- CARET_SLOP | CARET_STRICT | CARET_EVEN +buffer.caret_style = 2 +buffer.caret_period = 0 + +-- selection +buffer:set_sel_fore(1, 3355443) -- 0x33 | 0x33 << 8 | 0x33 << 16 +buffer:set_sel_back(1, 10066329) -- 0x99 | 0x99 << 8 | 0x99 << 16 + +buffer.margin_width_n[0] = 4 + 3 * -- line number margin + buffer:text_width(c.STYLE_LINENUMBER, '9') + +buffer.margin_width_n[1] = 0 -- marker margin invisible + +-- fold margin +buffer:set_fold_margin_colour(1, 11184810) -- 0xAA | 0xAA << 8 | 0xAA << 16 +buffer:set_fold_margin_hi_colour(1, 11184810) -- 0xAA | 0xAA << 8 | 0xAA << 16 +buffer.margin_type_n[2] = c.SC_MARGIN_SYMBOL +buffer.margin_width_n[2] = 10 +buffer.margin_mask_n[2] = c.SC_MASK_FOLDERS +buffer.margin_sensitive_n[2] = true + +-- 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_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_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) +buffer:marker_define(c.SC_MARKNUM_FOLDEROPENMID, c.SC_MARK_EMPTY) +buffer:marker_define(c.SC_MARKNUM_FOLDERMIDTAIL, c.SC_MARK_EMPTY) + +-- various +buffer.buffered_draw = true +buffer.two_phase_draw = false +buffer.call_tip_use_style = 32 +buffer.use_popup = 0 +buffer:set_fold_flags(16) +buffer.mod_event_mask = c.SC_MOD_CHANGEFOLD +buffer.scroll_width = 2000 +buffer.h_scroll_bar = true +buffer.end_at_last_line = true +buffer.caret_sticky = false diff --git a/themes/light/buffer.lua b/themes/light/buffer.lua new file mode 100644 index 00000000..a4597ee2 --- /dev/null +++ b/themes/light/buffer.lua @@ -0,0 +1,20 @@ +-- Copyright 2007-2008 Mitchell mitchell<att>caladbolg.net. See LICENSE. +-- Light editor theme for Textadept. + +local textadept, buffer = textadept, buffer + +-- folding +buffer.property['fold'] = '1' +buffer.property['fold.by.indentation'] = '1' + +-- tabs and indentation +buffer.tab_width = 2 +buffer.use_tabs = false +buffer.indent = 2 +buffer.tab_indents = true +buffer.back_space_un_indents = true +buffer.indentation_guides = 1 + +-- various +buffer.eol_mode = textadept.constants.SC_EOL_LF +buffer.auto_c_choose_single = true |