Skip to content

Instantly share code, notes, and snippets.

@zlowram
Created May 16, 2014 11:37
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zlowram/34b991acaff5a2a47972 to your computer and use it in GitHub Desktop.
Save zlowram/34b991acaff5a2a47972 to your computer and use it in GitHub Desktop.
Dark colorscheme for ACME editor
diff -r 9bfe12150c5e include/draw.h
--- a/include/draw.h Mon May 05 22:28:03 2014 -0400
+++ b/include/draw.h Fri May 16 13:31:14 2014 +0200
@@ -54,6 +54,13 @@
#define DGreyblue 0x005DBBFF
#define DPalegreyblue 0x4993DDFF
#define DPurpleblue 0x8888CCFF
+/* Custom colors */
+#define ZGrey 0x444444FF
+#define ZLightGrey 0x999999FF
+#define ZDarkGrey 0x121212FF
+#define ZOrange 0xFF6600FF
+#define ZDarkOrange 0xD75600FF
+#define ZLightOrange 0xFF8737FF
#define DNotacolor 0xFFFFFF00
#define DNofill DNotacolor
diff -r 9bfe12150c5e src/cmd/acme/acme.c
--- a/src/cmd/acme/acme.c Mon May 05 22:28:03 2014 -0400
+++ b/src/cmd/acme/acme.c Fri May 16 13:31:14 2014 +0200
@@ -964,17 +964,17 @@
if(tagcols[BACK] == nil) {
/* Blue */
- tagcols[BACK] = allocimagemix(display, DPalebluegreen, DWhite);
- tagcols[HIGH] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DPalegreygreen);
- tagcols[BORD] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DPurpleblue);
- tagcols[TEXT] = display->black;
+ tagcols[BACK] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, ZGrey);
+ tagcols[HIGH] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, ZOrange);
+ tagcols[BORD] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, ZDarkOrange);
+ tagcols[TEXT] = display->white;
tagcols[HTEXT] = display->black;
/* Yellow */
- textcols[BACK] = allocimagemix(display, DPaleyellow, DWhite);
- textcols[HIGH] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DDarkyellow);
- textcols[BORD] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DYellowgreen);
- textcols[TEXT] = display->black;
+ textcols[BACK] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, ZDarkGrey);
+ textcols[HIGH] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, ZOrange);
+ textcols[BORD] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, ZLightGrey);
+ textcols[TEXT] = display->white;
textcols[HTEXT] = display->black;
}
@@ -999,12 +999,12 @@
r.max.x -= ButtonBorder;
border(modbutton, r, ButtonBorder, tagcols[BORD], ZP);
r = insetrect(r, ButtonBorder);
- tmp = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DMedblue);
+ tmp = allocimage(display, Rect(0,0,1,1), screen->chan, 1, ZLightOrange);
draw(modbutton, r, tmp, nil, ZP);
freeimage(tmp);
r = button->r;
- colbutton = allocimage(display, r, screen->chan, 0, DPurpleblue);
+ colbutton = allocimage(display, r, screen->chan, 0, ZDarkOrange);
but2col = allocimage(display, r, screen->chan, 1, 0xAA0000FF);
but3col = allocimage(display, r, screen->chan, 1, 0x006600FF);
@dpl0
Copy link

dpl0 commented Oct 5, 2015

Y U NO LEAVE SCREENSHOT?

Thanks for the patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment