Ver Fonte

fixed default text color should be white instead of 0

Nicolas Cannasse há 3 anos atrás
pai
commit
24ace7f3db
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      h2d/domkit/BaseComponents.hx

+ 1 - 1
h2d/domkit/BaseComponents.hx

@@ -605,7 +605,7 @@ class TextComp extends DrawableComp implements domkit.Component.ComponentDecl<h2
 	@:p(none) var maxWidth : Null<Int>;
 	@:p var textAlign : h2d.Text.Align = Left;
 	@:p(textShadow) var textShadow : { dx : Float, dy : Float, color : Int, alpha : Float };
-	@:p(color) var #if domkit_drawable_color textColor #else color #end : Int;
+	@:p(color) var #if domkit_drawable_color textColor #else color #end : Null<Int>;
 
 	static function create( parent : h2d.Object ) {
 		return new h2d.Text(hxd.res.DefaultFont.get(),parent);