diff --git a/frameworks/bridge/declarative_frontend/jsview/js_image.cpp b/frameworks/bridge/declarative_frontend/jsview/js_image.cpp index b4937bcef12d7d705b83312266362e9d89f3fb34..7bcff5d9673d28574f2ce3517dd85aa99a379ca2 100644 --- a/frameworks/bridge/declarative_frontend/jsview/js_image.cpp +++ b/frameworks/bridge/declarative_frontend/jsview/js_image.cpp @@ -659,6 +659,8 @@ void JSImage::SetImageFill(const JSCallbackInfo& info) color = theme->GetFillColor(); } ImageModel::GetInstance()->SetImageFill(color); + // Fix the svg collision bug with the foreground color placeholder 0x00000001. + ViewAbstractModel::GetInstance()->SetForegroundColor(Color::FOREGROUND); } void JSImage::SetImageRenderMode(const JSCallbackInfo& info)