-
Notifications
You must be signed in to change notification settings - Fork 0
/
base16-monokai-dark.lua
108 lines (96 loc) · 4.36 KB
/
base16-monokai-dark.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
-- Monokai theme for Textadept
-- Theme author: Wimer Hazenberg (http://www.monokai.nl)
-- Base16 (https://github.com/chriskempson/base16)
-- Build with Base16 Builder (https://github.com/chriskempson/base16-builder)
-- fork https://github.com/rgieseke/textadept-themes.git
-- Repository: https://github.com/chanble/ta-theme-monokai.git
local buffer = buffer
local property, property_int = buffer.property, buffer.property_int
property['color.base00'] = 0x222827
property['color.base01'] = 0x303838
property['color.base02'] = 0x3e4849
property['color.base03'] = 0x5e7175
property['color.base04'] = 0x859fa5
property['color.base05'] = 0xf2f8f8
property['color.base06'] = 0xf1f4f5
property['color.base07'] = 0xf5f8f9
property['color.base08'] = 0x7226f9
property['color.base09'] = 0x1f97fd
property['color.base0A'] = 0x75bff4
property['color.base0B'] = 0x2ee2a6
property['color.base0C'] = 0xe4efa1
property['color.base0D'] = 0xefd966
property['color.base0E'] = 0xff81ae
property['color.base0F'] = 0x3366cc
-- Default font.
property['font'], property['fontsize'] = 'Bitstream Vera Sans Mono', 10
if WIN32 then
property['font'] = 'Courier New'
elseif OSX then
property['font'], property['fontsize'] = 'Monaco', 12
end
-- Predefined styles.
property['style.default'] = 'font:%(font),size:%(fontsize),'..
'fore:%(color.base05),back:%(color.base00)'
property['style.linenumber'] = 'fore:%(color.base04),back:%(color.base00)'
property['style.bracelight'] = 'fore:%(color.base0C),underlined'
property['style.bracebad'] = 'fore:%(color.base08)'
property['style.controlchar'] = '%(style.nothing)'
property['style.indentguide'] = 'fore:%(color.base03)'
property['style.calltip'] = 'fore:%(color.base02),back:%(color.base07)'
-- Token styles.
property['style.class'] = 'fore:%(color.base0A)'
property['style.comment'] = 'fore:%(color.base03)'
property['style.constant'] = 'fore:%(color.base0E)'
property['style.embedded'] = 'fore:%(color.base0F)'
property['style.error'] = 'fore:%(color.base08),italics'
property['style.function'] = 'fore:%(color.base0B)'
property['style.identifier'] = ''
property['style.keyword'] = 'fore:%(color.base08)'
property['style.label'] = 'fore:%(color.base09)'
property['style.number'] = 'fore:%(color.base0C)'
property['style.operator'] = 'fore:%(color.base0E)'
property['style.preprocessor'] = 'fore:%(color.base0A)'
property['style.regex'] = 'fore:%(color.base0C)'
property['style.string'] = 'fore:%(color.base0B)'
property['style.type'] = 'fore:%(color.base0E)'
property['style.variable'] = 'fore:%(color.base0D)'
property['style.whitespace'] = ''
-- Caret and Selection Styles.
--buffer:set_sel_fore(true, property_int['color.base00'])
buffer:set_sel_back(true, property_int['color.base02'])
--buffer.sel_alpha =
buffer.caret_fore = property_int['color.base07']
buffer.caret_line_back = property_int['color.base01']
--buffer.caret_line_back_alpha =
--
--buffer.set_whitespace_fore(buffer, 1, 0x45463b)
buffer.set_whitespace_fore(buffer, 1, property_int['color.base02'])
-- Fold Margin.
buffer:set_fold_margin_colour(true, property_int['color.base00'])
buffer:set_fold_margin_hi_colour(true, property_int['color.base00'])
-- Markers.
local MARK_BOOKMARK, t_run = textadept.bookmarks.MARK_BOOKMARK, textadept.run
--buffer.marker_fore[MARK_BOOKMARK] = property_int['color.base05']
buffer.marker_back[MARK_BOOKMARK] = property_int['color.base0D']
--buffer.marker_fore[t_run.MARK_WARNING] = property_int['color.base05']
buffer.marker_back[t_run.MARK_WARNING] = property_int['color.base0A']
--buffer.marker_fore[t_run.MARK_ERROR] = property_int['color.base05']
buffer.marker_back[t_run.MARK_ERROR] = property_int['color.base08']
for i = 25, 31 do -- fold margin markers
buffer.marker_fore[i] = property_int['color.base00']
buffer.marker_back[i] = property_int['color.base03']
buffer.marker_back_selected[i] = property_int['color.base02']
end
-- Indicators.
local INDIC_BRACEMATCH = textadept.editing.INDIC_BRACEMATCH
buffer.indic_fore[INDIC_BRACEMATCH] = property_int['color.base0B']
buffer.indic_outline_alpha[INDIC_BRACEMATCH] = 100
local INDIC_HIGHLIGHT = textadept.editing.INDIC_HIGHLIGHT
buffer.indic_fore[INDIC_HIGHLIGHT] = property_int['color.base04']
buffer.indic_alpha[INDIC_HIGHLIGHT] = 130
-- Long Lines.
buffer.edge_colour = property_int['color.base01']
-- Add red and green for diff lexer.
property['color.red'] = property['color.base08']
property['color.green'] = property['color.base0B']