restore active reaction bg color to be transparent version of accent color

This commit is contained in:
Bruno Windels 2022-11-25 17:21:58 +01:00
parent 23a325b18d
commit 7bdd23e767
3 changed files with 6 additions and 2 deletions

View File

@ -80,6 +80,7 @@ Currently supported operations are:
| -------- | -------- | -------- | | -------- | -------- | -------- |
| darker | percentage | color | | darker | percentage | color |
| lighter | percentage | color | | lighter | percentage | color |
| alpha | alpha percentage | color |
## Aliases ## Aliases
It is possible give aliases to variables in the `theme.css` file: It is possible give aliases to variables in the `theme.css` file:

View File

@ -36,5 +36,8 @@ export function derive(value, operation, argument, isDark) {
const newColorString = offColor(value).lighten(argumentAsNumber / 100).hex(); const newColorString = offColor(value).lighten(argumentAsNumber / 100).hex();
return newColorString; return newColorString;
} }
case "alpha": {
return offColor(value).rgba(argumentAsNumber / 100);
}
} }
} }

View File

@ -364,7 +364,7 @@ only loads when the top comes into view*/
} }
.Timeline_messageReactions button.active { .Timeline_messageReactions button.active {
background-color: var(--background-color-secondary); background-color: var(--accent-color--alpha-11);
border-color: var(--accent-color); border-color: var(--accent-color);
} }