mirror of
https://gitlab.com/AutumnMeowMeow/jexer
synced 2024-09-19 03:40:20 -06:00
Retain window opacity when ESC from TScreenOptionsWindow
This commit is contained in:
parent
933eb3fc2a
commit
961fa67fc0
1 changed files with 5 additions and 3 deletions
|
@ -216,7 +216,7 @@ public class TScreenOptionsWindow extends TWindow {
|
|||
/**
|
||||
* The original window opacity.
|
||||
*/
|
||||
private int oldWindowOpacity;
|
||||
private int oldWindowOpacity = 100;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Constructors -----------------------------------------------------------
|
||||
|
@ -318,9 +318,11 @@ public class TScreenOptionsWindow extends TWindow {
|
|||
|
||||
// Window opacity
|
||||
int alpha = getAlpha();
|
||||
oldWindowOpacity = 95;
|
||||
try {
|
||||
alpha = Integer.parseInt(System.getProperty(
|
||||
"jexer.TWindow.opacity", "95")) * 255 / 100;
|
||||
oldWindowOpacity = Integer.parseInt(System.getProperty(
|
||||
"jexer.TWindow.opacity", "95"));
|
||||
alpha = oldWindowOpacity * 255 / 100;
|
||||
} catch (NumberFormatException e) {
|
||||
// SQUASH
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue