History

use black text color if /dev/theme is unavailable

Sigrid Solveig Haflínudóttir committed 5 years ago

Commit 3d428df1 parent a256cd71 file · +6 −2Browse files

Unified · Split

bar.c+6−2
@@ -312,8 +312,12 @@ threadmain(int argc, char **argv) · 311 unmodified lines
312312 sysfatal("initkeyboard: %r");
313313
314314 cback = allocimage(display, Rect(0,0,1,1), RGB24, 1, brgb);
315− brgb = ~(brgb>>8 | brgb>>16 | brgb>>24);
316− brgb = brgb<<8 | brgb<<16 | brgb<<24 | 0xff;
315+ if(brgb == DPalegreygreen)
316+ brgb = DBlack;
317+ else{ /* dunno, just invert */
318+ brgb = ~(brgb>>8 | brgb>>16 | brgb>>24);
319+ brgb = brgb<<8 | brgb<<16 | brgb<<24 | 0xff;
320+ }
317321 ctext = allocimage(display, Rect(0,0,1,1), RGB24, 1, brgb);
318322
319323 a[Emouse].c = mctl->c;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t