fixed get(Layer|Opacity)Slot not working properly which broke Mojave theme
This commit is contained in:
parent
8de7eabd8f
commit
7354b6f706
3 changed files with 30 additions and 43 deletions
|
@ -392,16 +392,6 @@ export const colors2to3 = (colors) => {
|
|||
...btnStates.reduce((stateAcc, state) => ({ ...stateAcc, ['btn' + state]: color }), {})
|
||||
}
|
||||
case 'btnText':
|
||||
console.log(
|
||||
btnPositions
|
||||
.map(position => btnStates.map(state => state + position))
|
||||
.flat()
|
||||
.reduce(
|
||||
(statePositionAcc, statePosition) =>
|
||||
({ ...statePositionAcc, ['btn' + statePosition + 'Text']: color })
|
||||
, {}
|
||||
)
|
||||
)
|
||||
return {
|
||||
...acc,
|
||||
...btnPositions
|
||||
|
@ -414,7 +404,6 @@ export const colors2to3 = (colors) => {
|
|||
)
|
||||
}
|
||||
default:
|
||||
console.log('aaa', slotName, color, acc)
|
||||
return { ...acc, [slotName]: color }
|
||||
}
|
||||
}, {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue