1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 10:46:09 +02:00
This commit is contained in:
syuilo
2023-03-02 18:40:55 +09:00
parent dad915e522
commit ebd7b27075
4 changed files with 1 additions and 4 deletions

View File

@@ -96,7 +96,7 @@ function onTabClick(): void {
}
const calcBg = () => {
const rawBg = metadata?.bg ?? 'var(--bg)';
const rawBg = 'var(--bg)';
const tinyBg = tinycolor(rawBg.startsWith('var(') ? getComputedStyle(document.documentElement).getPropertyValue(rawBg.slice(4, -1)) : rawBg);
tinyBg.setAlpha(0.85);
bg.value = tinyBg.toRgbString();