]> git.mdlowis.com Git - projs/tide.git/commitdiff
added slightly fancier and easier to find cursor
authorMichael D. Lowis <mike.lowis@gentex.com>
Wed, 9 May 2018 16:48:38 +0000 (12:48 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Wed, 9 May 2018 16:48:38 +0000 (12:48 -0400)
lib/config.c
lib/x11.c

index 1681afa8730e06ab2f8474371651da44b978b679..eb5678c2165db178610b5e915955448f37743fbf 100644 (file)
@@ -31,31 +31,6 @@ int /* Integer config options */
     ExpandTabs = ON,
     DosLineFeed = OFF;
 
-#define PARCHMENT 1
-
-#if defined(GRUVBOX)
-int Palette[ClrCount] = {
-    [Red]      = 0xfb4934, // Red
-    [Green]    = 0xb8bb26, // Green
-    [Yellow]   = 0xfabd2f, // Yellow
-    [Blue]     = 0x83a598, // Blue
-    [Purple]   = 0x93869b, // Purple
-    [Aqua]     = 0x8ec07c, // Aqua
-    [Orange]   = 0xfe8019, // Orange
-    [EditBg]   = 0x1d2021, // Edit region background
-    [EditFg]   = 0xd5c4a1, // Edit region text
-    [EditSel]  = 0x504945, // Edit region selection
-    [EditCsr]  = 0xfbf1c7, // Edit region cursor
-    [TagsBg]   = 0x3c3836, // Tags region background
-    [TagsFg]   = 0xd5c4a1, // Tags region text
-    [TagsSel]  = 0x504945, // Tags region selection
-    [TagsCsr]  = 0xfbf1c7, // Tags region cursor
-    [ScrollBg] = 0x665c54, // Scroll region background
-    [ScrollFg] = 0x1d2021, // Scroll region foreground
-    [VerBdr]   = 0x665c54, // Vertical border
-    [HorBdr]   = 0x665c54, // Horizontal border
-};
-#elif defined(PARCHMENT)
 int Palette[ClrCount] = {
     [Red]      = 0x772222, // Red
     [Green]    = 0x227722, // Green
@@ -77,4 +52,3 @@ int Palette[ClrCount] = {
     [VerBdr]   = 0x909047, // Vertical border
     [HorBdr]   = 0x000000, // Horizontal border
 };
-#endif
index b302909ac1ea77674911f93f2d344ca90ce78200..2e247ff98841106f0d47bdc77b1733c58be2a084 100644 (file)
--- a/lib/x11.c
+++ b/lib/x11.c
@@ -306,7 +306,9 @@ static void draw_view(int i, size_t nrows, drawcsr* csr, int bg, int fg, int sel
             if (buf_insel(&(view->buffer), row->cols[i].off))
                 draw_rect(sel, x, y, row->cols[i].width, fheight);
             if (!csr_drawn && !view_selsize(view) && row->cols[i].off == view->buffer.selection.end) {
-                draw_rect((i == TAGS ? TagsCsr : EditCsr), x, y, 1, fheight);
+                draw_rect((i == TAGS ? TagsCsr : EditCsr), x-2, y, 3, 3);
+                draw_rect((i == TAGS ? TagsCsr : EditCsr), x-1, y, 1, fheight);
+                draw_rect((i == TAGS ? TagsCsr : EditCsr), x-2, y+fheight-3, 3, 3);
                 csr_drawn = true;
             }
             specs[i].glyph = XftCharIndex(X.display, X.font, rune);