diff --git a/data/resources/style-dark.css b/data/resources/style-dark.css
index e932ba802..69d787002 100644
--- a/data/resources/style-dark.css
+++ b/data/resources/style-dark.css
@@ -19,6 +19,11 @@ messagebubble.outgoing {
background-color: #2c52ac;
}
+messagebubble.document.outgoing .file > overlay > image {
+ background: @accent_fg_color;
+ color: @accent_bg_color;
+}
+
.event-row {
background-color: alpha(#404040, 0.8);
}
diff --git a/data/resources/style.css b/data/resources/style.css
index 80198e73e..0ca11d49a 100644
--- a/data/resources/style.css
+++ b/data/resources/style.css
@@ -205,8 +205,9 @@ messagebubble.document .file > overlay > image {
}
messagebubble.document.outgoing .file > overlay > image {
- background: @accent_fg_color;
- color: @accent_bg_color;
+ /* depends on bubble color */
+ background: #79c271;
+ color: #eafcd2;
}
messagebubble.document .file:hover > overlay > image {
@@ -326,6 +327,10 @@ messagereply label.message {
color: @window_fg_color;
}
+messagebubble.outgoing messagereply label.message {
+ color: currentColor;
+}
+
messagesticker {
border-spacing: 6px;
}
diff --git a/src/session/content/message_row/bubble.rs b/src/session/content/message_row/bubble.rs
index a3a4f139e..9ebd9e205 100644
--- a/src/session/content/message_row/bubble.rs
+++ b/src/session/content/message_row/bubble.rs
@@ -1,6 +1,7 @@
use adw::prelude::*;
+use glib::clone;
use gtk::subclass::prelude::*;
-use gtk::{glib, CompositeTemplate};
+use gtk::{gdk, glib, graphene, gsk, CompositeTemplate};
use std::collections::hash_map::DefaultHasher;
use std::hash::{Hash, Hasher};
@@ -28,6 +29,8 @@ mod imp {
using Adw 1;
template $MessageBubble {
+ overflow: hidden;
+
Overlay overlay {
Box {
orientation: vertical;
@@ -60,6 +63,7 @@ mod imp {
pub(crate) struct MessageBubble {
pub(super) sender_color_class: RefCell