pbaity / rocketchat-dark-mode

An easy user-togglable dark mode for Rocket.Chat
MIT License
369 stars 126 forks source link

Set colors for announcements #206

Closed paulchen closed 1 year ago

paulchen commented 1 year ago

Sets some colors for announcements in order to align their style with banners (as suggested in https://github.com/pbaity/rocketchat-dark-mode/issues/203#issuecomment-1314985679):

image

When hovering:

image

Note that there seems to be some inconsistency in Rocket.Chat about the names for the CSS variables. This leads to two of the variables having the prefix --rc- while the other two have the prefix --rcx-. This also leads to the problem that the colors of an announcement cannot be changed in the workspace settings. I documented this in https://github.com/RocketChat/Rocket.Chat/issues/27269. When that issue is fixed, the affected variables will also need to be changed here.

This fix only works for Rocket.Chat 5.3.0 and above.

Fixes #203.

pbaity commented 1 year ago

Thanks @paulchen !