| 307 | void UIStyle::applyLightDarkValues( CSS::StyleSheetProperty* style ) {} |
| 308 | |
| 309 | void UIStyle::applyVarValues( StyleSheetProperty* property ) { |
| 310 | if ( property->isVarValue() || property->isLightDarkValue() ) { |
| 311 | if ( NULL != property->getPropertyDefinition() && |
| 312 | property->getPropertyDefinition()->isIndexed() ) { |
| 313 | for ( size_t i = 0; i < property->getPropertyIndexCount(); i++ ) { |
| 314 | StyleSheetProperty* realProperty = property->getPropertyIndexRef( i ); |
| 315 | setVariableFromValue( realProperty, realProperty->getValue() ); |
| 316 | } |
| 317 | } else { |
| 318 | setVariableFromValue( property, property->getValue() ); |
| 319 | } |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | void UIStyle::onStateChange() { |
| 324 | if ( NULL == mWidget || NULL == mWidget->getUISceneNode() ) |
nothing calls this directly
no test coverage detected