Fix unit-tests (ups).

Fix an issue when setting an invalid color to the terminal display.
Update efsw.
This commit is contained in:
Martín Lucas Golini
2026-05-09 19:52:06 -03:00
parent 9255cf8c35
commit 23b14ba2fe
3 changed files with 15 additions and 2 deletions

View File

@@ -45,6 +45,14 @@ std::string UITextNode::getPropertyString( const PropertyDefinition* propertyDef
break;
}
const StyleSheetProperty* prop = getUIStyle()->getProperty( propertyDef->getPropertyId() );
if ( prop )
return prop->value();
if ( propertyDef->isInherited() && getParent() && getParent()->isWidget() )
return static_cast<UIWidget*>( getParent() )
->getPropertyString( propertyDef, propertyIndex );
return UIWidget::getPropertyString( propertyDef, propertyIndex );
}

View File

@@ -541,7 +541,12 @@ int TerminalDisplay::resetColor( const Uint32& index, const char* name ) {
}
}
}
} else {
} else if ( String::iequals( "default", name ) ) {
unsigned char r, g, b;
getColor( index, &r, &g, &b );
col = Color( r, g, b, 255 );
colorParsed = true;
} else if ( Color::isColorString( std::string_view{ name }, true ) ) {
col = Color::fromString( name );
colorParsed = true;
}