summaryrefslogtreecommitdiffstats
path: root/ui/src/components
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-01-27 17:15:29 +0200
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-01-27 17:15:29 +0200
commitb823969ae244523a675e9488ecda3a0ca6c630fc (patch)
tree46e136c0b9fe506552a212d60ae02e51901e8912 /ui/src/components
parent3c7328d90121b5024d4ffb7ab54f2cc3a5d8ef94 (diff)
small fixes
- Don't debug print Timer events in src/bin.rs event loop; they're too frequent and pollute the logs - chain set_{fg,bg,..} method calls for &mut Cell - remove unneeded u8 to u8 cast
Diffstat (limited to 'ui/src/components')
-rw-r--r--ui/src/components/mail/listing/conversations.rs33
1 files changed, 20 insertions, 13 deletions
diff --git a/ui/src/components/mail/listing/conversations.rs b/ui/src/components/mail/listing/conversations.rs
index 9cf1bd24..6bca1d11 100644
--- a/ui/src/components/mail/listing/conversations.rs
+++ b/ui/src/components/mail/listing/conversations.rs
@@ -748,19 +748,21 @@ impl ConversationsListing {
);
self.content[(x, 3 * idx)].set_bg(color);
if _x < width {
- self.content[(_x, 3 * idx)].set_bg(color);
- self.content[(_x, 3 * idx)].set_keep_bg(true);
+ self.content[(_x, 3 * idx)].set_bg(color).set_keep_bg(true);
}
for x in (x + 1).._x {
- self.content[(x, 3 * idx)].set_keep_fg(true);
- self.content[(x, 3 * idx)].set_keep_bg(true);
+ self.content[(x, 3 * idx)]
+ .set_keep_fg(true)
+ .set_keep_bg(true);
}
self.content[(x, 3 * idx)].set_keep_bg(true);
x = _x + 1;
}
for x in x..width {
- self.content[(x, 3 * idx)].set_ch(' ');
- self.content[(x, 3 * idx)].set_bg(bg_color);
+ self.content[(x, 3 * idx)]
+ .set_ch(' ')
+ .set_fg(fg_color)
+ .set_bg(bg_color);
}
/* Next line, draw date */
let (x, _) = write_string_to_grid(
@@ -773,8 +775,10 @@ impl ConversationsListing {
None,
);
for x in x..(x + 4) {
- self.content[(x, 3 * idx + 1)].set_ch('▁');
- self.content[(x, 3 * idx + 1)].set_bg(bg_color);
+ self.content[(x, 3 * idx + 1)]
+ .set_ch('▁')
+ .set_fg(fg_color)
+ .set_bg(bg_color);
}
/* draw from */
let (x, _) = write_string_to_grid(
@@ -788,13 +792,16 @@ impl ConversationsListing {
);
for x in x..width {
- self.content[(x, 3 * idx + 1)].set_ch('▁');
- self.content[(x, 3 * idx + 1)].set_bg(bg_color);
+ self.content[(x, 3 * idx + 1)]
+ .set_ch('▁')
+ .set_fg(fg_color)
+ .set_bg(bg_color);
}
for x in 0..width {
- self.content[(x, 3 * idx + 2)].set_ch('▓');
- self.content[(x, 3 * idx + 2)].set_fg(padding_fg);
- self.content[(x, 3 * idx + 2)].set_bg(bg_color);
+ self.content[(x, 3 * idx + 2)]
+ .set_ch('▓')
+ .set_fg(padding_fg)
+ .set_bg(bg_color);
}
}
if self.length == 0 && self.filter_term.is_empty() {