Browse code

Add alternative dark theme, but left it disabled under a pair of #ifdef's (search for 'forest')

Dario Rodriguez authored on 01/01/2024 11:40:55
Showing 2 changed files
... ...
@@ -66,6 +66,7 @@ redata_highlighter_register(redata_t *redata, redata_plugin_t *slot)
66 66
         highlighter_t *hl;
67 67
         if(redata==NULL || slot==NULL)
68 68
                 return(-1);
69
+#if 1
69 70
         /* "forest" theme */
70 71
         colors=hl_initcolors(&ncolors,
71 72
                              color_keyword,"\x38\x17\x1e\xff",
... ...
@@ -83,6 +84,25 @@ redata_highlighter_register(redata_t *redata, redata_plugin_t *slot)
83 84
                              color_symbol,"\x69\x2a\x44\xff",
84 85
                              color_endenum,DEFAULTCOLOR,
85 86
                              -1);
87
+#else
88
+        /* "alternative" theme (dark) */
89
+        colors=hl_initcolors(&ncolors,
90
+                             color_keyword,"\xcc\x99\xcc\xff",//
91
+                             color_directive,"\x38\x4b\x00\xff",
92
+                             color_directivekeyword,"\x63\x7d\x16\xff",
93
+                             color_directivestring,"\x07\x20\x3b\xff",
94
+                             color_directiveinclude,"\x16\x63\x7d\xff",
95
+                             color_directiveincludestring,"\x6\x13\x2d\xff",
96
+                             color_normal,"\xf2\xf0\xec\xff",//
97
+                             color_string,"\x99\xcc\x99\xff",//
98
+                             color_multilinecomment,"\x74\x73\x69\xff",//
99
+                             color_linecomment,"\x74\x73\x69\xff",//
100
+                             color_number,"\xf9\x91\x57\xff",//
101
+                             color_operator,"\x66\xcc\xcc\xff",//
102
+                             color_symbol,"\x91\xa7\xff\xff",//
103
+                             color_endenum,"\xf2\xf0\xec\xff",//
104
+                             -1);
105
+#endif
86 106
         if(colors==NULL || (hl=malloc(sizeof(highlighter_t)))==NULL) {
87 107
                 if(colors!=NULL)
88 108
                         free(colors),colors=NULL;
... ...
@@ -46,6 +46,7 @@
46 46
 #define COMMAND_QUESTION "(?)"
47 47
 #define COMMAND_EXIT "Exit"
48 48
 
49
+#if 1
49 50
 /* "forest" theme */
50 51
 #define DEFAULT_COLOR_BACKGROUND "\xdf\xdf\xdf\xff"
51 52
 #define DEFAULT_COLOR_PRINTOUTSTRIPE "\xef\xef\xef\xff"
... ...
@@ -76,6 +77,38 @@
76 77
 
77 78
 #define DEFAULT_COLOR_SELNORMAL "\xde\xcf\x7f\xff"
78 79
 #define DEFAULT_COLOR_CURLINE "\xf0\xea\xc9\xff"
80
+#else
81
+/* "alternative" theme */
82
+#define DEFAULT_COLOR_BACKGROUND "\x1a\x1f\x35\xff"
83
+#define DEFAULT_COLOR_PRINTOUTSTRIPE "\x0d\x11\x1e\xff"
84
+
85
+#define DEFAULT_COLOR_CURSORBG "\xff\xff\xff\xff"
86
+#define DEFAULT_COLOR_CURSORFG "\x0d\x11\x1e\xff"
87
+
88
+#define DEFAULT_COLOR_TEXT "\xf2\xf0\xec\xff"
89
+
90
+#define DEFAULT_COLOR_MATCHBG "\xff\xff\xff\xaf"
91
+#define DEFAULT_COLOR_MATCHFG "\xff\x00\x00\x80"
92
+
93
+#define DEFAULT_COLOR_STATUSBG "\x14\x3a\xaf\xff"
94
+#define DEFAULT_COLOR_STATUSFG "\xe6\xdc\x5d\xff"
95
+#define DEFAULT_COLOR_STATUSFGLIGHT "\x6f\x73\xa3\xff"
96
+
97
+#define DEFAULT_COLOR_QUERYBG "\xad\x92\x5e\xff"
98
+#define DEFAULT_COLOR_QUERYFG "\xd0\xef\x4f\xff"
99
+#define DEFAULT_COLOR_QUERYBGOLD "\x83\x75\x59\xff"
100
+#define DEFAULT_COLOR_QUERYFGOLD "\xb1\xc5\x5e\xff"
101
+
102
+#define DEFAULT_COLOR_WARNINGBG "\xba\x07\x07\xff"
103
+#define DEFAULT_COLOR_WARNINGFG "\xe6\xdc\x5d\xff"
104
+
105
+#define DEFAULT_COLOR_INFOBG "\x4e\x8a\x4e\xff"
106
+#define DEFAULT_COLOR_INFOFG "\xee\xee\x46\xff"
107
+#define DEFAULT_COLOR_INFOFGLIGHT "\x84\xa4\x4c\xff"
108
+
109
+#define DEFAULT_COLOR_SELNORMAL "\x4f\x48\x2b\xff"
110
+#define DEFAULT_COLOR_CURLINE "\x6e\x64\x3c\xff"
111
+#endif
79 112
 
80 113
 #define COLOR_BACKGROUND(re) re->theme.color_background
81 114
 #define COLOR_PRINTOUTSTRIPE(re) re->theme.color_printoutstripe