aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/term.lua
blob: fde41f16c47ed8b9156a60e6ac0c4051781521d7 (plain)
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
-- Copyright 2007-2013 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Terminal theme for Textadept.
-- Contributions by Ana Balan.

local buffer = buffer
local property, property_int = buffer.property, buffer.property_int

-- Normal colors.
property['color.black'] = 0x000000
property['color.red'] = 0x000080
property['color.green'] = 0x008000
property['color.yellow'] = 0x008080
property['color.blue'] = 0x800000
property['color.magenta'] = 0x800080
property['color.cyan'] = 0x808000
property['color.white'] = 0xC0C0C0

-- Light colors. (16 color terminals only.)
-- These only apply to 16 color terminals. For other terminals, set the
-- style's `bold` attribute to use the light color variant.
property['color.light_black'] = 0x404040
property['color.light_red'] = 0x0000FF
property['color.light_green'] = 0x00FF00
property['color.light_yellow'] = 0x00FFFF
property['color.light_blue'] = 0xFF0000
property['color.light_magenta'] = 0xFF00FF
property['color.light_cyan'] = 0xFFFF00
property['color.light_white'] = 0xFFFFFF

-- Token styles.
property['style.nothing'] = ''
property['style.class'] = 'fore:%(color.yellow)'
property['style.comment'] = 'fore:%(color.black),bold'
property['style.constant'] = 'fore:%(color.red)'
property['style.error'] = 'fore:%(color.red),bold'
property['style.function'] = 'fore:%(color.blue)'
property['style.keyword'] = 'fore:%(color.white),bold'
property['style.label'] = 'fore:%(color.red),bold'
property['style.number'] = 'fore:%(color.cyan)'
property['style.operator'] = 'fore:%(color.yellow)'
property['style.regex'] = 'fore:%(color.green),bold'
property['style.string'] = 'fore:%(color.green)'
property['style.preprocessor'] = 'fore:%(color.magenta)'
property['style.type'] = 'fore:%(color.magenta),bold'
property['style.variable'] = 'fore:%(color.blue),bold'
property['style.whitespace'] = ''
property['style.embedded'] = '%(style.tag),back:%(color.black),bold'
property['style.identifier'] = '%(style.nothing)'

-- Predefined styles.
property['style.default'] = 'fore:%(color.white),back:%(color.black)'
property['style.linenumber'] = '%(style.default)'
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.calltip'] = '%(style.default)'

-- Multiple Selection and Virtual Space
--buffer.additional_sel_alpha =
--buffer.additional_sel_fore =
--buffer.additional_sel_back =
--buffer.additional_caret_fore =

-- Caret and Selection Styles.
--buffer:set_sel_fore(true, property_int['color.white'])
--buffer:set_sel_back(true, property_int['color.black'])
--buffer.sel_alpha =
--buffer.caret_fore = property_int['color.black']
--buffer.caret_line_back =
--buffer.caret_line_back_alpha =

-- Fold Margin.
--buffer:set_fold_margin_colour(true, property_int['color.white'])
--buffer:set_fold_margin_hi_colour(true, property_int['color.white'])

-- Long Lines.
buffer.edge_colour = property_int['color.white']