aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/color.tes
blob: dcf2065550e3720ff3387cc416cb3ab99c166d5f (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
79
80
81
82
83
84
85
86
87
88
89
!* <r,g,b>M[color.rgb] -> Scintilla color *!
@[color.rgb]{
  U.bU.gU.r
  (Q.r # Q.g*256 # Q.b*256*256)
}

0EJ-1"=
  !*
   * The Curses RGB values are hardcoded by Scinterm
   * and do not necessarily correspond to the renditions by
   * terminal emulators.
   *!
  !* These 8 colors should be available on every system *!
  000,000,000:M[color.rgb]U[color.black]
  128,000,000:M[color.rgb]U[color.red]
  000,128,000:M[color.rgb]U[color.green]
  128,128,000:M[color.rgb]U[color.yellow]
  000,000,128:M[color.rgb]U[color.blue]
  128,000,128:M[color.rgb]U[color.magenta]
  000,128,128:M[color.rgb]U[color.cyan]
  192,192,192:M[color.rgb]U[color.white]

  !* Light color variants, might not be available on every terminal *!
  064,064,064:M[color.rgb]U[color.lblack]
  255,000,000:M[color.rgb]U[color.lred]
  000,255,000:M[color.rgb]U[color.lgreen]
  255,255,000:M[color.rgb]U[color.lyellow]
  000,000,255:M[color.rgb]U[color.lblue]
  255,000,255:M[color.rgb]U[color.lmagenta]
  000,255,255:M[color.rgb]U[color.lcyan]
  255,255,255:M[color.rgb]U[color.lwhite]
|
  !*
   * The GTK RGB values are the ones used by common terminal
   * emulators. This should ensure that color schemes based
   * on the 16 default colors look similar on Curses and GTK.
   *!
  000,000,000:M[color.rgb]U[color.black]
  205,000,000:M[color.rgb]U[color.red]
  000,205,000:M[color.rgb]U[color.green]
  205,205,000:M[color.rgb]U[color.yellow]
  000,000,238:M[color.rgb]U[color.blue]
  205,000,205:M[color.rgb]U[color.magenta]
  000,205,205:M[color.rgb]U[color.cyan]
  229,229,229:M[color.rgb]U[color.white]

  127,127,127:M[color.rgb]U[color.lblack]
  255,000,000:M[color.rgb]U[color.lred]
  000,255,000:M[color.rgb]U[color.lgreen]
  255,255,000:M[color.rgb]U[color.lyellow]
  092,092,255:M[color.rgb]U[color.lblue]
  255,000,255:M[color.rgb]U[color.lmagenta]
  000,255,255:M[color.rgb]U[color.lcyan]
  255,255,255:M[color.rgb]U[color.lwhite]
'

!* <[[flags,]bg,]fg,style>M[color.set] *!
@[color.set]{
  U.s U.f "~0'U.b "~0'U.h
  Q.f,Q.sESSTYLESETFORE
  Q.b,Q.sESSTYLESETBACK
  Q.h&1,Q.sESSTYLESETBOLD
  Q.h&2,Q.sESSTYLESETITALIC
}

!* Reset all styles and setup the standard ones *!
@[color.init]{
  !* Default text colors *!
  :M[color.default],32M[color.set]
  ESSTYLECLEARALL
  :M[color.linenumber],33M[color.set]
  Q[color.caretfore]ESSETCARETFORE
  Q[color.caretline]ESSETCARETLINEBACK
  1ESSETCARETLINEVISIBLE
  Q[color.selfore],1ESSETSELFORE
  Q[color.selback],1ESSETSELBACK
  !* Calltips and popup windows *!
  :M[color.calltip],38M[color.set]
  !* Set up brace lightning *!
  :M[color.bracelight],34M[color.set]
  :M[color.error],35M[color.set]

  !* Configure fold margin *!
  :M[color.linenumber]U.fU.b
  Q.b,1ESSETFOLDMARGINCOLOUR Q.b,1ESSETFOLDMARGINHICOLOUR
  10000++,30ESMARKERDEFINE Q.f,30ESMARKERSETFORE Q.b,30ESMARKERSETBACK
  10000+-,31ESMARKERDEFINE Q.f,31ESMARKERSETFORE Q.b,31ESMARKERSETBACK
  (2^*30 # 2^*31),2ESSETMARGINMASKN 0,2ESSETMARGINTYPEN
}