luisiacc / gruvbox-baby

Gruvbox theme for neovim with full šŸŽ„TreeSitter support.
MIT License
402 stars 28 forks source link

Style for Mutt-Mails #5

Closed cpfaff closed 2 years ago

cpfaff commented 2 years ago
    -- Mutt-Mail:
    --
    -- header and subject parts
    mailHeader = { fg = c.blue_gray, bg = c.none },
    mailHeaderKey = { fg = c.blue_gray, bg = c.none },
    mailHeaderEmail = { fg = c.blue_gray, bg = c.none },
    mailSubject = { fg = c.blue_gray, bg = c.none },

    --quoted text in mails
    mailQuoted1 = { fg = c.light_blue, bg = c.none  },
    mailQuoted2 = { fg = c.magenta, bg = c.none  },
    mailQuoted3 = { fg = c.soft_yellow, bg = c.none  },
    mailQuoted4 = { fg = c.soft_green, bg = c.none  },
    mailQuoted5 = { fg = c.red, bg = c.none  },
    mailQuoted6 = { fg = c.orange, bg = c.none  },

    --quoted text in mails
    mailQuotedExp1 = { fg = c.light_blue, bg = c.none  },
    mailQuotedExp2 = { fg = c.magenta, bg = c.none  },
    mailQuotedExp3 = { fg = c.soft_yellow, bg = c.none  },
    mailQuotedExp4 = { fg = c.soft_green, bg = c.none  },
    mailQuotedExp5 = { fg = c.red, bg = c.none  },
    mailQuotedExp6 = { fg = c.orange, bg = c.none  },

   -- did not discover yet for what this is used: mailVerbatim 

   -- mail signature 
    mailSignature = { fg = c.foreground, bg = c.none  },

   -- mail url and emails 
   mailURL = { fg = c.blue_gray, bg = c.none  },
   mailEmail = { fg = c.blue_gray, bg = c.none  },
cpfaff commented 2 years ago

Might be not optimal yet but you could play with it. I think you have a really good sense for color composition

luisiacc commented 2 years ago

I've never used mutt-mail, if you can provide me with a sample file I can look at the highlights and make some tweaks.

cpfaff commented 2 years ago

That is a super nice offer. I will prepare something.

cpfaff commented 2 years ago

In Vim:

:set ft=mail

From: test@best.org <test@best.org>
To: test@test.org
Cc: carbon@copy.org
Bcc:
Subject: mySubject 
Reply-To:
In-Reply-To: <mail@mail.de>

This is some normal text

> First quoted
>> Second quoted
>>> Third quoted
>>>> Fourth quoted
>>>>> Fifth quoted

This is emails and urls

test@best.org
test@best.org<mailto:test@best.org>
http://test.best.de
https://test.best.de

> this is first quoted text with email test@best.org and url http://test.best.de
>> this is second quoted text with email test@best.org and url http://test.best.de
>>> this is third quoted text with email test@best.org and url http://test.best.de
>>>> this is fourth quoted text with email test@best.org and url http://test.best.de
>>>>> this is fifth quoted text with email test@best.org and url http://test.best.de

---
Email signature (only the lines are styled I guess the rest afterwards is normal text)
cpfaff commented 2 years ago

I think that is pretty much it. Howver there might be more things which I do not know of. Daily use will show.

cpfaff commented 2 years ago

Ah one thing I noticed. I made a mistake in the example file. The signature is --- not -- it is now fixed in the example above.

luisiacc commented 2 years ago

Since I don't really use this, I wouldn't know if these look good on real world emails, this was my attempt to it: image

luisiacc commented 2 years ago

Forgot to link the issue on the commit: https://github.com/luisiacc/gruvbox-baby/commit/23bdf344dcd68365f78ee9ae0b67723d55ec5131

cpfaff commented 2 years ago

From the first glance it looks simple awesome. I would give it a try for a while and give feedback on this if I think that some stuff does not work out well in the wild. Likely other users of your color schema are also interested in this and can benefit. Thanks a lot!