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.
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):
When hovering:
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.