SchildiChat / schildichat-desktop

Matrix client / Element Web/Desktop fork
https://schildi.chat
Apache License 2.0
370 stars 42 forks source link

Get rid of opacity values for coloring from CSS files #241

Open luixxiul opened 3 months ago

luixxiul commented 3 months ago

Description:

Since the very start of the upstream like 2018, there has been a lot of cases where opacity values were used to set text color. From the developers' viewpoint, it is very confusing and makes it hard to maintain the consistency, because opacity values do not tell us in which color the text actually will be rendered since they change transparency of the inherited color which those opacity values do not tell us.

Describe alternatives you've considered:

Replacing color values with opacity for consistency instead would not be practical. Maintaining consistency code-wise should be the goal here, and using color and opacity at the same time to set text color does not contribute to it.

Additional context: