@@ -52,8 +52,8 @@ pub struct HintStartColors {
52
52
impl Default for HintStartColors {
53
53
fn default ( ) -> Self {
54
54
Self {
55
- foreground : CellRgb :: Rgb ( Rgb { r : 0x1d , g : 0x1f , b : 0x21 } ) ,
56
- background : CellRgb :: Rgb ( Rgb { r : 0xe9 , g : 0xff , b : 0x5e } ) ,
55
+ foreground : CellRgb :: Rgb ( Rgb :: new ( 0x1d , 0x1f , 0x21 ) ) ,
56
+ background : CellRgb :: Rgb ( Rgb :: new ( 0xe9 , 0xff , 0x5e ) ) ,
57
57
}
58
58
}
59
59
}
@@ -67,8 +67,8 @@ pub struct HintEndColors {
67
67
impl Default for HintEndColors {
68
68
fn default ( ) -> Self {
69
69
Self {
70
- foreground : CellRgb :: Rgb ( Rgb { r : 0xe9 , g : 0xff , b : 0x5e } ) ,
71
- background : CellRgb :: Rgb ( Rgb { r : 0x1d , g : 0x1f , b : 0x21 } ) ,
70
+ foreground : CellRgb :: Rgb ( Rgb :: new ( 0xe9 , 0xff , 0x5e ) ) ,
71
+ background : CellRgb :: Rgb ( Rgb :: new ( 0x1d , 0x1f , 0x21 ) ) ,
72
72
}
73
73
}
74
74
}
@@ -139,8 +139,8 @@ pub struct FocusedMatchColors {
139
139
impl Default for FocusedMatchColors {
140
140
fn default ( ) -> Self {
141
141
Self {
142
- background : CellRgb :: Rgb ( Rgb { r : 0x00 , g : 0x00 , b : 0x00 } ) ,
143
- foreground : CellRgb :: Rgb ( Rgb { r : 0xff , g : 0xff , b : 0xff } ) ,
142
+ background : CellRgb :: Rgb ( Rgb :: new ( 0x00 , 0x00 , 0x00 ) ) ,
143
+ foreground : CellRgb :: Rgb ( Rgb :: new ( 0xff , 0xff , 0xff ) ) ,
144
144
}
145
145
}
146
146
}
@@ -154,8 +154,8 @@ pub struct MatchColors {
154
154
impl Default for MatchColors {
155
155
fn default ( ) -> Self {
156
156
Self {
157
- background : CellRgb :: Rgb ( Rgb { r : 0xff , g : 0xff , b : 0xff } ) ,
158
- foreground : CellRgb :: Rgb ( Rgb { r : 0x00 , g : 0x00 , b : 0x00 } ) ,
157
+ background : CellRgb :: Rgb ( Rgb :: new ( 0xff , 0xff , 0xff ) ) ,
158
+ foreground : CellRgb :: Rgb ( Rgb :: new ( 0x00 , 0x00 , 0x00 ) ) ,
159
159
}
160
160
}
161
161
}
@@ -177,8 +177,8 @@ pub struct PrimaryColors {
177
177
impl Default for PrimaryColors {
178
178
fn default ( ) -> Self {
179
179
PrimaryColors {
180
- background : Rgb { r : 0x1d , g : 0x1f , b : 0x21 } ,
181
- foreground : Rgb { r : 0xc5 , g : 0xc8 , b : 0xc6 } ,
180
+ background : Rgb :: new ( 0x1d , 0x1f , 0x21 ) ,
181
+ foreground : Rgb :: new ( 0xc5 , 0xc8 , 0xc6 ) ,
182
182
bright_foreground : Default :: default ( ) ,
183
183
dim_foreground : Default :: default ( ) ,
184
184
}
@@ -200,14 +200,14 @@ pub struct NormalColors {
200
200
impl Default for NormalColors {
201
201
fn default ( ) -> Self {
202
202
NormalColors {
203
- black : Rgb { r : 0x1d , g : 0x1f , b : 0x21 } ,
204
- red : Rgb { r : 0xcc , g : 0x66 , b : 0x66 } ,
205
- green : Rgb { r : 0xb5 , g : 0xbd , b : 0x68 } ,
206
- yellow : Rgb { r : 0xf0 , g : 0xc6 , b : 0x74 } ,
207
- blue : Rgb { r : 0x81 , g : 0xa2 , b : 0xbe } ,
208
- magenta : Rgb { r : 0xb2 , g : 0x94 , b : 0xbb } ,
209
- cyan : Rgb { r : 0x8a , g : 0xbe , b : 0xb7 } ,
210
- white : Rgb { r : 0xc5 , g : 0xc8 , b : 0xc6 } ,
203
+ black : Rgb :: new ( 0x1d , 0x1f , 0x21 ) ,
204
+ red : Rgb :: new ( 0xcc , 0x66 , 0x66 ) ,
205
+ green : Rgb :: new ( 0xb5 , 0xbd , 0x68 ) ,
206
+ yellow : Rgb :: new ( 0xf0 , 0xc6 , 0x74 ) ,
207
+ blue : Rgb :: new ( 0x81 , 0xa2 , 0xbe ) ,
208
+ magenta : Rgb :: new ( 0xb2 , 0x94 , 0xbb ) ,
209
+ cyan : Rgb :: new ( 0x8a , 0xbe , 0xb7 ) ,
210
+ white : Rgb :: new ( 0xc5 , 0xc8 , 0xc6 ) ,
211
211
}
212
212
}
213
213
}
@@ -227,14 +227,14 @@ pub struct BrightColors {
227
227
impl Default for BrightColors {
228
228
fn default ( ) -> Self {
229
229
BrightColors {
230
- black : Rgb { r : 0x66 , g : 0x66 , b : 0x66 } ,
231
- red : Rgb { r : 0xd5 , g : 0x4e , b : 0x53 } ,
232
- green : Rgb { r : 0xb9 , g : 0xca , b : 0x4a } ,
233
- yellow : Rgb { r : 0xe7 , g : 0xc5 , b : 0x47 } ,
234
- blue : Rgb { r : 0x7a , g : 0xa6 , b : 0xda } ,
235
- magenta : Rgb { r : 0xc3 , g : 0x97 , b : 0xd8 } ,
236
- cyan : Rgb { r : 0x70 , g : 0xc0 , b : 0xb1 } ,
237
- white : Rgb { r : 0xea , g : 0xea , b : 0xea } ,
230
+ black : Rgb :: new ( 0x66 , 0x66 , 0x66 ) ,
231
+ red : Rgb :: new ( 0xd5 , 0x4e , 0x53 ) ,
232
+ green : Rgb :: new ( 0xb9 , 0xca , 0x4a ) ,
233
+ yellow : Rgb :: new ( 0xe7 , 0xc5 , 0x47 ) ,
234
+ blue : Rgb :: new ( 0x7a , 0xa6 , 0xda ) ,
235
+ magenta : Rgb :: new ( 0xc3 , 0x97 , 0xd8 ) ,
236
+ cyan : Rgb :: new ( 0x70 , 0xc0 , 0xb1 ) ,
237
+ white : Rgb :: new ( 0xea , 0xea , 0xea ) ,
238
238
}
239
239
}
240
240
}
@@ -254,14 +254,14 @@ pub struct DimColors {
254
254
impl Default for DimColors {
255
255
fn default ( ) -> Self {
256
256
DimColors {
257
- black : Rgb { r : 0x13 , g : 0x14 , b : 0x15 } ,
258
- red : Rgb { r : 0x86 , g : 0x43 , b : 0x43 } ,
259
- green : Rgb { r : 0x77 , g : 0x7c , b : 0x44 } ,
260
- yellow : Rgb { r : 0x9e , g : 0x82 , b : 0x4c } ,
261
- blue : Rgb { r : 0x55 , g : 0x6a , b : 0x7d } ,
262
- magenta : Rgb { r : 0x75 , g : 0x61 , b : 0x7b } ,
263
- cyan : Rgb { r : 0x5b , g : 0x7d , b : 0x78 } ,
264
- white : Rgb { r : 0x82 , g : 0x84 , b : 0x82 } ,
257
+ black : Rgb :: new ( 0x13 , 0x14 , 0x15 ) ,
258
+ red : Rgb :: new ( 0x86 , 0x43 , 0x43 ) ,
259
+ green : Rgb :: new ( 0x77 , 0x7c , 0x44 ) ,
260
+ yellow : Rgb :: new ( 0x9e , 0x82 , 0x4c ) ,
261
+ blue : Rgb :: new ( 0x55 , 0x6a , 0x7d ) ,
262
+ magenta : Rgb :: new ( 0x75 , 0x61 , 0x7b ) ,
263
+ cyan : Rgb :: new ( 0x5b , 0x7d , 0x78 ) ,
264
+ white : Rgb :: new ( 0x82 , 0x84 , 0x82 ) ,
265
265
}
266
266
}
267
267
}
0 commit comments