/
Themes.scala
49 lines (42 loc) · 1.31 KB
/
Themes.scala
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
package net.team2xh.onions
import net.team2xh.scurses.Colors
object Themes {
sealed trait ColorScheme {
def foreground: Int
def background: Int
def focusForeground: Int
def focusBackground: Int
val accent1: Int
val accent2: Int
val accent3: Int
def foreground(focus: Boolean): Int = if (focus) focusForeground else foreground
def background(focus: Boolean): Int = if (focus) focusBackground else background
}
val default = new ColorScheme {
override val foreground = 15
override val background = 0
override val focusForeground = 0
override val focusBackground = 15
override val accent1 = 237
override val accent2 = 248
override val accent3 = 250
}
val light = new ColorScheme {
override val foreground: Int = 242
override val background: Int = 255
override val focusForeground: Int = 0
override val focusBackground: Int = 251
override val accent1: Int = 253
override val accent3: Int = 252
override val accent2: Int = 249
}
val MSDOS = new ColorScheme {
override val foreground: Int = 248
override val background: Int = 4
override val focusForeground: Int = 0
override val focusBackground: Int = foreground
override val accent1: Int = 6
override val accent3: Int = 8
override val accent2: Int = 11
}
}