Remove unimplemented color configuration
Will probably end up doing this differently anyway
This commit is contained in:
parent
89ffd8653d
commit
fcdcd32de7
3 changed files with 3 additions and 45 deletions
|
@ -65,45 +65,3 @@ editor=
|
|||
subject,~^\[PATCH=contrib/hldiff.py
|
||||
text/html=contrib/html
|
||||
text/*=contrib/plaintext.py
|
||||
|
||||
[colors]
|
||||
#
|
||||
# Colors are configured in one of two ways:
|
||||
#
|
||||
# "foreground" or "background:foreground"
|
||||
#
|
||||
# You can specify colors according to the base 8 names:
|
||||
# default, black, red, green, yellow, blue, magenta, cyan, white
|
||||
#
|
||||
# or you can use numbers for the 256 color palette,
|
||||
# e.g. "127:118" (a particularly ugly combination FYI)
|
||||
#
|
||||
# Add one or more of the following characters to the beginning
|
||||
# of the foreground color to add modifiers:
|
||||
#
|
||||
# * bold
|
||||
# _ underline
|
||||
# ^ reverse
|
||||
#
|
||||
# e.g. "default:_*^default" would reverse the default colors and
|
||||
# with bold and underlined modifiers
|
||||
borders=default:^default
|
||||
loading-indicator=default:default
|
||||
|
||||
account-unselected=white:black
|
||||
account-selected=default:default
|
||||
account-error=red:black
|
||||
|
||||
folder-unselected=default:default
|
||||
folder-selected=white:black
|
||||
|
||||
status-line=white:black
|
||||
status-line-error=red:black
|
||||
|
||||
ex-line=default:default
|
||||
|
||||
message-list-selected=white:black
|
||||
message-list-selected-unread=white:_black
|
||||
message-list-unselected=default:default
|
||||
message-list-unselected-unread=default:*default
|
||||
message-list-empty=default:default
|
||||
|
|
|
@ -49,7 +49,7 @@ func NewAccountView(conf *config.AercConfig, acct *config.AccountConfig,
|
|||
dirlist := NewDirectoryList(acct, logger, worker)
|
||||
grid.AddChild(ui.NewBordered(dirlist, ui.BORDER_RIGHT))
|
||||
|
||||
msglist := NewMessageList(logger)
|
||||
msglist := NewMessageList(conf, logger)
|
||||
grid.AddChild(msglist).At(0, 1)
|
||||
|
||||
view := &AccountView{
|
||||
|
|
|
@ -23,9 +23,9 @@ type MessageList struct {
|
|||
store atomic.Value // *lib.MessageStore
|
||||
}
|
||||
|
||||
// TODO: fish in config
|
||||
func NewMessageList(logger *log.Logger) *MessageList {
|
||||
func NewMessageList(conf *config.AercConfig, logger *log.Logger) *MessageList {
|
||||
ml := &MessageList{
|
||||
conf: conf,
|
||||
logger: logger,
|
||||
selected: 0,
|
||||
spinner: NewSpinner(),
|
||||
|
|
Loading…
Reference in a new issue