Add "Floating Window Mode"

A simple borderless window floating on desktop. Window can be resized and moved by dragging. It also has some minimalistic controls showing on top of the video when cursor is hovering over it.\n\n This was a feature originally requested by @zahid1905.
This commit is contained in:
Rafostar
2020-11-03 17:40:19 +01:00
parent ba54a36058
commit ff58713426
9 changed files with 244 additions and 53 deletions

View File

@@ -190,6 +190,15 @@ class ClapperRevealerBottom extends CustomRevealer
this.revealerBox.remove(widget);
}
setFloatingClass(isFloating)
{
if(isFloating === this.revealerBox.has_css_class('floatingcontrols'))
return;
let action = (isFloating) ? 'add' : 'remove';
this.revealerBox[`${action}_css_class`]('floatingcontrols');
}
set_visible(isVisible)
{
let isChange = super.set_visible(isVisible);