NekoRectangle removal and replaced by RectangleSkin FeathersUI native class
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
package components;
|
||||
|
||||
import feathers.controls.ToggleButton;
|
||||
import feathers.skins.RectangleSkin;
|
||||
import feathers.text.TextFormat;
|
||||
import format.SVG;
|
||||
import model.Constants;
|
||||
import openfl.display.Bitmap;
|
||||
import openfl.display.BitmapData;
|
||||
import openfl.display.Shape;
|
||||
import openfl.events.Event;
|
||||
import openfl.geom.ColorTransform;
|
||||
@@ -32,7 +31,7 @@ class ToolbarToggleButton extends ToggleButton {
|
||||
|
||||
iconPosition = TOP;
|
||||
embedFonts = true;
|
||||
backgroundSkin = new Bitmap(new BitmapData(10, 10, true, 0xFF00FF));
|
||||
backgroundSkin = new RectangleSkin(SolidColor( 0xFF0000, 0));
|
||||
|
||||
// icon
|
||||
if(svgIconPath != null){
|
||||
|
||||
Reference in New Issue
Block a user