Fossil SCM

Adjust automatically choosen colors to be less saturated, and easier to read.

drh 2021-01-18 23:29 trunk
Commit fb3dabd5c4bf638cd675344be5afcab0390cf2d050617abf7c19dbc8f60cf2e2
1 file changed +6 -6
+6 -6
--- src/timeline.c
+++ src/timeline.c
@@ -137,23 +137,23 @@
137137
static char zColor[10]; /* The resulting color */
138138
static int ix[2] = {0,0}; /* Color chooser parameters */
139139
140140
if( ix[0]==0 ){
141141
if( skin_detail_boolean("white-foreground") ){
142
- ix[0] = 140;
143
- ix[1] = 40;
142
+ ix[0] = 0x50;
143
+ ix[1] = 0x20;
144144
}else{
145
- ix[0] = 216;
146
- ix[1] = 16;
145
+ ix[0] = 0xf8;
146
+ ix[1] = 0x20;
147147
}
148148
}
149149
for(i=0; z[i]; i++ ){
150150
h = (h<<11) ^ (h<<1) ^ (h>>3) ^ z[i];
151151
}
152152
h1 = h % 6; h /= 6;
153
- h3 = h % 30; h /= 30;
154
- h4 = h % 40; h /= 40;
153
+ h3 = h % 10; h /= 10;
154
+ h4 = h % 10; h /= 10;
155155
mx = ix[0] - h3;
156156
mn = mx - h4 - ix[1];
157157
h2 = (h%(mx - mn)) + mn;
158158
switch( h1 ){
159159
case 0: r = mx; g = h2, b = mn; break;
160160
--- src/timeline.c
+++ src/timeline.c
@@ -137,23 +137,23 @@
137 static char zColor[10]; /* The resulting color */
138 static int ix[2] = {0,0}; /* Color chooser parameters */
139
140 if( ix[0]==0 ){
141 if( skin_detail_boolean("white-foreground") ){
142 ix[0] = 140;
143 ix[1] = 40;
144 }else{
145 ix[0] = 216;
146 ix[1] = 16;
147 }
148 }
149 for(i=0; z[i]; i++ ){
150 h = (h<<11) ^ (h<<1) ^ (h>>3) ^ z[i];
151 }
152 h1 = h % 6; h /= 6;
153 h3 = h % 30; h /= 30;
154 h4 = h % 40; h /= 40;
155 mx = ix[0] - h3;
156 mn = mx - h4 - ix[1];
157 h2 = (h%(mx - mn)) + mn;
158 switch( h1 ){
159 case 0: r = mx; g = h2, b = mn; break;
160
--- src/timeline.c
+++ src/timeline.c
@@ -137,23 +137,23 @@
137 static char zColor[10]; /* The resulting color */
138 static int ix[2] = {0,0}; /* Color chooser parameters */
139
140 if( ix[0]==0 ){
141 if( skin_detail_boolean("white-foreground") ){
142 ix[0] = 0x50;
143 ix[1] = 0x20;
144 }else{
145 ix[0] = 0xf8;
146 ix[1] = 0x20;
147 }
148 }
149 for(i=0; z[i]; i++ ){
150 h = (h<<11) ^ (h<<1) ^ (h>>3) ^ z[i];
151 }
152 h1 = h % 6; h /= 6;
153 h3 = h % 10; h /= 10;
154 h4 = h % 10; h /= 10;
155 mx = ix[0] - h3;
156 mn = mx - h4 - ix[1];
157 h2 = (h%(mx - mn)) + mn;
158 switch( h1 ){
159 case 0: r = mx; g = h2, b = mn; break;
160

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button