Project

General

Profile

1
export class CustomizationOptions {
2
  mainColor: string;
3
  secondaryColor: string;
4
  panel: {
5
    onDarkBackground: boolean,
6
    background: {
7
      color: string; //background
8
      borderStyle: string;
9
      borderColor: string;
10
      borderWidth: number;
11
    }, fonts: {
12
      color: string;
13
      family: string;
14
      size: number;
15
      weight: number;
16
    },
17
    title: {
18
      color: string;
19
      family: string;
20
      size: number;
21
      weight: number;
22
    },
23
    panelElements: {
24
      backgroundColor: string;
25
      borderColor: string;
26
      color: string;
27
    }
28
  };
29

    
30
  box: {
31
    borderColor: string;
32
    borderStyle: string;
33
    borderWidth: number;
34
    borderRadius: number;
35
  }
36
  ;
37
  links: {
38
    darkBackground: {
39
      family: string;
40
      size: number;
41
      weight: number;
42
      color: string;
43

    
44
      onHover: {
45
        color: string;
46
      };
47
    };
48
    lightBackground: {
49
      color: string;
50
      onHover: {
51
        color: string;
52
      };
53
    };
54
  };
55
  buttons: {
56
    darkBackground: {
57
      backgroundColor: string;
58
      color: string;
59
      borderStyle: string;
60
      borderColor: string;
61
      borderWidth: number;
62
      borderRadius: number;
63
      onHover: {
64
        backgroundColor: string;
65
        color: string;
66
        borderColor: string;
67
      };
68
    };
69
    lightBackground: {
70
      backgroundColor: string;
71
      color: string;
72
      borderStyle: string;
73
      borderColor: string;
74
      borderWidth: number;
75
      borderRadius: number;
76
      onHover: {
77
        backgroundColor: string;
78
        color: string;
79
        borderColor: string;
80
      };
81
    };
82
  };
83

    
84

    
85
  constructor() {
86

    
87
    this.mainColor = '#4C9CD5';
88
    this.secondaryColor = '#24857F';
89
    this.panel = {
90
      onDarkBackground: true,
91
      background: {
92
        color: '#4C9CD5',
93
        borderStyle: 'solid',
94
        borderColor: "#4C9CD5",
95
        borderWidth: 0
96
      }, fonts: {
97
        color: '#ffffff',
98
        family: 'Open Sans',
99
        size: 14,
100
        weight: 400
101
      },
102
      title: {
103
        color: '#ffffff',
104
        family: 'Open Sans',
105
        size: 18,
106
        weight: 700
107
      },
108

    
109
      panelElements: {
110
        backgroundColor: 'rgba(255, 255, 255, 0.5)',
111
        borderColor: 'rgba(255, 255, 255, 0.5)',
112
        color: '#ffffff'
113
      }
114
    };
115

    
116
    this.box = {
117
      borderColor:  '#4C9CD5',
118
      borderStyle: 'solid',
119
      borderWidth: 2,
120
      borderRadius: 6,
121
    };
122
    this.links = {
123
      darkBackground: {
124
        family: 'Open Sans',
125
        size: 14,
126
        weight: 400,
127
        color: 'rgba(255, 255, 255, 0.98)',
128
        onHover: {
129
          color: 'rgba(255, 255, 255, 0.5)',
130
        },
131
      },
132
      lightBackground: {
133
        color: '#4C9CD5',
134
        onHover: {
135
          color: '#24857F'
136
        },
137
      }
138
    };
139

    
140
    this.buttons = {
141
      darkBackground: {
142
        backgroundColor: "#ffffff",
143
        color:"#4C9CD5",
144
        borderStyle:"solid",
145
        borderColor: "#ffffff",
146
        borderWidth: 1,
147
        borderRadius: 4,
148
        onHover: {
149
          backgroundColor: "#eeeeee",
150
          color: "#4C9CD5",
151
          borderColor: "#eeeeee",
152
        }
153
      },
154
      lightBackground: {
155
        backgroundColor: '#003052',
156
        color: '#ffffff',
157
        borderStyle: "solid",
158
        borderColor: "#003052",
159
        borderWidth: 1,
160
        borderRadius: 4,
161
        onHover: {
162
          backgroundColor: '#154B71',
163
          color: '#ffffff',
164
          borderColor: "#154B71",
165
        }
166
      }
167

    
168
    };
169
  }
170

    
171
}
(1-1/3)