From: luozheng <1732036298@qq.com> Date: Tue, 8 Oct 2024 10:21:00 +0000 (+0800) Subject: 解决#911,4G提示语字体太大,需要缩小,参考蓝牙界面提示语字体大小bug X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=9df44999e9601098aac3e7ad3424d9b7e9d61327;p=mirrors%2FFD230.git 解决#911,4G提示语字体太大,需要缩小,参考蓝牙界面提示语字体大小bug 解决#936,运动识别提示语字体大小修改,参考蓝牙提示语bug --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/motionrecognition/src/MotionRecognitionView.cpp b/code/sdk/application/wearable/fd230app/nativeui/motionrecognition/src/MotionRecognitionView.cpp index 43bf4b832..a3cf94673 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/motionrecognition/src/MotionRecognitionView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/motionrecognition/src/MotionRecognitionView.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-04-23 17:28:52 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-10-05 12:41:35 + * @LastEditTime: 2024-10-08 18:14:26 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/motionrecognition/src/MotionRecognitionView.cpp */ #include "motionrecognition/include/MotionRecognitionPresenter.h" @@ -149,12 +149,12 @@ namespace OHOS } } note->SetPosition(63, MotionRecognitionImage->GetY() + MotionRecognitionImage->GetHeight() + 20, 340, 80); - note->SetStyle(STYLE_TEXT_FONT, 26); + note->SetStyle(STYLE_TEXT_FONT, 20); note->SetStyle(STYLE_LINE_HEIGHT, 40); note->SetTextColor(Color::GetColorFromRGBA(0x99, 0x99, 0x99, 0xff)); note->SetTextId(STR_MOTION_RECOGNITION_NOTE);//开启后,手表会在检测到你处于运动状态时发出提醒。支持的运动包括:走路、跑步、骑车、划船机、椭圆机。 note->SetLineBreakMode(UILabel::LINE_BREAK_WRAP); - note->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 26); + note->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 20); /* -------------------------------------------------------------------------- */ viewInitStatus = true; diff --git a/code/sdk/application/wearable/fd230app/nativeui/networkandcall/src/NetworkAndCallView.cpp b/code/sdk/application/wearable/fd230app/nativeui/networkandcall/src/NetworkAndCallView.cpp index 28a041260..18c6e3b5c 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/networkandcall/src/NetworkAndCallView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/networkandcall/src/NetworkAndCallView.cpp @@ -193,13 +193,13 @@ namespace OHOS { note->SetPosition(63, NetworkAndCallImage[0]->GetY() + NetworkAndCallImage[0]->GetHeight() + 20, 340, 80); } - note->SetStyle(STYLE_TEXT_FONT, 26); + note->SetStyle(STYLE_TEXT_FONT, 20); note->SetStyle(STYLE_LINE_HEIGHT, 40); note->SetTextId(STR_4G_NOTE);//开启此功能后,手表可以4G SIM卡拨打电话,耗电会增加。 note->SetTextColor(Color::GetColorFromRGBA(0x99, 0x99, 0x99, 0xff)); note->SetLineBreakMode(UILabel::LINE_BREAK_WRAP); note->SetAlign(TEXT_ALIGNMENT_LEFT, TEXT_ALIGNMENT_CENTER); - note->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 26); + note->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 20); } }