Skip to content

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:

Screenshot_20230614_203855

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:

image

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:

Screencast_20230614_204846-3

Screencast_20230614_205808-3

There are two things still to be done here

  1. 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
  2. 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?

Merge request reports

Loading