forked from AkkomaGang/akkoma-fe
fix trasparency problems in some cases (purple headers)
This commit is contained in:
parent
dbcd8294e8
commit
0702934f4f
2 changed files with 3 additions and 1 deletions
|
@ -102,6 +102,7 @@ const config = {
|
||||||
setPreset(value)
|
setPreset(value)
|
||||||
break
|
break
|
||||||
case 'customTheme':
|
case 'customTheme':
|
||||||
|
case 'customThemeSource':
|
||||||
applyTheme(value)
|
applyTheme(value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -352,7 +352,8 @@ export const getColors = (sourceColors, sourceOpacity) => SLOT_ORDERED.reduce(({
|
||||||
}
|
}
|
||||||
const opacitySlot = getOpacitySlot(key)
|
const opacitySlot = getOpacitySlot(key)
|
||||||
const ownOpacitySlot = value.opacity
|
const ownOpacitySlot = value.opacity
|
||||||
if (opacitySlot && (outputColor.a === undefined || ownOpacitySlot)) {
|
const opacityOverriden = ownOpacitySlot && sourceOpacity[opacitySlot] !== undefined
|
||||||
|
if (opacitySlot && (outputColor.a === undefined || opacityOverriden)) {
|
||||||
const dependencySlot = deps[0]
|
const dependencySlot = deps[0]
|
||||||
if (dependencySlot && colors[dependencySlot] === 'transparent') {
|
if (dependencySlot && colors[dependencySlot] === 'transparent') {
|
||||||
outputColor.a = 0
|
outputColor.a = 0
|
||||||
|
|
Loading…
Reference in a new issue