mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-26 01:18:21 +01:00
enable setting blur overlay window
This commit is contained in:
parent
52709d5da4
commit
99e0d02581
12
d.ts/antos.d.ts
vendored
12
d.ts/antos.d.ts
vendored
@ -8237,6 +8237,18 @@ declare namespace OS {
|
||||
* @memberof WindowTag
|
||||
*/
|
||||
constructor();
|
||||
/**
|
||||
* blur overlay: If active the window overlay will be shown
|
||||
* on inactive (blur event)
|
||||
*
|
||||
* Setter: Enable the switch
|
||||
*
|
||||
* Getter: Check whether the switch is enabled
|
||||
*
|
||||
* @memberof WindowTag
|
||||
*/
|
||||
set blur_overlay(v: boolean);
|
||||
get blur_overlay(): boolean;
|
||||
/**
|
||||
* Init window tag
|
||||
* - `shown`: false
|
||||
|
Binary file not shown.
@ -80,6 +80,23 @@ namespace OS {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* blur overlay: If active the window overlay will be shown
|
||||
* on inactive (blur event)
|
||||
*
|
||||
* Setter: Enable the switch
|
||||
*
|
||||
* Getter: Check whether the switch is enabled
|
||||
*
|
||||
* @memberof WindowTag
|
||||
*/
|
||||
set blur_overlay(v: boolean) {
|
||||
this.attsw(v, "blur-overlay");
|
||||
}
|
||||
get blur_overlay(): boolean {
|
||||
return this.hasattr("blur-overlay");
|
||||
}
|
||||
|
||||
/**
|
||||
* Init window tag
|
||||
* - `shown`: false
|
||||
@ -296,7 +313,8 @@ namespace OS {
|
||||
this.observable.on("blur", () => {
|
||||
this._shown = false;
|
||||
$(this).addClass("unactive");
|
||||
$(this.refs.win_overlay).show();
|
||||
if(this.blur_overlay)
|
||||
$(this.refs.win_overlay).show();
|
||||
});
|
||||
this.observable.on("hide", () => {
|
||||
$(this).hide();
|
||||
|
Loading…
Reference in New Issue
Block a user