I would like, if there was the possibility to automatically adapt the colour of a panel to a maximised window. In my case, Firefox adapts it colours to the current website using an extension ( Adaptive Tab Bar Color – Get this Extension for 🦊 Firefox (en-US) ) and I think it’s a loss of unity, if the panel has another colour.
A solution could be to add an toggle “adapt colours“ to Breeze. If enabled, it should check, whether an object (decoration or panel) has a large area of uniform colour adjacent to it. If this colour is very dark or very bright, other colours, such as text, should be inverted to ensure readability.
Adapting Firefox colours to the website means that Firefox is allowed to see what’s running in it’s own tab.
Firefox is designed as a secure browser - so it’s reasonable to assume that the desktop environment should not be allowed to inspect the contents of web pages.
It is certainly reasonable to expect that Plasma is not allowed to inspect the contents of windows and relay that information to other windows.
I don’t know - but I’d assume that the technical issues with obtaining colours from a maximised tab of Firefox and applying those colours to the panel would be extremely problematic.
Perhaps you could devise a way to extract the information from the extension which you showed us, and then suggest a way to apply those colours to the panel.
I don’t want to get the color from the active tab, but from the adjacent border of the maximized window. In my case, this would mean that Firefox adapts to the current tab and Plasma adapts to the color of the top pixels of Firefox. That is an information which every application with the right to take screenshots can get and which is therefore save to use, especially if it is only passed to plasmashell and kwin.
In general, I think the solution should be independent of the app which the maximized window belongs to. Window decorations and panels should be able to adapt to every app that uses other colors than Breeze.
Why ? Besides, I don’t think it’s possible. A transparent color adaptive plasma theme is already not easy to do, at least, if you want to match the overall color scheme. Let alone what you’re asking. Maybe someone figured this out….but it’s highly unlikely.
KDE Plasma has enough trouble managing themes within it’s own ecosystem without expecting it to adapt to foreign windows also - Firefox is GTK if you don’t show the Title Bar, but then there are all manner of other applications which do their own decorations independent from Plasma.