From: Caisking <3449750381@qq.com> Date: Sat, 21 Sep 2024 03:40:21 +0000 (+0800) Subject: #713 省电模式电量图标显示需要优化 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=dd8d21769222871d8d0dcc20711f3e1c46aeeefa;p=mirrors%2FFD230.git #713 省电模式电量图标显示需要优化 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/saveele/src/SaveBatView.cpp b/code/sdk/application/wearable/fd230app/nativeui/saveele/src/SaveBatView.cpp index ab235bafe..f68b2e4e1 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/saveele/src/SaveBatView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/saveele/src/SaveBatView.cpp @@ -408,14 +408,16 @@ namespace OHOS } // 设置位置 - batteryiamge->SetPosition(173, 52, 100, 100); - batteryprogress->SetPosition(179, 59, 30, 18); + batteryiamge->SetPosition(176, 52, 100, 100); + batteryiamge->SetSrc(WHITE_BATTERY); + + batteryprogress->SetPosition(182, 58, 30, 18); + batteryprogress->SetStyle(STYLE_BORDER_RADIUS, 20); batteryprogress->SetViewId("batteryprogress"); batteryprogress->SetStyle(STYLE_BACKGROUND_OPA, 0xff); + batterylabel->SetPosition(228, 54, 200, 60); batterylabel->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 26); - - batteryiamge->SetSrc(WHITE_BATTERY); batterylabel->SetTextColor(Color::White()); batteryprogress->SetForegroundStyle(STYLE_BACKGROUND_COLOR, 0xffffc300);