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
312 sysfatal("initkeyboard: %r");312 sysfatal("initkeyboard: %r");
313 313
314 cback = allocimage(display, Rect(0,0,1,1), RGB24, 1, brgb);314 cback = allocimage(display, Rect(0,0,1,1), RGB24, 1, brgb);
315 brgb = ~(brgb>>8 | brgb>>16 | brgb>>24);315 if(brgb == DPalegreygreen)
316 brgb = brgb<<8 | brgb<<16 | brgb<<24 | 0xff;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 }
317 ctext = allocimage(display, Rect(0,0,1,1), RGB24, 1, brgb);321 ctext = allocimage(display, Rect(0,0,1,1), RGB24, 1, brgb);
318 322
319 a[Emouse].c = mctl->c;323 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