aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_content_view
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-01-03 23:00:27 +0100
committerfiaxh <git@lightrise.org>2022-01-04 12:35:18 +0100
commit85f4bddf99f92647e67e7b69c1e1902730f5ea8f (patch)
treeca38b20e1edfbe8a7286ad5af60fe960838c728e /main/src/ui/conversation_content_view
parent07a05db26e1c2f4d7a2226e9d8ef62e6e421a4a1 (diff)
downloaddino-85f4bddf99f92647e67e7b69c1e1902730f5ea8f.tar.gz
dino-85f4bddf99f92647e67e7b69c1e1902730f5ea8f.zip
Use opacity for "pending" and "edited" hints
Getting the dim-label color doesn't work without actually rendering it
Diffstat (limited to 'main/src/ui/conversation_content_view')
-rw-r--r--main/src/ui/conversation_content_view/message_widget.vala6
1 files changed, 2 insertions, 4 deletions
diff --git a/main/src/ui/conversation_content_view/message_widget.vala b/main/src/ui/conversation_content_view/message_widget.vala
index a2325797..2b5fd793 100644
--- a/main/src/ui/conversation_content_view/message_widget.vala
+++ b/main/src/ui/conversation_content_view/message_widget.vala
@@ -216,10 +216,8 @@ public class MessageItemWidget : SizeRequestBin {
markup_text = @"<span size=\'$size_str\'>" + markup_text + "</span>";
}
- string gray_color = Util.rgba_to_hex(Util.get_label_pango_class_color(label, "dim-label"));
-
if (message.edit_to != null) {
- markup_text += " <span size='small' color='%s'>(%s)</span>".printf(gray_color, _("edited"));
+ markup_text += " <span size='small' alpha='70%'>(%s)</span>".printf(_("edited"));
theme_dependent = true;
}
@@ -228,7 +226,7 @@ public class MessageItemWidget : SizeRequestBin {
if (message.direction == Message.DIRECTION_SENT && (message.marked == Message.Marked.SENDING || message.marked == Message.Marked.UNSENT)) {
// Append "pending..." iff message has not been sent yet
if (message.time.compare(new DateTime.now_utc().add_seconds(-10)) < 0) {
- markup_text += " <span size='small' color='%s'>%s</span>".printf(gray_color, _("pending…"));
+ markup_text += " <span size='small' alpha='70%'>%s</span>".printf(_("pending…"));
theme_dependent = true;
additional_info = AdditionalInfo.PENDING;
} else {