From: hcj <1224667075@qq.com> Date: Tue, 27 Aug 2024 09:46:08 +0000 (+0800) Subject: 更换SOS与关机图标位置 X-Git-Tag: release_V1.2.70_20241020_135402~578^2~2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F803%2Ftarget%2F2;p=mirrors%2FFD230.git 更换SOS与关机图标位置 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/rebootdevice/src/RebootView.cpp b/code/sdk/application/wearable/fd230app/nativeui/rebootdevice/src/RebootView.cpp index 1783f75f4..b44405b14 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/rebootdevice/src/RebootView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/rebootdevice/src/RebootView.cpp @@ -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);