Adaptive panel opacity possible?

Hi, on Windows I use TranslucentTB to have an adaptive taskbar transparency. So when there’s no window maximized there’s no background at all and when there’s a maximized window it turns black.

Is there anything I can do to achieve the same in Plasma 6?