Some tidying.
We don't like tabs, we don't like spurious blank lines, we don't like butter, we don't like cheese.
This commit is contained in:
@@ -170,8 +170,8 @@ public class Application
|
|||||||
/** The path (relative to the appdir) to a single play again image. */
|
/** The path (relative to the appdir) to a single play again image. */
|
||||||
public String playAgainImage;
|
public String playAgainImage;
|
||||||
|
|
||||||
public boolean hideDecorations;
|
/** Whether window decorations are hidden for the UI. */
|
||||||
|
public boolean hideDecorations;
|
||||||
|
|
||||||
/** The global percentages for each step. A step may have more than one, and
|
/** The global percentages for each step. A step may have more than one, and
|
||||||
* the lowest reasonable one is used if a step is revisited. */
|
* the lowest reasonable one is used if a step is revisited. */
|
||||||
@@ -694,6 +694,7 @@ public class Application
|
|||||||
ui.status = parseRect(cdata, "ui.status", ui.status);
|
ui.status = parseRect(cdata, "ui.status", ui.status);
|
||||||
ui.statusText = parseColor(cdata, "ui.status_text", ui.statusText);
|
ui.statusText = parseColor(cdata, "ui.status_text", ui.statusText);
|
||||||
ui.textShadow = parseColor(cdata, "ui.text_shadow", ui.textShadow);
|
ui.textShadow = parseColor(cdata, "ui.text_shadow", ui.textShadow);
|
||||||
|
ui.hideDecorations = Boolean.parseBoolean((String)cdata.get("ui.hide_decorations"));
|
||||||
ui.backgroundImage = (String)cdata.get("ui.background_image");
|
ui.backgroundImage = (String)cdata.get("ui.background_image");
|
||||||
if (ui.backgroundImage == null) { // support legacy format
|
if (ui.backgroundImage == null) { // support legacy format
|
||||||
ui.backgroundImage = (String)cdata.get("ui.background");
|
ui.backgroundImage = (String)cdata.get("ui.background");
|
||||||
@@ -728,8 +729,6 @@ public class Application
|
|||||||
ui.playAgain = parseRect(cdata, "ui.play_again", ui.playAgain);
|
ui.playAgain = parseRect(cdata, "ui.play_again", ui.playAgain);
|
||||||
ui.playAgainImage = (String)cdata.get("ui.play_again_image");
|
ui.playAgainImage = (String)cdata.get("ui.play_again_image");
|
||||||
|
|
||||||
ui.hideDecorations = Boolean.parseBoolean((String)cdata.get("ui.hide_decorations"));
|
|
||||||
|
|
||||||
// step progress percentages
|
// step progress percentages
|
||||||
for (UpdateInterface.Step step : UpdateInterface.Step.values()) {
|
for (UpdateInterface.Step step : UpdateInterface.Step.values()) {
|
||||||
String spec = (String)cdata.get("ui.percents." + step.name());
|
String spec = (String)cdata.get("ui.percents." + step.name());
|
||||||
|
|||||||
@@ -99,14 +99,13 @@ public class GetdownApp
|
|||||||
String title = StringUtil.isBlank(_ifc.name) ? "" : _ifc.name;
|
String title = StringUtil.isBlank(_ifc.name) ? "" : _ifc.name;
|
||||||
if (_frame == null) {
|
if (_frame == null) {
|
||||||
_frame = new JFrame(title);
|
_frame = new JFrame(title);
|
||||||
_frame.setUndecorated(_ifc.hideDecorations);
|
|
||||||
|
|
||||||
_frame.addWindowListener(new WindowAdapter() {
|
_frame.addWindowListener(new WindowAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void windowClosing (WindowEvent evt) {
|
public void windowClosing (WindowEvent evt) {
|
||||||
handleWindowClose();
|
handleWindowClose();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
_frame.setUndecorated(_ifc.hideDecorations);
|
||||||
_frame.setResizable(false);
|
_frame.setResizable(false);
|
||||||
} else {
|
} else {
|
||||||
_frame.setTitle(title);
|
_frame.setTitle(title);
|
||||||
|
|||||||
Reference in New Issue
Block a user