Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Set the color (and background) of a message

Open birchcode opened this issue 10 years ago • 4 comments

Your Rocket.Chat version: 0.45.0

We are migrating from Hipchat and we have used that to post a lot of server statuses into a channel. Things like errors, warnings etc, and we color code them. Hipchats implementation is a bit limiting in that they only give you a couple of lame colors to choos efrom.

At the moment a message's color in Rocket.chat can be defined as any color in the webhook's payload which is awesome, and it puts a little colored thing on the left side of the message, but at a glance, it doesn't really stand out.

green-status

It would be great if message had a switch so that it would highlight a background color in the attachment part of the payload, e.g.:

{
    "username":"rocket.dog",
    "attachments":[
    {
        "text": 'some message',
        "color": '#af2a2b',
        "highlight-background-color": true
    }]
}

If highlight-background-color is true or something to that affect, then it could use the color that is set with a light opacity.

green-status-bg

I think this would help a lot for using rocket.chat to parse through logs quickly and easily and create better demarcation of messages. It could also be used to give extra emphasis to messages that need to be highlighted.

birchcode avatar Nov 18 '16 07:11 birchcode

absolutley love this! Also we could use this to highlight/background own messages for a better readability

Frankstar avatar Feb 04 '17 12:02 Frankstar

good idea!

danielo926 avatar Apr 19 '17 11:04 danielo926

Building on what @Frankstar suggested, users could set their own text & background colours.

There could then be a system-wide switch to determine whether all other users see these colours (which could result in public rooms turning into a rainbow nightmare), or users can only see their own colours (which would allow them to see their own messages amongst all the noise).

garychapman avatar Oct 16 '17 04:10 garychapman

This is a great idea but we have 2 problems to resolve: If we use it is like a "bubble", and we don't use background for any kind of message component. We have themes for mobile apps, and the message background impacts on the themes too. We working to differentiate the simple text to the bots or another kind of messages and we'll consider this idea to the future. Thanks.

thiagosanchz avatar Sep 13 '18 13:09 thiagosanchz