This commit is contained in:
Martín Lucas Golini
2020-04-21 04:47:16 -03:00
parent b757f0c9ea
commit 8c5b76f5c9

View File

@@ -192,6 +192,8 @@ void UIStyle::tryApplyStyle( const StyleSheetStyle* style ) {
property.getSpecificity() >= it->second.getSpecificity() ) {
mProperties[property.getId()] = property;
applyVarValues( mProperties[property.getId()] );
if ( String::startsWith( property.getName(), "transition" ) )
mTransitionProperties.push_back( &property );
else if ( String::startsWith( property.getName(), "animation" ) )
@@ -265,10 +267,6 @@ void UIStyle::onStateChange() {
}
if ( !mapEquals( mProperties, prevProperties ) || mForceReapplyProperties ) {
for ( auto& prop : mProperties ) {
applyVarValues( prop.second );
}
mForceReapplyProperties = false;
mWidget->beginAttributesTransaction();