forked from justjanne/powerline-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
themes.go
166 lines (128 loc) · 2.72 KB
/
themes.go
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
package main
// Symbols of the theme
type SymbolTemplate struct {
Lock string
Network string
NetworkAlternate string
Separator string
SeparatorThin string
SeparatorReverse string
SeparatorReverseThin string
RepoDetached string
RepoBranch string
RepoAhead string
RepoBehind string
RepoStaged string
RepoNotStaged string
RepoUntracked string
RepoConflicted string
RepoStashed string
VenvIndicator string
NodeIndicator string
RvmIndicator string
}
// Theme definitions
type Theme struct {
BoldForeground bool
Reset uint8
DefaultFg uint8
DefaultBg uint8
UsernameFg uint8
UsernameBg uint8
UsernameRootBg uint8
HostnameFg uint8
HostnameBg uint8
// The foreground-background mapping is precomputed and stored in a map for improved performance
// The old script used to brute-force this at runtime
HostnameColorizedFgMap map[uint8]uint8
HomeSpecialDisplay bool
HomeFg uint8
HomeBg uint8
AliasFg uint8
AliasBg uint8
PathFg uint8
PathBg uint8
CwdFg uint8
SeparatorFg uint8
ReadonlyFg uint8
ReadonlyBg uint8
SSHFg uint8
SSHBg uint8
DockerMachineFg uint8
DockerMachineBg uint8
KubeClusterFg uint8
KubeClusterBg uint8
KubeNamespaceFg uint8
KubeNamespaceBg uint8
WSLMachineFg uint8
WSLMachineBg uint8
DotEnvFg uint8
DotEnvBg uint8
AWSFg uint8
AWSBg uint8
RepoCleanFg uint8
RepoCleanBg uint8
RepoDirtyFg uint8
RepoDirtyBg uint8
JobsFg uint8
JobsBg uint8
CmdPassedFg uint8
CmdPassedBg uint8
CmdFailedFg uint8
CmdFailedBg uint8
SvnChangesFg uint8
SvnChangesBg uint8
GCPFg uint8
GCPBg uint8
GitAheadFg uint8
GitAheadBg uint8
GitBehindFg uint8
GitBehindBg uint8
GitStagedFg uint8
GitStagedBg uint8
GitNotStagedFg uint8
GitNotStagedBg uint8
GitUntrackedFg uint8
GitUntrackedBg uint8
GitConflictedFg uint8
GitConflictedBg uint8
GitStashedFg uint8
GitStashedBg uint8
GoenvFg uint8
GoenvBg uint8
VirtualEnvFg uint8
VirtualEnvBg uint8
VirtualGoFg uint8
VirtualGoBg uint8
PerlbrewFg uint8
PerlbrewBg uint8
PlEnvFg uint8
PlEnvBg uint8
TFWsFg uint8
TFWsBg uint8
TimeFg uint8
TimeBg uint8
ShellVarFg uint8
ShellVarBg uint8
ShEnvFg uint8
ShEnvBg uint8
NodeFg uint8
NodeBg uint8
NodeVersionFg uint8
NodeVersionBg uint8
RvmFg uint8
RvmBg uint8
LoadFg uint8
LoadBg uint8
LoadHighBg uint8
LoadAvgValue byte
LoadThresholdBad float64
NixShellFg uint8
NixShellBg uint8
DurationFg uint8
DurationBg uint8
ViModeCommandFg uint8
ViModeCommandBg uint8
ViModeInsertFg uint8
ViModeInsertBg uint8
}