I am just getting going with starling and feathersui trying to get the feathers theme to work.
I have managed to get it so the background color of the app changes to the theme color (so I know the theme is loading and running correctly) but there is nothing on the button or any other controller i have tried. The button is just plain black text , no button .
package {
import starling.display.Sprite;
import starling.display.Stage;
import starling.display.Image;
import starling.textures.Texture;
import starling.events.Event;
import starling.text.TextField;
import feathers.controls.Button;
import feathers.controls.Callout;
import feathers.controls.Label;
import feathers.controls.TextInput;
import feathers.themes.MetalWorksMobileTheme
public class Game extends Sprite
{
public function Game()
{
this.addEventListener( Event.ADDED_TO_STAGE, addedToStageHandler );
var stageWidth = 640;
var stageHeight=960;
var button:Button = new Button();
button.label = "Click Me";
button.x = 200;
button.y = 500;
addChild( button );
}
private function addedToStageHandler( event:Event ):void
{
new feathers.themes.MetalWorksMobileTheme();
}
}
}
I have added the path to the theme in my .source settings.
I must be missing something that is stopping it from loading, any help would be appreciated.
I think you are missing the stage reference to the theme object. You need to do this so the theme can hook up the DisplayListWatcher correctly.
Here is a snippet of how your theme should be: