Browse Source

Fixed serialization of colors in buttons.

David Piuva 2 years ago
parent
commit
5159b804ca
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/DFPSR/gui/components/Button.cpp

+ 2 - 1
Source/DFPSR/gui/components/Button.cpp

@@ -30,7 +30,8 @@ PERSISTENT_DEFINITION(Button)
 
 void Button::declareAttributes(StructureDefinition &target) const {
 	VisualComponent::declareAttributes(target);
-	target.declareAttribute(U"Color");
+	target.declareAttribute(U"BackColor");
+	target.declareAttribute(U"ForeColor");
 	target.declareAttribute(U"Text");
 	target.declareAttribute(U"Padding");
 }