Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
095a99d0 by wurstsalat at 2025-07-29T19:53:49+02:00
imprv: Chat rows: Add CSS classes for identifying message direction
Closes #12374
- - - - -
1 changed file:
- gajim/gtk/conversation/rows/message.py
Changes:
=====================================
gajim/gtk/conversation/rows/message.py
=====================================
@@ -69,6 +69,12 @@ def __init__(self, contact: ChatContactT, message: Message)
-> None:
self.direction = ChatDirection(message.direction)
self._is_outgoing = self.direction == ChatDirection.OUTGOING
+ # Classes for identifying message direction via CSS
+ if self._is_outgoing:
+ self.add_css_class("outgoing-message")
+ else:
+ self.add_css_class("incoming-message")
+
self.orig_pk = message.pk
self.pk = self.orig_pk
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/095a99d0347317e14e83a6ea1461b06dd7f4ff23
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/095a99d0347317e14e83a6ea1461b06dd7f4ff23
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]