mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Make all interface buttons flat
This commit is contained in:
@@ -91,7 +91,7 @@ var App = GObject.registerClass({
|
||||
|
||||
this.interface = new Interface();
|
||||
this.interface.controls.toggleFullscreenButton.connect(
|
||||
'clicked', () => this.window.toggleFullscreen()
|
||||
'clicked', this._onInterfaceToggleFullscreenClicked.bind(this)
|
||||
);
|
||||
|
||||
this.window.add(this.interface);
|
||||
@@ -200,6 +200,16 @@ var App = GObject.registerClass({
|
||||
}
|
||||
}
|
||||
|
||||
_onInterfaceToggleFullscreenClicked()
|
||||
{
|
||||
// we need some way to refresh toggle fullscreen button on click
|
||||
// otherwise it does not lose the hover effect after window transition
|
||||
// for now hide->transition->show does the job done
|
||||
this.interface.controls.toggleFullscreenButton.hide();
|
||||
this.window.toggleFullscreen();
|
||||
this.interface.controls.toggleFullscreenButton.show();
|
||||
}
|
||||
|
||||
_onPlayerRealize()
|
||||
{
|
||||
let display = this.player.widget.get_display();
|
||||
|
Reference in New Issue
Block a user