Explorar o código

Fixed project title

Ivan Safrin %!s(int64=12) %!d(string=hai) anos
pai
achega
9af19e3e13

+ 1 - 1
IDE/Contents/Source/PolycodeFrame.cpp

@@ -570,7 +570,7 @@ PolycodeFrame::PolycodeFrame() : UIElement() {
 
 	currentProjectTitle = new UILabel("", 32, "section");
 	addChild(currentProjectTitle);
-	currentProjectTitle->color.a = 1.0;
+	currentProjectTitle->setColor(1.0, 1.0, 1.0, 1.0);
 	currentProjectTitle->setPosition(70, 0);
 
 	currentFileSelector = new UIComboBox(globalMenu, 350);

+ 1 - 1
Modules/Contents/UI/Source/PolyUIElement.cpp

@@ -34,7 +34,7 @@ UILabel::UILabel(const String& text, int size, const String& fontName, int amode
 
 	Config *conf = CoreServices::getInstance()->getConfig();	
 	label = new SceneLabel(text, size, fontName, amode);
-	label->color.setColorHexFromString(conf->getStringValue("Polycode", "uiDefaultFontColor"));
+	color.setColorHexFromString(conf->getStringValue("Polycode", "uiDefaultFontColor"));
 	addChild(label);
 	bBox = label->bBox;
 }