chenge size for ok button (#1786)

This commit is contained in:
Olexandr Nesterenko
2020-03-30 18:11:38 +03:00
committed by GitHub
parent 4740350ec5
commit 81ffd3fd3c

View File

@ -337,7 +337,7 @@ public class UI implements ApplicationListener, Loadable{
new Dialog(""){{ new Dialog(""){{
getCell(cont).growX(); getCell(cont).growX();
cont.margin(15).add(info).width(400f).wrap().get().setAlignment(Align.center, Align.center); cont.margin(15).add(info).width(400f).wrap().get().setAlignment(Align.center, Align.center);
buttons.addButton("$ok", this::hide).size(90, 50).pad(4); buttons.addButton("$ok", this::hide).size(110, 50).pad(4);
}}.show(); }}.show();
} }
@ -376,7 +376,7 @@ public class UI implements ApplicationListener, Loadable{
Collapser col = new Collapser(base -> base.pane(t -> t.margin(14f).add(Strings.parseException(exc, true)).color(Color.lightGray).left()), true); Collapser col = new Collapser(base -> base.pane(t -> t.margin(14f).add(Strings.parseException(exc, true)).color(Color.lightGray).left()), true);
cont.addButton("$details", Styles.togglet, col::toggle).size(180f, 50f).checked(b -> !col.isCollapsed()).fillX().right(); cont.addButton("$details", Styles.togglet, col::toggle).size(180f, 50f).checked(b -> !col.isCollapsed()).fillX().right();
cont.addButton("$ok", this::hide).size(100, 50).fillX().left(); cont.addButton("$ok", this::hide).size(110, 50).fillX().left();
cont.row(); cont.row();
cont.add(col).colspan(2).pad(2); cont.add(col).colspan(2).pad(2);
}}.show(); }}.show();
@ -424,14 +424,14 @@ public class UI implements ApplicationListener, Loadable{
cont.row(); cont.row();
cont.add(text).width(400f).wrap().get().setAlignment(align, align); cont.add(text).width(400f).wrap().get().setAlignment(align, align);
cont.row(); cont.row();
buttons.addButton("$ok", this::hide).size(90, 50).pad(4); buttons.addButton("$ok", this::hide).size(110, 50).pad(4);
}}.show(); }}.show();
} }
public void showInfoText(String titleText, String text){ public void showInfoText(String titleText, String text){
new Dialog(titleText){{ new Dialog(titleText){{
cont.margin(15).add(text).width(400f).wrap().left().get().setAlignment(Align.left, Align.left); cont.margin(15).add(text).width(400f).wrap().left().get().setAlignment(Align.left, Align.left);
buttons.addButton("$ok", this::hide).size(90, 50).pad(4); buttons.addButton("$ok", this::hide).size(110, 50).pad(4);
}}.show(); }}.show();
} }
@ -440,7 +440,7 @@ public class UI implements ApplicationListener, Loadable{
cont.margin(10).add(text); cont.margin(10).add(text);
titleTable.row(); titleTable.row();
titleTable.addImage().color(Pal.accent).height(3f).growX().pad(2f); titleTable.addImage().color(Pal.accent).height(3f).growX().pad(2f);
buttons.addButton("$ok", this::hide).size(90, 50).pad(4); buttons.addButton("$ok", this::hide).size(110, 50).pad(4);
}}.show(); }}.show();
} }