mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
27 lines
608 B
JavaScript
27 lines
608 B
JavaScript
const { GObject } = imports.gi;
|
|
const { HeaderBarBase } = imports.src.headerbarBase;
|
|
|
|
var HeaderBar = GObject.registerClass(
|
|
class ClapperHeaderBar extends HeaderBarBase
|
|
{
|
|
_onWindowButtonActivate(action)
|
|
{
|
|
this.activate_action(`window.${action}`, null);
|
|
}
|
|
|
|
_onFloatButtonClicked()
|
|
{
|
|
const clapperWidget = this.root.child;
|
|
|
|
clapperWidget.controlsRevealer.toggleReveal();
|
|
|
|
/* Reset timer to not disappear during click */
|
|
clapperWidget._setHideControlsTimeout();
|
|
}
|
|
|
|
_onFullscreenButtonClicked()
|
|
{
|
|
this.root.fullscreen();
|
|
}
|
|
});
|