From dd8d21769222871d8d0dcc20711f3e1c46aeeefa Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Sat, 21 Sep 2024 11:40:21 +0800 Subject: [PATCH] =?utf8?q?#713=20=E7=9C=81=E7=94=B5=E6=A8=A1=E5=BC=8F?= =?utf8?q?=E7=94=B5=E9=87=8F=E5=9B=BE=E6=A0=87=E6=98=BE=E7=A4=BA=E9=9C=80?= =?utf8?q?=E8=A6=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/saveele/src/SaveBatView.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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); -- 2.17.1