diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2022-12-09 12:50:17 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2022-12-09 12:50:17 +0200 |
commit | c06c3f589315f017a412f31d80559a5a734d7b89 (patch) | |
tree | ecc86a6a6ff186cac14d60158743b57ba7ab653d | |
parent | abc56eae431153d2e48f8b1eb3e0d2a140b600d8 (diff) | |
download | meli-c06c3f589315f017a412f31d80559a5a734d7b89.zip |
mail/listing/conversations: draw gap between list and mail view
-rw-r--r-- | src/components/mail/listing/conversations.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/mail/listing/conversations.rs b/src/components/mail/listing/conversations.rs index 0c3618e8..bee30123 100644 --- a/src/components/mail/listing/conversations.rs +++ b/src/components/mail/listing/conversations.rs @@ -1216,11 +1216,17 @@ impl Component for ConversationsListing { return; } - let area = ( + let entry_area = ( set_x(upper_left, get_x(upper_left) + width!(area) / 3 + 2), bottom_right, ); - self.view.draw(grid, area, context); + let gap_area = ( + pos_dec(upper_left!(entry_area), (1, 0)), + bottom_right!(entry_area), + ); + clear_area(grid, gap_area, self.color_cache.theme_default); + context.dirty_areas.push_back(gap_area); + self.view.draw(grid, entry_area, context); } self.dirty = false; } |