@@ -38,6 +38,16 @@ if_notin_int(int v, const int *s, int v1, int v2)
38
38
return v1 ;
39
39
}
40
40
41
+ /* 0..255 rgb based colors */
42
+ static void
43
+ init_color_rgb_ff (short color , short r , short g , short b )
44
+ {
45
+ init_color (color ,
46
+ (r / 255.0 ) * 1000.0 ,
47
+ (g / 255.0 ) * 1000.0 ,
48
+ (b / 255.0 ) * 1000.0 );
49
+ }
50
+
41
51
/*
42
52
* Set color pairs based on style
43
53
*/
@@ -506,6 +516,10 @@ initialize_color_pairs(int theme)
506
516
init_color (234 , 13 , 98 , 119 );
507
517
init_color (235 , 18 , 141 , 172 );
508
518
init_color (240 , 110 , 146 , 200 );
519
+ init_color (245 , 576 , 631 , 631 );
520
+ init_color (244 , 557 , 616 , 624 );
521
+ init_color (136 , 710 , 537 , 0 );
522
+ init_color (160 , 863 , 196 , 184 );
509
523
510
524
assume_default_colors (234 , 245 );
511
525
@@ -530,6 +544,45 @@ initialize_color_pairs(int theme)
530
544
init_pair (20 , 255 , 136 );
531
545
init_pair (21 , 235 , 244 );
532
546
break ;
547
+
548
+ case 19 :
549
+ init_color_rgb_ff (200 , 0xff , 0xff , 0xd7 ); /* background */
550
+ init_color_rgb_ff (201 , 0x26 , 0x26 , 0x26 ); /* foreground */
551
+ init_color_rgb_ff (202 , 0xaf , 0xaf , 0x87 ); /* modeline bg */
552
+ init_color_rgb_ff (203 , 0x4e , 0x4e , 0x4e ); /* modeline fg */
553
+ init_color_rgb_ff (204 , 0xd7 , 0xd6 , 0xaf ); /* table decor */
554
+ init_color_rgb_ff (205 , 0xeb , 0xdb , 0xb2 ); /* cursor bg */
555
+ init_color_rgb_ff (206 , 0xaf , 0xaf , 0xaf ); /* footer */
556
+ init_color_rgb_ff (207 , 0xff , 0xff , 0xaf ); /* lineno bg */
557
+
558
+ init_color_rgb_ff (210 , 0x87 , 0x00 , 0x00 ); /* keyword - red */
559
+ init_color_rgb_ff (211 , 0Xd7 , 0x5f , 0x5f ); /* bookmark - faded red */
560
+ init_color_rgb_ff (212 , 0x00 , 0x5f , 0x87 ); /* mark - faded blue */
561
+
562
+ init_color (240 , 40 , 50 , 200 );
563
+
564
+ assume_default_colors (204 , 200 );
565
+
566
+ init_pair (2 , 203 , 202 );
567
+ init_pair (3 , 201 , 200 );
568
+ init_pair (4 , 210 , 200 );
569
+ init_pair (5 , 210 , 205 );
570
+ init_pair (6 , 203 , 205 );
571
+ init_pair (7 , 203 , 202 );
572
+ init_pair (8 , 17 , 200 );
573
+ init_pair (9 , 206 , 200 );
574
+ init_pair (10 , 206 , 205 );
575
+ init_pair (11 , 204 , 205 );
576
+ init_pair (13 , 203 , 202 );
577
+ init_pair (14 , COLOR_WHITE , 211 );
578
+ init_pair (15 , 212 , 204 );
579
+ init_pair (16 , 201 , 204 );
580
+ init_pair (17 , 206 , 204 );
581
+ init_pair (18 , -1 , -1 );
582
+ init_pair (19 , -1 , -1 );
583
+ init_pair (20 , 212 , 205 );
584
+ init_pair (21 , 206 , 207 );
585
+ break ;
533
586
}
534
587
}
535
588
@@ -550,7 +603,7 @@ initialize_theme(int theme, int window_identifier, bool is_tabular_fmt, bool no_
550
603
case WINDOW_LUC :
551
604
case WINDOW_FIX_ROWS :
552
605
t -> data_attr = COLOR_PAIR (4 );
553
- t -> data_attr |= _notin (theme , (int []) {12 , 15 , -1 }, A_BOLD , 0 );
606
+ t -> data_attr |= _notin (theme , (int []) {12 , 15 , 19 , -1 }, A_BOLD , 0 );
554
607
t -> data_attr |= _in (theme , (int []) {15 , -1 }, A_DIM , 0 );
555
608
t -> data_attr |= _in (theme , (int []) {16 , -1 }, A_ITALIC , 0 );
556
609
break ;
@@ -565,7 +618,7 @@ initialize_theme(int theme, int window_identifier, bool is_tabular_fmt, bool no_
565
618
t -> bottom_attr = COLOR_PAIR (12 );
566
619
t -> bottom_light_attr = COLOR_PAIR (13 );
567
620
568
- t -> prompt_attr |= _notin (theme , (int []) {0 , 1 , -1 }, A_BOLD , 0 );
621
+ t -> prompt_attr |= _notin (theme , (int []) {0 , 1 , 19 , -1 }, A_BOLD , 0 );
569
622
t -> bottom_attr |= _notin (theme , (int []) {13 , 14 , -1 }, A_BOLD , 0 );
570
623
t -> bottom_light_attr |= A_BOLD ;
571
624
break ;
@@ -585,7 +638,7 @@ initialize_theme(int theme, int window_identifier, bool is_tabular_fmt, bool no_
585
638
t -> pattern_data_attr = COLOR_PAIR (16 );
586
639
t -> pattern_line_attr = COLOR_PAIR (17 );
587
640
588
- t -> data_attr |= _notin (theme , (int []) { 12 , 15 , -1 }, A_BOLD , 0 );
641
+ t -> data_attr |= _notin (theme , (int []) { 12 , 15 , 19 , -1 }, A_BOLD , 0 );
589
642
t -> data_attr |= _in (theme , (int []) {15 , -1 }, A_DIM , 0 );
590
643
t -> line_attr |= 0 ;
591
644
t -> expi_attr |= A_BOLD ;
0 commit comments