NekoRectangle removal and replaced by RectangleSkin FeathersUI native class
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
package view;
|
||||
|
||||
import feathers.skins.RectangleSkin;
|
||||
import com.adobe.cairngorm.control.CairngormEvent;
|
||||
import com.adobe.cairngorm.control.CairngormEventDispatcher;
|
||||
import components.IconButton;
|
||||
import components.NekoRectangle;
|
||||
import control.AppController;
|
||||
import feathers.controls.Button;
|
||||
import feathers.controls.Label;
|
||||
@@ -37,11 +37,7 @@ class MainHeader extends LayoutGroup {
|
||||
final headerHeight = Std.int(sh * Constants.MAIN_HEADER_HEIGHT_RATIO);
|
||||
|
||||
autoSizeMode = CONTENT;
|
||||
backgroundSkin = new NekoRectangle( Constants.HERO_COLOR,
|
||||
0,
|
||||
0,
|
||||
headerWidth,
|
||||
headerHeight);
|
||||
backgroundSkin = new RectangleSkin(SolidColor(Constants.HERO_COLOR, 1));
|
||||
variant = LayoutGroup.VARIANT_TOOL_BAR;
|
||||
|
||||
// Layout settings
|
||||
@@ -60,7 +56,7 @@ class MainHeader extends LayoutGroup {
|
||||
|
||||
// Title label
|
||||
lbl1 = new Label();
|
||||
//lb1.backgroundSkin = new NekoRectangle(Constants.ACCENT_COLOR2);
|
||||
//lb1.backgroundSkin = new RectangleSkin(SolidColor(Constants.ACCENT_COLOR2, 1));
|
||||
|
||||
//lb1.verticalAlign = VerticalAlign.TOP;
|
||||
lbl1.text = Constants.MENU_ITEM_0_STRING;
|
||||
|
||||
Reference in New Issue
Block a user