Controlling opacity of two fills independently

did anyone figure out how would one control the opacity of two different fill properties (especially gradients) if you also want to adjust the colors via viewmodel -

since the color/opacity are not separate properties - i can control either one or the other - but not both separately - so the only way is to duplicate layer and control layer opacity - but that creates a big overhead if there are a lot of layers and i want to create a dark mode and light mode…

any suggestions?