Commit Graph

17 Commits

Author SHA1 Message Date
adbenitez 5bc3157d2e remove unnecessary overrides 2023-09-30 22:50:21 +02:00
adbenitez 8566a67068 show webxdc icon in quotes 2022-04-07 03:18:48 -04:00
adbenitez e6006c874b improve quote style when replying with a sticker 2021-04-23 18:01:16 -04:00
Asiel Díaz Benítez beee60d6a7 implement sticker visualization (#1823)
Sticker picker is not implemented, just receiving(from DC Desktop, bots or future DC versions) and forwarding stickers
(code adapted from Signal)
2021-03-10 10:55:50 +01:00
B. Petersen c99a1809a1 mark overridden senders in quotes
if the original author of a quote is shown
and known to be overridden,
that should be marked with the character '~'
as for the normal names,
esp. as they are look very similar otherwise,
eg. also bold, also colored.
the missing '~' looks like a bug here.

successor of #1808
2021-03-05 16:46:58 +01:00
B. Petersen 23dedb5a24 remove Android-specific DcContact.getArgbColor() from bindings 2021-03-05 11:28:33 +01:00
B. Petersen 95b605e331 mark overridden names by a "~" in the bubbles
this is just a very simple approach to move forward.

to mark overridden names, a "~" is prefixed.

the idea with using a dedicated color for these names:
as we do not really know
if the address is a generic sender address or belongs to the user,
it makes sense to keep the color used for the name and do not use a
dedicated grey or so.

i think, it is not even worth to detect that better:
it is pretty nice to have senders in mailinglist marked nicely,
all the time.

currently, the "~" is only added to the bubbles - it is not there
in the chatlist-summary (that would needed to be done in core)
and also not in forwarded by, notifications, clipboard etc. i'd say currently,
this is not needed, however, with the current approach it would be doable
(if we mark possible impersonation by colors or icons that may be
much more complicated)

adaption on other uis would also be pretty simple with this approach,
and imho, this `~Max Mustermann` looks pretty nicely
and even intuitive in a way.

drawback of the approach is that user may user `~`
as the first character of their names, we could target that by
adapting dc_msg_get_displayname() in the core, if we want to keep this approach,
however, maybe it is also not worth, the "~" is more a flaw than a feature,
also that would result to "~~Name" in the bubbles.
i do not see how that can be used to trick users when beeing added.
names as "foo 🔒" might be more dangerous here, when it comes to trick users.
2021-02-14 22:52:33 +01:00
Hocuri 3b8f3e7628 Show the correct sender name in mailing list messages 2021-02-10 21:33:18 +01:00
B. Petersen 097da7c165 show name of forwarded in groups, keep title of forwarded messages in grey 2021-02-10 15:50:10 +01:00
B. Petersen 12e4d6b30e introduce color 'unknown_sender' and use it for forwarded messages, forwarded quotes, quotes with unknown sender 2020-11-25 20:57:46 +01:00
B. Petersen d4ef19b9cf remove dead code 2020-11-25 10:45:41 +01:00
Hocuri 778718c7b2 Don't cut the document icon in quotes
I also deleted an unnecessary LinearLayout, so you should look at the
diff with --ignore-all-space

Firstly, I lifted quote_attachment_container out of the FrameLayout with
the thumbnail so that quote_attachment_container can be wrap_content
(and enlarge the quote if necessary) while the thumbnail still always
matches the size of the quote.

Then I made the document view itself a little smaller so it does not
enlarge the quote all the times.
2020-11-08 12:55:38 +01:00
Hocuri c720df5d5c Add swipe-to-reply quotes 2020-10-11 22:09:51 +03:00
B. Petersen 979d2c663d remove dead quote code 2019-03-29 17:35:42 +01:00
B. Petersen defac037de rework strings 2018-12-12 17:55:08 +01:00
B. Petersen ada9377a37 use new colors in profile 2018-12-06 15:16:34 +01:00
B. Petersen b1a00a03d2 Initial commit 🌱 2018-08-14 17:20:46 +02:00