better look

this looks better in my opinion
This commit is contained in:
J-VdS
2020-08-08 21:33:32 +02:00
committed by GitHub
parent 840f6e43c3
commit f9a0d7a3c6

View File

@@ -188,6 +188,10 @@ public class ModsDialog extends BaseDialog{
modSelected.cont.add(modsbrolist.description).width(mobile ? 400f : 500f).wrap().pad(4f).get().setAlignment(Align.center, Align.center);
modSelected.buttons.defaults().size(200f, 54f).pad(2f);
modSelected.setFillParent(false);
modSelected.buttons.button("$back", Icon.left, () -> {
modSelected.clear();
modSelected.hide();
});
modSelected.buttons.button("$mods.browser.add", Icon.download, () -> {
modSelected.hide();
installMod[0] = () -> {
@@ -226,10 +230,6 @@ public class ModsDialog extends BaseDialog{
};
openGithubPage[0].run();
});
modSelected.buttons.button("$back", Icon.left, () -> {
modSelected.clear();
modSelected.hide();
});
modSelected.keyDown(KeyCode.escape, modSelected::hide);
modSelected.keyDown(KeyCode.back, modSelected::hide);
modSelected.show();