[fractal/fractal-next] text: Improve quote styling



commit aee59b537113d18cd37bafb6e290c6265196ec13
Author: Kévin Commaille <zecakeh tedomum fr>
Date:   Sun Nov 28 15:08:30 2021 +0100

    text: Improve quote styling

 data/resources/style.css                | 5 +++++
 src/session/content/message_row/text.rs | 1 +
 2 files changed, 6 insertions(+)
---
diff --git a/data/resources/style.css b/data/resources/style.css
index 8475ff11..1be37f3d 100644
--- a/data/resources/style.css
+++ b/data/resources/style.css
@@ -195,6 +195,11 @@ headerbar.flat {
   border-radius: 6px;
 }
 
+.room-history .event-content .quote {
+  border-left: 2px solid @theme_selected_bg_color;
+  padding-left: 6px;
+}
+
 .divider-row {
   font-size: 0.9em;
   font-weight: bold;
diff --git a/src/session/content/message_row/text.rs b/src/session/content/message_row/text.rs
index 0be55756..3117ead3 100644
--- a/src/session/content/message_row/text.rs
+++ b/src/session/content/message_row/text.rs
@@ -388,6 +388,7 @@ fn create_widget_for_html_block(block: &HtmlBlock) -> gtk::Widget {
         HtmlBlock::Quote(blocks) => {
             let bx = gtk::Box::new(gtk::Orientation::Vertical, 6);
             bx.add_css_class("quote");
+            bx.add_css_class("dim-label");
             for block in blocks.iter() {
                 let w = create_widget_for_html_block(block);
                 bx.append(&w);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]