Fossil SCM
Adjust automatically choosen colors to be less saturated, and easier to read.
Commit
fb3dabd5c4bf638cd675344be5afcab0390cf2d050617abf7c19dbc8f60cf2e2
Parent
74dd3187a9d53f6…
1 file changed
+6
-6
+6
-6
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -137,23 +137,23 @@ | ||
| 137 | 137 | static char zColor[10]; /* The resulting color */ |
| 138 | 138 | static int ix[2] = {0,0}; /* Color chooser parameters */ |
| 139 | 139 | |
| 140 | 140 | if( ix[0]==0 ){ |
| 141 | 141 | if( skin_detail_boolean("white-foreground") ){ |
| 142 | - ix[0] = 140; | |
| 143 | - ix[1] = 40; | |
| 142 | + ix[0] = 0x50; | |
| 143 | + ix[1] = 0x20; | |
| 144 | 144 | }else{ |
| 145 | - ix[0] = 216; | |
| 146 | - ix[1] = 16; | |
| 145 | + ix[0] = 0xf8; | |
| 146 | + ix[1] = 0x20; | |
| 147 | 147 | } |
| 148 | 148 | } |
| 149 | 149 | for(i=0; z[i]; i++ ){ |
| 150 | 150 | h = (h<<11) ^ (h<<1) ^ (h>>3) ^ z[i]; |
| 151 | 151 | } |
| 152 | 152 | 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; | |
| 155 | 155 | mx = ix[0] - h3; |
| 156 | 156 | mn = mx - h4 - ix[1]; |
| 157 | 157 | h2 = (h%(mx - mn)) + mn; |
| 158 | 158 | switch( h1 ){ |
| 159 | 159 | case 0: r = mx; g = h2, b = mn; break; |
| 160 | 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] = 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 |