summaryrefslogtreecommitdiffstats
path: root/src/components/mail/listing/conversations.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/mail/listing/conversations.rs')
-rw-r--r--src/components/mail/listing/conversations.rs28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/components/mail/listing/conversations.rs b/src/components/mail/listing/conversations.rs
index 47e2570d..aeff946a 100644
--- a/src/components/mail/listing/conversations.rs
+++ b/src/components/mail/listing/conversations.rs
@@ -1616,6 +1616,34 @@ impl Component for ConversationsListing {
}
}
match *event {
+ UIEvent::ConfigReload { old_settings: _ } => {
+ self.color_cache = ColorCache {
+ theme_default: crate::conf::value(context, "mail.listing.conversations"),
+ subject: crate::conf::value(context, "mail.listing.conversations.subject"),
+ from: crate::conf::value(context, "mail.listing.conversations.from"),
+ date: crate::conf::value(context, "mail.listing.conversations.date"),
+ selected: crate::conf::value(context, "mail.listing.conversations.selected"),
+ unseen: crate::conf::value(context, "mail.listing.conversations.unseen"),
+ highlighted: crate::conf::value(
+ context,
+ "mail.listing.conversations.highlighted",
+ ),
+ attachment_flag: crate::conf::value(context, "mail.listing.attachment_flag"),
+ thread_snooze_flag: crate::conf::value(
+ context,
+ "mail.listing.thread_snooze_flag",
+ ),
+ tag_default: crate::conf::value(context, "mail.listing.tag_default"),
+ ..self.color_cache
+ };
+
+ if !context.settings.terminal.use_color() {
+ self.color_cache.highlighted.attrs |= Attr::REVERSE;
+ self.color_cache.tag_default.attrs |= Attr::REVERSE;
+ }
+ self.refresh_mailbox(context, true);
+ self.set_dirty(true);
+ }
UIEvent::MailboxUpdate((ref idxa, ref idxf))
if (*idxa, *idxf) == (self.new_cursor_pos.0, self.cursor_pos.1) =>
{