java - MigLayout: how to change default “related” and “unrelated” gap values? -
it nice feature use “related” , “unrelated” gap values in miglayout container, change default values. how that? don’t use explicit numbers, e.g. “wrap 15px”. “wrap related” more flexible , readable.
have @ class platformdefaults: has api customize (nearly) semantically known unitvalues, f.i. set unrelated gap both x/y
unitvalue mygap = new unitvalue(15, unitvalue.lpx, null); platformdefaults.setunrelatedgap(mygap, mygap);
beware, though: default values per-os guidelines require, if change them ui violate guidelines!
Comments
Post a Comment