meli/src/conf
Manos Pitsidianakis d580b25415
themes: overwrite only explicit key attributes
If user config file overwrites a single attribute and not the others,
for example only bg:

  "mail.listing.tag_default" = { bg = "Blue" }

The other attributes, in this case fg and attrs revert to the default
values of ThemeAttributeInner and not the default value for the key
"mail.listing.tag_default". As a result the above expands to:

  "mail.listing.tag_default" = { fg = Color::Default, bg = "Blue", attrs
  = Attr::Default }

This commit keeps the key value defaults, so the above should expand to:

  "mail.listing.tag_default" = { fg = default_theme["mail.listing.tag_default"].fg, bg = "Blue", attrs
  = default_theme["mail.listing.tag_default"].attrs }
2020-04-10 11:41:00 +03:00
..
accounts.rs melib: add search method in mail backends 2020-04-05 15:57:05 +03:00
composing.rs Add conf_override! macro 2020-03-18 19:13:07 +02:00
listing.rs Move Query to melib 2020-04-05 15:57:05 +03:00
notifications.rs Add conf_override! macro 2020-03-18 19:13:07 +02:00
pager.rs Add conf_override! macro 2020-03-18 19:13:07 +02:00
pgp.rs Add conf_override! macro 2020-03-18 19:13:07 +02:00
shortcuts.rs Add open_mailbox shortcut for sidebar 2020-04-05 21:35:36 +03:00
tags.rs Add conf_override! macro 2020-03-18 19:13:07 +02:00
terminal.rs Respect use_color conf value as well as NO_COLOR 2020-02-09 20:47:36 +02:00
themes.rs themes: overwrite only explicit key attributes 2020-04-10 11:41:00 +03:00