!48317 修复calendarpicker在hover之后深浅色模式切换无法正常刷新

Merge pull request !48317 from luoying_ace/ly1106
This commit is contained in:
openharmony_ci 2024-11-12 06:40:24 +00:00 committed by Gitee
commit b83dbeb9ec
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -917,9 +917,8 @@ void CalendarPickerPattern::HandleTextHoverEvent(bool state, int32_t index)
if (state) {
textFrameNode->GetRenderContext()->UpdateBackgroundColor(theme->GetBackgroundHoverColor());
} else {
ResetTextStateByNode(DynamicCast<FrameNode>(contentNode->GetChildAtIndex(index)));
textFrameNode->GetRenderContext()->UpdateBackgroundColor(Color::TRANSPARENT);
}
textFrameNode->MarkDirtyNode(PROPERTY_UPDATE_RENDER);
}
void CalendarPickerPattern::HandleButtonHoverEvent(bool state, int32_t index)