v0.2.4: fixed chrome inconsistency, standardized tab layouts and made them pretty

This commit is contained in:
Evan Debenham
2015-02-07 20:19:11 -05:00
parent 6b432a176e
commit 89d72e60d1
8 changed files with 60 additions and 25 deletions
@@ -35,27 +35,28 @@ public class Chrome {
};
public static NinePatch get( Type type ) {
String Asset = Assets.CHROME;
switch (type) {
case WINDOW:
return new NinePatch( Assets.CHROME, 0, 0, 22, 22, 7 );
return new NinePatch( Asset, 0, 0, 20, 20, 6 );
case TOAST:
return new NinePatch( Assets.CHROME, 22, 0, 18, 18, 5 );
return new NinePatch( Asset, 22, 0, 18, 18, 5 );
case TOAST_TR:
return new NinePatch( Assets.CHROME, 40, 0, 18, 18, 5 );
return new NinePatch( Asset, 40, 0, 18, 18, 5 );
case BUTTON:
return new NinePatch( Assets.CHROME, 58, 0, 4, 4, 1 );
return new NinePatch( Asset, 58, 0, 4, 4, 1 );
case TAG:
return new NinePatch( Assets.CHROME, 22, 18, 16, 14, 3 );
return new NinePatch( Asset, 22, 18, 16, 14, 3 );
case GEM:
return new NinePatch( Assets.CHROME, 0, 32, 32, 32, 13 );
return new NinePatch( Asset, 0, 32, 32, 32, 13 );
case SCROLL:
return new NinePatch( Assets.CHROME, 32, 32, 32, 32, 5, 11, 5, 11 );
return new NinePatch( Asset, 32, 32, 32, 32, 5, 11, 5, 11 );
case TAB_SET:
return new NinePatch( Assets.CHROME, 64, 0, 22, 22, 7, 7, 7, 7 );
return new NinePatch( Asset, 64, 0, 20, 20, 6, 6, 6, 6 );
case TAB_SELECTED:
return new NinePatch( Assets.CHROME, 64, 22, 10, 14, 4, 7, 4, 6 );
return new NinePatch( Asset, 64, 22, 10, 14, 4, 7, 4, 6 );
case TAB_UNSELECTED:
return new NinePatch( Assets.CHROME, 74, 22, 10, 14, 4, 7, 4, 6 );
return new NinePatch( Asset, 74, 22, 10, 14, 4, 7, 4, 6 );
default:
return null;
}