From: Caisking <3449750381@qq.com> Date: Tue, 18 Jun 2024 12:18:05 +0000 (+0800) Subject: 优化默认设置 X-Git-Tag: release_V1.2.70_20241020_135402~985^2~1 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=68cda990f230f7b065938ff8b309f529569620d5;p=mirrors%2FFD230.git 优化默认设置 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageShowView.cpp b/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageShowView.cpp index 012b1f4af..78beb4f51 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageShowView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageShowView.cpp @@ -36,11 +36,13 @@ namespace OHOS static constexpr const int kTimeFontSize = 28; static constexpr const char *kTimeViewId = "time"; // static constexpr const Color kTimeTextColor = Color::Gray(); - +#if 0 std::string titleStr = "12306中国高速铁路"; std::string timeStr = "2023.12.26 17:23"; std::string messageStr = "【铁路12306】系统已自动为您生成订单EC09828333,04月23日G2231次,深圳北站13:31开。请您在2小时内完成支付。您可通过以下链接进行支付。https://www.12306.cn/index/"; - +#endif + std::string titleStr, timeStr, messageStr; + MessageShowView::MessageShowView() { g_pMessageShowView = this; @@ -167,7 +169,7 @@ namespace OHOS InitializeButton(messageButton, 33, 157, 380, 350, "message"); messageButton->SetStyle(STYLE_BORDER_RADIUS, 30); messageButton->SetText(messageStr.c_str()); - //messageButton->SetAlign(TEXT_ALIGNMENT_LEFT); + // messageButton->SetAlign(TEXT_ALIGNMENT_LEFT); messageButton->SetTextColor(Color::Gray()); messageButton->SetTouchable(false); messageButton->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);