]> git.mdlowis.com Git - projs/tide.git/commitdiff
finished acme theme
authorMichael D. Lowis <mike@mdlowis.com>
Thu, 29 Jun 2017 01:31:40 +0000 (21:31 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Thu, 29 Jun 2017 01:31:40 +0000 (21:31 -0400)
lib/win.c
themes/acme

index d03507e742b8b8abcc2764f1e37269d6f79a2a0b..f08d310e0e30b19b1e71f63b447ce76c55155a5d 100644 (file)
--- a/lib/win.c
+++ b/lib/win.c
@@ -36,6 +36,8 @@ static bool ShowLineNumbers = false;
 static void win_init(void (*errfn)(char*)) {
     for (int i = 0; i < SCROLL; i++)
         view_init(&(Regions[i].view), NULL, errfn);
+    x11_init(&Config);
+    Font = x11_font_load(config_get_str(FontString));
     Regions[STATUS].clrnor = config_get_int(ClrStatusNor);
     Regions[SCROLL].clrnor = config_get_int(ClrScrollNor);
     Regions[TAGS].clrnor = config_get_int(ClrTagsNor);
@@ -44,8 +46,6 @@ static void win_init(void (*errfn)(char*)) {
     Regions[EDIT].clrnor = config_get_int(ClrEditNor);
     Regions[EDIT].clrsel = config_get_int(ClrEditSel);
     Regions[EDIT].clrcsr = config_get_int(ClrEditCsr);
-    x11_init(&Config);
-    Font = x11_font_load(config_get_str(FontString));
 }
 
 void win_window(char* name, void (*errfn)(char*)) {
index 89537da3146b81633b8ca301593c43405f5e3aa3..966fb4f28ee83dde0b76eda10b78318e79ba5e33 100644 (file)
@@ -1,88 +1,33 @@
+!-------------------------------------------------------------------------------
 ! Acme Theme - based on the Acme text editor
 !-------------------------------------------------------------------------------
+! Looks closest to Acme with line numbers, ruler, and syntax disabled.
+
 ! Setting Tweaks
 tide.ui.syntax_enabled: false
-tide.ui.line_numbers: false
-tide.ui.ruler_column: 80
+tide.ui.line_numbers:   false
+tide.ui.ruler_column:   0
 
 ! Color Palette
-
-! status main  background
-! status text background
-! tags main background
-! tags selection background
-! tags text color
-! edit main background
-! edit selection background
-! edit text color
-
-tide.palette.00: 0xffeaffff ! 00 (0) - tags background
-tide.palette.01: 0xffffffea ! 01 (1) - main background
-tide.palette.02: 0xffeeee9e ! 02 (2) - edit selected background
-tide.palette.03: 0xff99994c ! 03 (3) - scroll background
-tide.palette.04: 0xff000000 ! 04 (4) - text color
-tide.palette.05: 0xff9eeeee ! 05 (5) - tags selection background
-tide.palette.06: 0xff8888cc ! 06 (6)
-tide.palette.07: 0xff000099 ! 07 (7)
-!tide.palette.08: 0xffb58900 ! 08 (8) - Yellow
-!tide.palette.09: 0xffcb4b16 ! 09 (9) - Orange
-!tide.palette.10: 0xffdc322f ! 10 (A) - Red
-!tide.palette.11: 0xffd33682 ! 11 (B) - Magenta
-!tide.palette.12: 0xff6c71c4 ! 12 (C) - Violet
-!tide.palette.13: 0xff268bd2 ! 13 (D) - Blue
-!tide.palette.14: 0xff2aa198 ! 14 (E) - Cyan
-!tide.palette.15: 0xff859900 ! 15 (F) - Green
-
-
-! Background and UI Colors
-tide.colors.ruler:      0x5
-tide.colors.gutter:     0x1
-tide.colors.bkg_tags:   0x0
-tide.colors.bkg_edit:   0x1
-tide.colors.bkg_scroll: 0x3
-tide.colors.bkg_thumb:  0x1
-tide.colors.border:     0x3
-
-! Base Text Colors
-tide.colors.text.cursor:   0x0004
-tide.colors.text.normal:   0x0004
-tide.colors.text.selected: 0x0204
-tide.colors.text.gutter:   0x0004
-tide.colors.text.currline: 0x0204
-
-!tide.colors.bkg.hborder: 0x3
-!tide.colors.bkg.vborder: 0x3
-!tide.colors.bkg.tags:    0x0
-!tide.colors.bkg.edit:    0x1
-!tide.colors.bkg.scroll:  0x3
-!tide.colors.bkg.thumb:   0x1
-!tide.colors.bkg.ruler:   0x5
-!tide.colors.bkg.gutter:  0x1
-
-!tide.colors.text.normal.status: 0x0004
-!tide.colors.text.normal.tags:   0x0004
-!tide.colors.text.normal.edit:   0x0004
-!tide.colors.text.selected.tags: 0x0204
-!tide.colors.text.selected.edit: 0x0204
-!tide.colors.text.cursor.tags:   0x0004
-!tide.colors.text.cursor.edit:   0x0004
-!tide.colors.text.gutter:        0x0004
-!tide.colors.text.currline:      0x0204
-
-! Syntax Highlighting Colors               BG      FG
-tide.colors.syntax.normal:       0x0004  ! Base03  Base0
-tide.colors.syntax.comment:      0x0004  ! Base03  Base01
-tide.colors.syntax.constant:     0x0004  ! Base03  Cyan
-tide.colors.syntax.string:       0x0004  ! Base03  Cyan
-tide.colors.syntax.character:    0x0004  ! Base03  Cyan
-tide.colors.syntax.number:       0x0004  ! Base03  Cyan
-tide.colors.syntax.boolean:      0x0004  ! Base03  Cyan
-tide.colors.syntax.float:        0x0004  ! Base03  Cyan
-tide.colors.syntax.variable:     0x0004  ! Base03  Blue
-tide.colors.syntax.function:     0x0004  ! Base03  Blue
-tide.colors.syntax.keyword:      0x0004  ! Base03  Green
-tide.colors.syntax.operator:     0x0004  ! Base03  Green
-tide.colors.syntax.preprocessor: 0x0004  ! Base03  Orange
-tide.colors.syntax.type:         0x0004  ! Base03  Yellow
-tide.colors.syntax.statement:    0x0004  ! Base03  Green
-tide.colors.syntax.special:      0x0004  ! Base03  Red
+tide.palette.00: 0xff000000 ! 00 (4) - text color
+tide.palette.01: 0xff99994c ! 01 (3) - scroll background
+tide.palette.02: 0xffeaffff ! 02 (0) - tags background
+tide.palette.03: 0xff9eeeee ! 03 (5) - tags selection background
+tide.palette.04: 0xffffffea ! 04 (1) - edit background
+tide.palette.05: 0xffeeee9e ! 05 (2) - edit selected background
+tide.palette.06: 0xff8888cc ! 06 (6) - horizontal border
+tide.palette.07: 0xff000099 ! 07 (7) - Unused
+
+! Colors for UI Elements and Text
+tide.colors.scroll.normal:   0x0104
+tide.colors.gutter.normal:   0x0200
+tide.colors.gutter.selected: 0x0300
+tide.colors.status.normal:   0x0400
+tide.colors.tags.normal:     0x0200
+tide.colors.tags.selected:   0x0300
+tide.colors.tags.cursor:     0x00
+tide.colors.edit.normal:     0x0400
+tide.colors.edit.selected:   0x0500
+tide.colors.edit.cursor:     0x00
+tide.colors.edit.ruler:      0x06
+tide.colors.borders:         0x0601