~sircmpwn/aerc

1

Discussion: Add color configuration

Details
Message ID
<C08ZU8ON03ZY.155S3VTM08T2X@enceladus>
DKIM signature
pass
Download raw message
Reposting it here from todo#29  as requested by ~labrat.

I would like to take a stab at adding colors to aerc.
Has there been any decisions made regarding the possible implementation
or configuration?

My current idea for configuration, contains a [colors] sections in the
aerc.conf file. This would contain the default tcell style and
subsection that would work for specific objects.

```
[colors]
bg=ColorGreen
fg=ColorWhite
attr=Bold

[colors:index_read]
fg=ColorMaroon

[colors:index_unread]
fg=ColorBlue
```

These configurations get converted to tcell.style and can be accessed
through a public function in config.

```
config.GetStyle(STYLE_DEFAULT)
config.GetStyle(STYLE_INDEX_READ)
```

I am looking forward to any comments on this idea.
PS. Sorry about my horrible color choices :p

--
Cheers,
Srivathsan Murali (sri)
Details
Message ID
<C098YNRLJLH4.15UFM33B1ANS9@jupiter.local>
In-Reply-To
<C08ZU8ON03ZY.155S3VTM08T2X@enceladus> (view parent)
DKIM signature
pass
Download raw message
Awesome! This seems like a reasonable design to me.