Draft: applets/webbrowser: Add options to hide navbar and background
Adds the following "Appearance" tab to the settings, which allows the user to pick a custom icon for the widget, choose whether to display the navigation bar, and choose to make the viewport background transparent:
In addition to that, when the widget is on the desktop, the user can choose to make the whole widget transparent via the edit mode:
These changes would allow for some very nice and easy "custom widgets" which feel much more integrated. For example here I am experimenting a bit with Home Assistant:
There are two things still to be done here
- I was not able to test this with KF6 since my system is not set up for it, so I had to write the code for KF5 and then used the porting guide without testing the new code. It would be nice if somebody could test if this actually works :D
- The transparent background on the desktop is currently done via
PlasmaCore.Types.ConfigurableBackground
, however this adds a shadow to everything instead of making it completely transparent, which is not great, but also not a big problem. Is there any easy way to change that?