mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-11-16 07:26:33 +01:00
Merge branch 'fix/themes-2.1-transparency-pink' into 'develop'
fix trasparency problems in some cases (purple headers) See merge request pleroma/pleroma-fe!1079
This commit is contained in:
commit
f58f294ee8
@ -102,6 +102,7 @@ const config = {
|
||||
setPreset(value)
|
||||
break
|
||||
case 'customTheme':
|
||||
case 'customThemeSource':
|
||||
applyTheme(value)
|
||||
}
|
||||
}
|
||||
|
@ -352,7 +352,8 @@ export const getColors = (sourceColors, sourceOpacity) => SLOT_ORDERED.reduce(({
|
||||
}
|
||||
const opacitySlot = getOpacitySlot(key)
|
||||
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]
|
||||
if (dependencySlot && colors[dependencySlot] === 'transparent') {
|
||||
outputColor.a = 0
|
||||
|
Loading…
Reference in New Issue
Block a user