解决#911,4G提示语字体太大,需要缩小,参考蓝牙界面提示语字体大小bug
authorluozheng <1732036298@qq.com>
Tue, 8 Oct 2024 10:21:00 +0000 (18:21 +0800)
committerluozheng <1732036298@qq.com>
Tue, 8 Oct 2024 10:21:00 +0000 (18:21 +0800)
解决#936,运动识别提示语字体大小修改,参考蓝牙提示语bug

code/sdk/application/wearable/fd230app/nativeui/motionrecognition/src/MotionRecognitionView.cpp
code/sdk/application/wearable/fd230app/nativeui/networkandcall/src/NetworkAndCallView.cpp

index 43bf4b8..a3cf946 100644 (file)
@@ -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;
index 28a0412..18c6e3b 100644 (file)
@@ -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);
         }
     }