NekoIconButton reshaping in progress...
TODO : Is there a reason NekoIconButton heritates from Button Feathers component or not ?
This commit is contained in:
@@ -47,10 +47,14 @@ class MainHeader extends LayoutGroup {
|
||||
var l:HorizontalLayout = new HorizontalLayout();
|
||||
l.paddingLeft = l.paddingRight = Std.int(headerHeight * .3);
|
||||
l.paddingTop = l.paddingBottom = Std.int(headerHeight * .2);
|
||||
l.verticalAlign = MIDDLE;
|
||||
layout = l;
|
||||
|
||||
// Drawer button
|
||||
drawerBtn = new NekoIconButton(Assets.getBitmapData("bitmaps/menu_white.png"), 0, 0, Std.int(headerHeight * .5), Std.int(headerHeight * .5));
|
||||
drawerBtn = new NekoIconButton(Assets.getText("vector/menu_icon_black.svg"),
|
||||
Std.int(headerHeight * .5),
|
||||
Std.int(headerHeight * .5),
|
||||
Constants.BUTTON_INVERTED_NORMAL_STATE_COLOR);
|
||||
drawerBtn.addEventListener(TriggerEvent.TRIGGER, onDBtnPress);
|
||||
addChild(drawerBtn);
|
||||
|
||||
@@ -60,12 +64,12 @@ class MainHeader extends LayoutGroup {
|
||||
//lb1.backgroundSkin = new NekoRectangle(Constants.ACCENT_COLOR2);
|
||||
|
||||
//lb1.verticalAlign = VerticalAlign.TOP;
|
||||
lb1.text = "Cavalier·e·s";
|
||||
lb1.text = Constants.MENU_ITEM_0_STRING;
|
||||
lb1.embedFonts = true;
|
||||
var fnt:Font = Assets.getFont(Constants.MONTSERRAT_MEDIUM_500);
|
||||
|
||||
lb1.textFormat = new TextFormat(fnt.fontName, Std.int(headerHeight * .4), Constants.MAIN_COLOR3);
|
||||
//addChild(lb1);
|
||||
addChild(lb1);
|
||||
}
|
||||
|
||||
private function onCreationComplete(event:FeathersEvent):Void {
|
||||
|
||||
Reference in New Issue
Block a user