mirror of
https://gitlab.com/AutumnMeowMeow/jexer
synced 2024-09-19 03:40:20 -06:00
start with opacity system setting
This commit is contained in:
parent
0053d9347f
commit
99789ded9e
1 changed files with 8 additions and 1 deletions
|
@ -317,8 +317,15 @@ public class TScreenOptionsWindow extends TWindow {
|
|||
});
|
||||
|
||||
// Window opacity
|
||||
int alpha = getAlpha();
|
||||
try {
|
||||
alpha = Integer.parseInt(System.getProperty(
|
||||
"jexer.TWindow.opacity", "95")) * 255 / 100;
|
||||
} catch (NumberFormatException e) {
|
||||
// SQUASH
|
||||
}
|
||||
windowOpacity = addField(31, 0, 4, true,
|
||||
Integer.toString(getAlpha() * 100 / 255),
|
||||
Integer.toString(alpha * 100 / 255),
|
||||
new TAction() {
|
||||
public void DO() {
|
||||
int currentOpacity = getAlpha() * 100 / 255;
|
||||
|
|
Loading…
Reference in a new issue