diff options
author | Robin Jarry <robin@jarry.cc> | 2023-01-29 16:41:31 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-02-02 21:49:37 +0100 |
commit | 9a69dcc333e9f89bbe3120ef5b181b2a3ecd9a3d (patch) | |
tree | 269d0c5584e31f007983a5f4e83a71ce940cbeed | |
parent | 05f218a6122c91c79d131731d65844cf3fa881eb (diff) | |
download | aerc-9a69dcc333e9f89bbe3120ef5b181b2a3ecd9a3d.tar.gz |
colorize: restore previous default theme
Restore the default theme from the previous colorize awk script. It is
more colorful and may be more appealing to new users out of the box.
Since colorize is now configurable via stylesets, power users can do
whatever they like.
Requested-by: Andrea Pappacoda <andrea@pappacoda.it>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Agreed-by: Bence Ferdinandy <bence@ferdinandy.com>
-rw-r--r-- | filters/colorize.c | 24 | ||||
-rw-r--r-- | filters/vectors/colorize-patch.expected | 62 | ||||
-rw-r--r-- | filters/vectors/colorize-quotes.expected | 76 | ||||
-rw-r--r-- | stylesets/blue | 30 | ||||
-rw-r--r-- | stylesets/default | 22 | ||||
-rw-r--r-- | stylesets/pink | 30 |
6 files changed, 122 insertions, 122 deletions
diff --git a/filters/colorize.c b/filters/colorize.c index dcc486b6..307fe190 100644 --- a/filters/colorize.c +++ b/filters/colorize.c @@ -154,18 +154,18 @@ struct styles { static FILE *in_file; static const char *styleset; static struct styles styles = { - .url = { .underline = 1 }, - .header = { .bold = 1 }, - .signature = { .dim = 1 }, - .diff_meta = { .bold = 1 }, - .diff_chunk = { .dim = 1 }, - .diff_add = { .fg = { .type = PALETTE, .index = 2 } }, - .diff_del = { .fg = { .type = PALETTE, .index = 1 } }, - .quote_1 = { .fg = { .type = PALETTE, .index = 6 } }, - .quote_2 = { .fg = { .type = PALETTE, .index = 6 }, .dim = 1 }, - .quote_3 = { .fg = { .type = PALETTE, .index = 6 }, .dim = 1 }, - .quote_4 = { .fg = { .type = PALETTE, .index = 6 }, .dim = 1 }, - .quote_x = { .fg = { .type = PALETTE, .index = 6 }, .dim = 1 }, + .url = { .underline = 1, .fg = { .type = RGB, .rgb = 0xffffaf } }, + .header = { .bold = 1, .fg = { .type = RGB, .rgb = 0xaf87ff } }, + .signature = { .dim = 1, .fg = { .type = RGB, .rgb = 0xaf87ff } }, + .diff_meta = { .bold = 1, .fg = { .type = RGB, .rgb = 0xffffff } }, + .diff_chunk = { .fg = { .type = RGB, .rgb = 0x00cdcd } }, + .diff_add = { .fg = { .type = RGB, .rgb = 0x00cd00 } }, + .diff_del = { .fg = { .type = RGB, .rgb = 0xcd0000 } }, + .quote_1 = { .fg = { .type = RGB, .rgb = 0x5fafff } }, + .quote_2 = { .fg = { .type = RGB, .rgb = 0xff8700 } }, + .quote_3 = { .fg = { .type = RGB, .rgb = 0xaf87ff } }, + .quote_4 = { .fg = { .type = RGB, .rgb = 0xff5fd7 } }, + .quote_x = { .fg = { .type = RGB, .rgb = 0x808080 } }, }; static inline int startswith(const char *s, const char *prefix) diff --git a/filters/vectors/colorize-patch.expected b/filters/vectors/colorize-patch.expected index 1a2144a0..de3f2399 100644 --- a/filters/vectors/colorize-patch.expected +++ b/filters/vectors/colorize-patch.expected @@ -1,49 +1,49 @@ -[1mFrom:[0m Robin Jarry <[4mrobin@jarry.cc[0m> -[1mDate:[0m Mon, 26 Dec 2022 17:02:14 +0100 -[1mSubject:[0m [PATCH aerc] doc: fix numbered lists +[1;38;2;175;135;255mFrom:[0m Robin Jarry <[4;38;2;255;255;175mrobin@jarry.cc[0m> +[1;38;2;175;135;255mDate:[0m Mon, 26 Dec 2022 17:02:14 +0100 +[1;38;2;175;135;255mSubject:[0m [PATCH aerc] doc: fix numbered lists According to scdoc(5), numbered lists start with a period. -[1mFixes:[0m af63bd0188d1 ("doc: homogenize scdoc markup") -[1mSigned-off-by:[0m Robin Jarry <[4mrobin@jarry.cc[0m> +[1;38;2;175;135;255mFixes:[0m af63bd0188d1 ("doc: homogenize scdoc markup") +[1;38;2;175;135;255mSigned-off-by:[0m Robin Jarry <[4;38;2;255;255;175mrobin@jarry.cc[0m> --- doc/aerc-stylesets.7.scd | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) -[1mdiff --git a/doc/aerc-stylesets.7.scd b/doc/aerc-stylesets.7.scd[0m -[1mindex d82ba7cf8163..34bbf4af0fc5 100644[0m -[1m--- a/doc/aerc-stylesets.7.scd[0m -[1m+++ b/doc/aerc-stylesets.7.scd[0m -[2m@@ -180,20 +180,20 @@[0m that style applies, unless overridden by a higher layer. +[1;38;2;255;255;255mdiff --git a/doc/aerc-stylesets.7.scd b/doc/aerc-stylesets.7.scd[0m +[1;38;2;255;255;255mindex d82ba7cf8163..34bbf4af0fc5 100644[0m +[1;38;2;255;255;255m--- a/doc/aerc-stylesets.7.scd[0m +[1;38;2;255;255;255m+++ b/doc/aerc-stylesets.7.scd[0m +[38;2;0;205;205m@@ -180,20 +180,20 @@[0m that style applies, unless overridden by a higher layer. The order that *msglist_\** styles are applied in is, from first to last: -[31m-1. *msglist_default*[0m -[31m-2. *msglist_unread*[0m -[31m-3. *msglist_read*[0m -[31m-4. *msglist_flagged*[0m -[31m-5. *msglist_deleted*[0m -[31m-6. *msglist_marked*[0m -[32m+. *msglist_default*[0m -[32m+. *msglist_unread*[0m -[32m+. *msglist_read*[0m -[32m+. *msglist_flagged*[0m -[32m+. *msglist_deleted*[0m -[32m+. *msglist_marked*[0m +[38;2;205;0;0m-1. *msglist_default*[0m +[38;2;205;0;0m-2. *msglist_unread*[0m +[38;2;205;0;0m-3. *msglist_read*[0m +[38;2;205;0;0m-4. *msglist_flagged*[0m +[38;2;205;0;0m-5. *msglist_deleted*[0m +[38;2;205;0;0m-6. *msglist_marked*[0m +[38;2;0;205;0m+. *msglist_default*[0m +[38;2;0;205;0m+. *msglist_unread*[0m +[38;2;0;205;0m+. *msglist_read*[0m +[38;2;0;205;0m+. *msglist_flagged*[0m +[38;2;0;205;0m+. *msglist_deleted*[0m +[38;2;0;205;0m+. *msglist_marked*[0m So, the marked style will override all other msglist styles. The order for *dirlist_\** styles is: -[31m-1. *dirlist_default*[0m -[31m-2. *dirlist_unread*[0m -[31m-3. *dirlist_recent*[0m -[32m+. *dirlist_default*[0m -[32m+. *dirlist_unread*[0m -[32m+. *dirlist_recent*[0m +[38;2;205;0;0m-1. *dirlist_default*[0m +[38;2;205;0;0m-2. *dirlist_unread*[0m +[38;2;205;0;0m-3. *dirlist_recent*[0m +[38;2;0;205;0m+. *dirlist_default*[0m +[38;2;0;205;0m+. *dirlist_unread*[0m +[38;2;0;205;0m+. *dirlist_recent*[0m ## COLORS -[2m-- [0m -[2m2.39.0[0m -[2m[0m +[2;38;2;175;135;255m-- [0m +[2;38;2;175;135;255m2.39.0[0m +[2;38;2;175;135;255m[0m diff --git a/filters/vectors/colorize-quotes.expected b/filters/vectors/colorize-quotes.expected index d350e4f1..6e71d60a 100644 --- a/filters/vectors/colorize-quotes.expected +++ b/filters/vectors/colorize-quotes.expected @@ -1,26 +1,26 @@ Foo Bar, xxxxx: -[36m> Lorem ipsum dolor sit amet, insolens adolescens ne usu? In pri denique[0m -[36m> argumentum, te autem decore convenire mea! Duo nisl esse an, aliquid[0m -[36m> conceptam sea cu. Ignota copiosae gubergren ad est, ut illum doming vocibus[0m -[36m> sed. Et vis nulla expetendis mediocritatem, errem option gloriatur at nam?[0m -[36m> Brute vidisse corpora ut his, sonet omnesque adipiscing ea quo, cum ea errem[0m -[36m> aliquip reformidans?[0m +[38;2;95;175;255m> Lorem ipsum dolor sit amet, insolens adolescens ne usu? In pri denique[0m +[38;2;95;175;255m> argumentum, te autem decore convenire mea! Duo nisl esse an, aliquid[0m +[38;2;95;175;255m> conceptam sea cu. Ignota copiosae gubergren ad est, ut illum doming vocibus[0m +[38;2;95;175;255m> sed. Et vis nulla expetendis mediocritatem, errem option gloriatur at nam?[0m +[38;2;95;175;255m> Brute vidisse corpora ut his, sonet omnesque adipiscing ea quo, cum ea errem[0m +[38;2;95;175;255m> aliquip reformidans?[0m Magna delicatissimi ei vel? Quem petentium scribentur eum ne? Et inani debet cetero mea, sint conceptam efficiendi mel te. Qui ut senserit interesset, per nibh petentium at! Sit docendi laboramus ei, animal insolens ad mea. -[2;36m>> Nostrud alienum nec in, illum errem audiam no per! Saepe alterum vis ea! Ei[0m -[2;36m>> quis minim ius, ut eos mandamus salutandi. Lorem facilisis in nam, ridens[0m -[2;36m>> principes sadipscing et eum, pri graecis singulis ut. Mea dolor primis[0m -[2;36m>> impetus in, his epicurei tacimates id, vis labitur suscipit ad.[0m -[36m> Erat alienum interpretaris has et, te vim aliquam molestie. Nam vivendum[0m -[36m> facilisis qualisque at, ex his mucius qualisque! Fabulas lucilius adversarium[0m -[36m> eu his. Cu soluta inermis accusata usu, his nulla dolore ne, vis id semper[0m -[36m> detracto sententia <[4mhttps://foobar.com[0m[36m> && "[4mhttps://foobaz.org/[0m[36m".[0m -[36m>[0m -[36m> Error libris deleniti ea mei, vis at elit probo munere, his sint unum[0m -[36m> albucius ex.[0m +[38;2;255;135;0m>> Nostrud alienum nec in, illum errem audiam no per! Saepe alterum vis ea! Ei[0m +[38;2;255;135;0m>> quis minim ius, ut eos mandamus salutandi. Lorem facilisis in nam, ridens[0m +[38;2;255;135;0m>> principes sadipscing et eum, pri graecis singulis ut. Mea dolor primis[0m +[38;2;255;135;0m>> impetus in, his epicurei tacimates id, vis labitur suscipit ad.[0m +[38;2;95;175;255m> Erat alienum interpretaris has et, te vim aliquam molestie. Nam vivendum[0m +[38;2;95;175;255m> facilisis qualisque at, ex his mucius qualisque! Fabulas lucilius adversarium[0m +[38;2;95;175;255m> eu his. Cu soluta inermis accusata usu, his nulla dolore ne, vis id semper[0m +[38;2;95;175;255m> detracto sententia <[4;38;2;255;255;175mhttps://foobar.com[0m[38;2;95;175;255m> && "[4;38;2;255;255;175mhttps://foobaz.org/[0m[38;2;95;175;255m".[0m +[38;2;95;175;255m>[0m +[38;2;95;175;255m> Error libris deleniti ea mei, vis at elit probo munere, his sint unum[0m +[38;2;95;175;255m> albucius ex.[0m Graece definiebas scripserit ne est? Nec nonumes explicari contentiones ne, vocent iuvaret placerat no vix. Nec et partem salutandi deseruisse, his no @@ -28,23 +28,23 @@ possim malorum pericula. Te quando reprehendunt nam, at consul sadipscing vel? Velit possim aliquando ei per, ne simul quodsi antiopam sea, ullum choro facilisi et pri! -[36m> Dico soleat partem ea pro, ad vix impetus splendide. Primis melius principes[0m -[36m> pri ad, tacimates pertinacia ei pro? Appareat atomorum oportere at nam, eu[0m -[36m> per quod minim reprimique, ornatus graecis ad vel. Malis vulputate ea qui,[0m -[36m> eum tacimates recteque et, usu ea dolore vidisse. Brute mediocrem molestiae[0m -[36m> sed te. No stet prompta pri, rebum populo nominati eos te.[0m -[36m>[0m -[36m> [1mdiff --git a/foo b/foo[0m -[36m> [1mindex 4b0fe8dded3a..518b67134639 100644[0m -[36m> [0m[31m--- a/foo[0m -[36m> [0m[32m+++ b/foo[0m -[36m> @@ -131,6 +131,83 @@ func pouet() int {[0m -[36m> err := doThis()[0m -[36m> [0m -[36m> [0m[31m- err2 := doThat()[0m -[36m> [0m[32m+ err2 := notDoThat()[0m -[36m> [0m -[36m> if err != nil || err2 != nil {[0m +[38;2;95;175;255m> Dico soleat partem ea pro, ad vix impetus splendide. Primis melius principes[0m +[38;2;95;175;255m> pri ad, tacimates pertinacia ei pro? Appareat atomorum oportere at nam, eu[0m +[38;2;95;175;255m> per quod minim reprimique, ornatus graecis ad vel. Malis vulputate ea qui,[0m +[38;2;95;175;255m> eum tacimates recteque et, usu ea dolore vidisse. Brute mediocrem molestiae[0m +[38;2;95;175;255m> sed te. No stet prompta pri, rebum populo nominati eos te.[0m +[38;2;95;175;255m>[0m +[38;2;95;175;255m> [1mdiff --git a/foo b/foo[0m +[38;2;95;175;255m> [1mindex 4b0fe8dded3a..518b67134639 100644[0m +[38;2;95;175;255m> [0m[38;2;205;0;0m--- a/foo[0m +[38;2;95;175;255m> [0m[38;2;0;205;0m+++ b/foo[0m +[38;2;95;175;255m> @@ -131,6 +131,83 @@ func pouet() int {[0m +[38;2;95;175;255m> err := doThis()[0m +[38;2;95;175;255m> [0m +[38;2;95;175;255m> [0m[38;2;205;0;0m- err2 := doThat()[0m +[38;2;95;175;255m> [0m[38;2;0;205;0m+ err2 := notDoThat()[0m +[38;2;95;175;255m> [0m +[38;2;95;175;255m> if err != nil || err2 != nil {[0m Id vix referrentur philosophia, veri labores an nec. Noster denique no duo, sit ei diam inermis vocibus! Mutat principes ex pro, at pericula assueverit vel. @@ -52,14 +52,14 @@ Has putent verterem constituto ex, tale electram duo at! Ei nulla lucilius intellegat nam, pro quod epicuri dissentiet ut, omnis voluptatibus definitiones vim at. -[4mhttps://git-man-page-generator.lokaltog.net/#Y2xhcCQkY29tbWFuZA==[0m +[4;38;2;255;255;175mhttps://git-man-page-generator.lokaltog.net/#Y2xhcCQkY29tbWFuZA==[0m Eam mundi libris debitis ad, eam regione numquam at. Eum omnes bonorum eu, oporteat assueverit disputationi nam ne, nonumes iracundia mea ad! Duo libris recusabo id, ceteros salutatus inciderint vim ea. Et graeco reformidans vel? Ei has labore quidam? -[2;36m>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> sympa, non?[0m +[38;2;128;128;128m>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> sympa, non?[0m -[2m-- [0m -[2mBatman[0m +[2;38;2;175;135;255m-- [0m +[2;38;2;175;135;255mBatman[0m diff --git a/stylesets/blue b/stylesets/blue index 7ae019d2..c3e8c47e 100644 --- a/stylesets/blue +++ b/stylesets/blue @@ -46,18 +46,18 @@ default.selected.bg=#005f87 completion_default.selected.bg=#005f87 -[viewer] -url.fg=#ffffaf -url.underline=true -header.fg=#af87ff -signature.fg=#af87ff -diff_meta.fg=#ffffff -diff_meta.bold=true -diff_chunk.fg=#00cdcd -diff_add.fg=#00cd00 -diff_del.fg=#cd0000 -quote_1.fg=#5fafff -quote_2.fg=#ff8700 -quote_3.fg=#af87ff -quote_4.fg=#ff5fd7 -quote_x.fg=#808080 +#[viewer] +#url.fg=#ffffaf +#url.underline=true +#header.fg=#af87ff +#signature.fg=#af87ff +#diff_meta.fg=#ffffff +#diff_meta.bold=true +#diff_chunk.fg=#00cdcd +#diff_add.fg=#00cd00 +#diff_del.fg=#cd0000 +#quote_1.fg=#5fafff +#quote_2.fg=#ff8700 +#quote_3.fg=#af87ff +#quote_4.fg=#ff5fd7 +#quote_x.fg=#808080 diff --git a/stylesets/default b/stylesets/default index 5ee1c4e0..19eeb03d 100644 --- a/stylesets/default +++ b/stylesets/default @@ -36,14 +36,14 @@ border.reverse = true selector_focused.reverse=true selector_chooser.bold=true -[viewer] -url.underline=true -header.bold=true -signature.dim=true -diff_meta.bold=true -diff_chunk.dim=true -diff_add.fg=2 -diff_del.fg=1 -quote_*.fg=6 -quote_*.dim=true -quote_1.dim=false +#[viewer] +#url.underline=true +#header.bold=true +#signature.dim=true +#diff_meta.bold=true +#diff_chunk.dim=true +#diff_add.fg=2 +#diff_del.fg=1 +#quote_*.fg=6 +#quote_*.dim=true +#quote_1.dim=false diff --git a/stylesets/pink b/stylesets/pink index 792771a2..eb76a3f6 100644 --- a/stylesets/pink +++ b/stylesets/pink @@ -48,18 +48,18 @@ default.selected.bg=#de4e85 completion_default.selected.bg=#de4e85 -[viewer] -url.fg=#ffffaf -url.underline=true -header.fg=#af87ff -signature.fg=#af87ff -diff_meta.fg=#ffffff -diff_meta.bold=true -diff_chunk.fg=#00cdcd -diff_add.fg=#00cd00 -diff_del.fg=#cd0000 -quote_1.fg=#5fafff -quote_2.fg=#ff8700 -quote_3.fg=#af87ff -quote_4.fg=#ff5fd7 -quote_x.fg=#808080 +#[viewer] +#url.fg=#ffffaf +#url.underline=true +#header.fg=#af87ff +#signature.fg=#af87ff +#diff_meta.fg=#ffffff +#diff_meta.bold=true +#diff_chunk.fg=#00cdcd +#diff_add.fg=#00cd00 +#diff_del.fg=#cd0000 +#quote_1.fg=#5fafff +#quote_2.fg=#ff8700 +#quote_3.fg=#af87ff +#quote_4.fg=#ff5fd7 +#quote_x.fg=#808080 |