start with opacity system setting

This commit is contained in:
Autumn Lamonte 2022-02-05 18:14:36 -06:00
parent 0053d9347f
commit 99789ded9e

View file

@ -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;