Closed rendiix closed 1 year ago
Yeah, this has crossed my mind before too. Will take a look.
Note to self: Check how official Telegram client selects color - getColorForId
?
Do you have any example of terminal-based chat app that implements "per user color" with a nice UI? Would only the name have the special color, or both name and message text?
I'm thinking to start test out some implementation, and I'll google to check what other chat apps do, just thought I'd ask in case you know some good example.
this is an example of a telegram cli that has implemented a per user color.
Cool, thanks 👍
Cool, thanks 👍
Thanks for your hard work. I really like your project because it's really fast on my old machine
Support for unique user colors in group chats has been added now. You can enable it for example by using the Basic Color Theme:
cp /usr/local/share/nchat/themes/basic-color/* ~/.nchat/
More specifically, nchat now supports the value usercolor
for parameters history_name_recv_group_color
and history_text_recv_group_color
. When in group chats usercolor
will be picked from ~/.nchat/usercolor.conf
based on a hash of the user id. Thus the actual colors used can be configured by editing that file (usercolor.conf
).
Please let me know if you encounter any issues.
@d99kris it works perfectly. thanks for the hard work
per user color not working, has anyone experienced the same thing?
Hi @rendiix - would it be correct to say per-user colors works on some of your systems, and not on some others?
Could you please share a copy of ~/.nchat/log.txt
after starting / stopping nchat on the machine were you see the problem?
@d99kris Yes, per-user color in the last version didn't work on my machine. Previous version had no problem.
I run it on Android using Termux.
Thanks 👍 Hm, no obvious hints from the log.txt
.
Could you perhaps share a copy of your ~/.nchat/color.conf
and ~/.nchat/usercolor.conf
as well?
I don't have a working Termux installation at the moment, so I cannot easily test your setup, but per-user color is working for me on Ubuntu and macOS with latest nchat.
My config file is not changed the same as provided by nchat by default.
this is precompiled nchat for termux arm64
Solved by installing the latest version of Termux, the crash comes from the Termux application itself.
I assume the color problem was solved as well with latest Termux. Good to hear it worked out.
In group chats, it's making it quite hard to distinguish who's who.
Even in 1on1 chats, it can get confusing.
Any way we can have random colors (or even predefined) colors on a user basis?