summaryrefslogtreecommitdiffstats
path: root/ui/src/components/mail/view
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-08-18 15:44:40 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-08-18 15:47:09 +0300
commit1845b046fa203ef9f17b37008e2e23edfbca3cf6 (patch)
treeb11421c749d8acb7e95224fe19385d8772133ecd /ui/src/components/mail/view
parent2610e9c05510f36474873e4b2f8eb1111c93d654 (diff)
ui: add attribute support
bold/italic etc
Diffstat (limited to 'ui/src/components/mail/view')
-rw-r--r--ui/src/components/mail/view/envelope.rs5
-rw-r--r--ui/src/components/mail/view/thread.rs4
2 files changed, 9 insertions, 0 deletions
diff --git a/ui/src/components/mail/view/envelope.rs b/ui/src/components/mail/view/envelope.rs
index bbe97e3e..cc708868 100644
--- a/ui/src/components/mail/view/envelope.rs
+++ b/ui/src/components/mail/view/envelope.rs
@@ -240,6 +240,7 @@ impl Component for EnvelopeView {
grid,
Color::Byte(33),
Color::Default,
+ Attr::Default,
area,
true,
);
@@ -253,6 +254,7 @@ impl Component for EnvelopeView {
grid,
Color::Byte(33),
Color::Default,
+ Attr::Default,
(set_y(upper_left, y + 1), bottom_right),
true,
);
@@ -266,6 +268,7 @@ impl Component for EnvelopeView {
grid,
Color::Byte(33),
Color::Default,
+ Attr::Default,
(set_y(upper_left, y + 1), bottom_right),
true,
);
@@ -279,6 +282,7 @@ impl Component for EnvelopeView {
grid,
Color::Byte(33),
Color::Default,
+ Attr::Default,
(set_y(upper_left, y + 1), bottom_right),
true,
);
@@ -292,6 +296,7 @@ impl Component for EnvelopeView {
grid,
Color::Byte(33),
Color::Default,
+ Attr::Default,
(set_y(upper_left, y + 1), bottom_right),
true,
);
diff --git a/ui/src/components/mail/view/thread.rs b/ui/src/components/mail/view/thread.rs
index acb443ce..0171bdc4 100644
--- a/ui/src/components/mail/view/thread.rs
+++ b/ui/src/components/mail/view/thread.rs
@@ -257,6 +257,7 @@ impl ThreadView {
} else {
Color::Byte(251)
},
+ Attr::Default,
(
(e.index.0 * 4 + 1, 2 * y),
(e.index.0 * 4 + e.heading.grapheme_width() + 1, height - 1),
@@ -333,6 +334,7 @@ impl ThreadView {
} else {
Color::Byte(251)
},
+ Attr::Default,
(
(e.index.0 * 4 + 1, 2 * y),
(e.index.0 * 4 + e.heading.grapheme_width() + 1, height - 1),
@@ -626,6 +628,7 @@ impl ThreadView {
grid,
Color::Byte(33),
Color::Default,
+ Attr::Default,
area,
true,
);
@@ -711,6 +714,7 @@ impl ThreadView {
grid,
Color::Byte(33),
Color::Default,
+ Attr::Default,
area,
true,
);