File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
samples/components-explorer/src/com/feathersui/components/views Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
package com .feathersui .components .views ;
2
2
3
+ import feathers .controls .AssetLoader ;
3
4
import feathers .controls .Button ;
4
5
import feathers .controls .Header ;
5
6
import feathers .controls .Panel ;
@@ -31,9 +32,11 @@ class ButtonScreen extends Panel {
31
32
this .button .addEventListener (TriggerEvent .TRIGGER , button_triggerHandler );
32
33
this .addChild (this .button );
33
34
35
+ var icon = new AssetLoader (" favicon" );
36
+ icon .sourceScale = 0.5 ;
34
37
this .iconButton = new Button ();
35
38
this .iconButton .text = " Button with Icon" ;
36
- this .iconButton .icon = new Bitmap ( Assets . getBitmapData ( " favicon " )) ;
39
+ this .iconButton .icon = icon ;
37
40
this .addChild (this .iconButton );
38
41
39
42
this .toggleButton = new ToggleButton ();
You can’t perform that action at this time.
0 commit comments