-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.proto
55 lines (47 loc) · 1.09 KB
/
config.proto
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
syntax = "proto3";
package AnatolyRugalev.kubecom.config;
option go_package = "github.com/AnatolyRugalev/kube-commander/pb;pb";
message Config {
repeated Resource menu = 1;
string currentTheme = 2;
repeated Theme themes = 3;
}
message Resource {
bool namespaced = 1;
string group = 2;
string kind = 3;
string title = 4;
}
// TODO: add Register method to theme manager
// TODO: register components with their styles into manager
// TODO: cycle through components and styles and edit themes through manager
message Theme {
// Theme unique name
string name = 1;
// Color palette
repeated Color colors = 2;
// Components color bindings
repeated Style styles = 3;
}
// Color palette allows to reuse colors in theme
message Color {
string name = 1;
oneof value {
string rgb = 2;
int32 xterm = 3;
}
}
enum StyleAttribute {
NONE = 0;
BOLD = 1;
BLINK = 2;
REVERSE = 3;
UNDERLINE = 4;
DIM = 5;
}
message Style {
string name = 1;
string bg = 2;
string fg = 3;
repeated StyleAttribute attrs = 4;
}