You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
add 15pct value of accent color for FormButton backgrounds
so the button in the toasts has the correct background color
This commit is contained in:
@@ -17,6 +17,7 @@ limitations under the License.
|
||||
//
|
||||
// --accent-color
|
||||
$accent-color: var(--accent-color);
|
||||
$accent-bg-color: var(--accent-color-15pct);
|
||||
$button-bg-color: var(--accent-color);
|
||||
$button-link-fg-color: var(--accent-color);
|
||||
$button-primary-bg-color: var(--accent-color);
|
||||
|
||||
@@ -148,6 +148,7 @@ function setCustomThemeVars(customTheme) {
|
||||
style.setProperty(`--${name}`, hexColor);
|
||||
// uses #rrggbbaa to define the color with alpha values at 0% and 50%
|
||||
style.setProperty(`--${name}-0pct`, hexColor + "00");
|
||||
style.setProperty(`--${name}-15pct`, hexColor + "26");
|
||||
style.setProperty(`--${name}-50pct`, hexColor + "7F");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user