From e4b643d2e95f2760700a3cdc93eaec20d258c583 Mon Sep 17 00:00:00 2001 From: xiaojianfeng Date: Fri, 15 Aug 2025 10:41:48 +0000 Subject: [PATCH] update frameworks/bridge/declarative_frontend/jsview/js_image.cpp. Signed-off-by: xiaojianfeng --- frameworks/bridge/declarative_frontend/jsview/js_image.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frameworks/bridge/declarative_frontend/jsview/js_image.cpp b/frameworks/bridge/declarative_frontend/jsview/js_image.cpp index b4937bcef12..7bcff5d9673 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) -- Gitee