#713 省电模式电量图标显示需要优化 997/4 997/head
authorCaisking <3449750381@qq.com>
Sat, 21 Sep 2024 03:40:21 +0000 (11:40 +0800)
committerCaisking <3449750381@qq.com>
Sat, 21 Sep 2024 03:40:21 +0000 (11:40 +0800)
code/sdk/application/wearable/fd230app/nativeui/saveele/src/SaveBatView.cpp

index ab235ba..f68b2e4 100644 (file)
@@ -408,14 +408,16 @@ namespace OHOS
         }\r
 \r
         // 设置位置\r
-        batteryiamge->SetPosition(173, 52, 100, 100);\r
-        batteryprogress->SetPosition(179, 59, 30, 18);\r
+        batteryiamge->SetPosition(176, 52, 100, 100);\r
+        batteryiamge->SetSrc(WHITE_BATTERY);\r
+\r
+        batteryprogress->SetPosition(182, 58, 30, 18);\r
+        batteryprogress->SetStyle(STYLE_BORDER_RADIUS, 20);\r
         batteryprogress->SetViewId("batteryprogress");\r
         batteryprogress->SetStyle(STYLE_BACKGROUND_OPA, 0xff);\r
+\r
         batterylabel->SetPosition(228, 54, 200, 60);\r
         batterylabel->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 26);\r
-\r
-        batteryiamge->SetSrc(WHITE_BATTERY);\r
         batterylabel->SetTextColor(Color::White());\r
         batteryprogress->SetForegroundStyle(STYLE_BACKGROUND_COLOR, 0xffffc300);\r
 \r