Matchstic / Xen-HTML

Unified and simplified HTML rendering
GNU General Public License v2.0
109 stars 16 forks source link

Managing issue with overlapping notifications #348

Open Vitkarus opened 2 years ago

Vitkarus commented 2 years ago

First of all, thanks for making such a great app!

But there is still one problem, which, I think, has already been mentioned for sure. If widgets are placed on display in the center or bottom, then they are usually blocked by a notifications or music player. I recently wrote a widget and managed to change its position by using isPlaying and isStopped properties while playback is active, but, unfortunately, there are no functions to check are there any notifications on the screen. I've experimented with adding a widget to the background that will be covered by a disappearing wallpaper widget, on top of which there will be another widget, but this is definitely not the best workaround.

I thought about couple implications of this problem.

Maybe it would be possible to make a layer that would become not hidden but visible while notifications are on the screen. But this probably means that the technical widget will be duplicated on two layers.

Add additional setting to specify alternative coordinates for widget in case of notifications.

Add a property like isNotiShown = true/false. Yes, this doesn't actually give anything for end user, but will make it possible to fix issue by widget creator.