更换SOS与关机图标位置 789/target/3 803/target/2 804/2 804/head
authorhcj <1224667075@qq.com>
Tue, 27 Aug 2024 09:46:08 +0000 (17:46 +0800)
committerhcj <1224667075@qq.com>
Tue, 27 Aug 2024 09:46:08 +0000 (17:46 +0800)
code/sdk/application/wearable/fd230app/nativeui/rebootdevice/src/RebootView.cpp

index 1783f75..b44405b 100644 (file)
@@ -144,7 +144,7 @@ namespace OHOS
                 return false;
             }
         }
-        rebootLabel->SetPosition(43, 272, 200, 45); // 49:x 272:y 150:width 45:height
+        rebootLabel->SetPosition(223, 272, 200, 45); // 49:x 272:y 150:width 45:height
         rebootLabel->SetText("SOS");
         rebootLabel->SetLineBreakMode(UILabel::LINE_BREAK_WRAP);
         rebootLabel->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 35); // 35:font data
@@ -161,7 +161,7 @@ namespace OHOS
                 return false;
             }
         }
-        rebootButton->SetPosition(93, 160, 100, 100); // 69:x 147:y 110:width 110:height
+        rebootButton->SetPosition(273, 160, 100, 100); // 69:x 147:y 110:width 110:height
         rebootButton->SetImageSrc(PNG_SETTINGS_SETTTING_SOS, PNG_SETTINGS_SETTTING_SOS);
         rebootButton->SetImagePosition(0, 0);
         rebootButton->SetStyle(STYLE_BACKGROUND_COLOR, 0xff4fc34c);
@@ -263,7 +263,7 @@ namespace OHOS
                 return false;
             }
         }
-        shutdownLabel->SetPosition(223, 272, 200, 45); // 255:x 272:y 150:width 45:height
+        shutdownLabel->SetPosition(43, 272, 200, 45); // 255:x 272:y 150:width 45:height43
         shutdownLabel->SetText("关机");
         shutdownLabel->SetLineBreakMode(UILabel::LINE_BREAK_WRAP);
         shutdownLabel->SetTextId(STR_SHUTDOWN);
@@ -281,7 +281,7 @@ namespace OHOS
                 return false;
             }
         }
-        shutdownButton->SetPosition(273, 160, 100, 100); // 275:x 147:y 110:width 110:height
+        shutdownButton->SetPosition(93, 160, 100, 100); // 275:x 147:y 110:width 110:height93
         shutdownButton->SetImageSrc(PNG_SETTINGS_SETTTING_SHUTDOWN_1, PNG_SETTINGS_SETTTING_SHUTDOWN_1);
         shutdownButton->SetImagePosition(0, 0);
         shutdownButton->SetStyle(STYLE_BACKGROUND_COLOR, 0xffff5a36);