WIP style refactoring

This commit is contained in:
Anuken
2022-05-04 20:24:59 -04:00
parent 705b419799
commit 93d299716c
19 changed files with 48 additions and 32 deletions

View File

@@ -642,14 +642,14 @@ public class MapEditorDialog extends Dialog implements Disposable{
if(!mobile){
mid.table(t -> {
t.button("@editor.center", Icon.move, Styles.cleart, view::center).growX().margin(9f);
t.button("@editor.center", Icon.move, Styles.flatt, view::center).growX().margin(9f);
}).growX().top();
}
mid.row();
mid.table(t -> {
t.button("@editor.cliffs", Icon.terrain, Styles.cleart, editor::addCliffs).growX().margin(9f);
t.button("@editor.cliffs", Icon.terrain, Styles.flatt, editor::addCliffs).growX().margin(9f);
}).growX().top();
}).margin(0).left().growY();

View File

@@ -63,7 +63,7 @@ public class MapGenerateDialog extends BaseDialog{
shown(this::setup);
addCloseListener();
var style = Styles.cleart;
var style = Styles.flatt;
buttons.defaults().size(180f, 64f).pad(2f);
buttons.button("@back", Icon.left, this::hide);
@@ -334,7 +334,7 @@ public class MapGenerateDialog extends BaseDialog{
if(filter.isPost() && applied) continue;
p.button((icon == '\0' ? "" : icon + " ") + filter.name(), Styles.cleart, () -> {
p.button((icon == '\0' ? "" : icon + " ") + filter.name(), Styles.flatt, () -> {
filter.randomize();
filters.add(filter);
rebuildFilters();
@@ -344,7 +344,7 @@ public class MapGenerateDialog extends BaseDialog{
if(++i % 3 == 0) p.row();
}
p.button(Iconc.refresh + " " + Core.bundle.get("filter.defaultores"), Styles.cleart, () -> {
p.button(Iconc.refresh + " " + Core.bundle.get("filter.defaultores"), Styles.flatt, () -> {
maps.addDefaultOres(filters);
rebuildFilters();
update();

View File

@@ -181,7 +181,7 @@ public class WaveGraph extends Table{
colors.clear();
colors.left();
colors.button("@waves.units.hide", Styles.cleart, () -> {
colors.button("@waves.units.hide", Styles.flatt, () -> {
if(hidden.size == usedCopy.size){
hidden.clear();
}else{

View File

@@ -80,7 +80,7 @@ public class WaveInfoDialog extends BaseDialog{
dialog.addCloseButton();
dialog.setFillParent(false);
dialog.cont.table(Tex.button, t -> {
var style = Styles.cleart;
var style = Styles.flatt;
t.defaults().size(210f, 58f);
t.button("@waves.copy", Icon.copy, style, () -> {