#414手表,睡眠,作息时间,时间字体颜色需要变更为一致 870/1 870/head
authorCaisking <3449750381@qq.com>
Wed, 4 Sep 2024 09:45:09 +0000 (17:45 +0800)
committerCaisking <3449750381@qq.com>
Wed, 4 Sep 2024 09:45:09 +0000 (17:45 +0800)
code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepTimeView.cpp

index 336ad3f..dda33b9 100644 (file)
@@ -153,15 +153,15 @@ namespace OHOS
         apptitle->SetTextColor(Color::Gray());
         /* ------------------------------- 数据label初始化 ------------------------------- */
         restStr = "--";
-        InitLabelAdapt(goal, 117, 95, 300, 50, "restlabel", restStr.c_str(), DEFAULT_VECTOR_FONT_FILENAME, 40);
+        InitLabel(goal, 83, 90, 300, 50, "restlabel", restStr.c_str(), DEFAULT_VECTOR_FONT_FILENAME, 40);
         // goal->SetLineBreakMode(UILabel::LINE_BREAK_ELLIPSIS);
         goal->SetTextColor(Color::Gray());
         sleepStr = "--";
-        InitLabelAdapt(sleep, 79, 238, 230, 47, "sleeplabel", sleepStr.c_str(), DEFAULT_VECTOR_FONT_FILENAME, 40);
-        sleep->SetTextColor(Color::Purple());
+        InitLabel(sleep, 10, 238, 230, 47, "sleeplabel", sleepStr.c_str(), DEFAULT_VECTOR_FONT_FILENAME, 40);
+        sleep->SetTextColor(Color::GetColorFromRGBA(0x53, 0x20, 0xE2, 0xff));
         wakeStr = "--";
-        InitLabelAdapt(wake, 319, 238, 230, 47, "wakelabel", wakeStr.c_str(), DEFAULT_VECTOR_FONT_FILENAME, 40);
-        wake->SetTextColor(Color::Purple());
+        InitLabel(wake, 245, 238, 230, 47, "wakelabel", wakeStr.c_str(), DEFAULT_VECTOR_FONT_FILENAME, 40);
+        wake->SetTextColor(Color::GetColorFromRGBA(0x53, 0x20, 0xE2, 0xff));
         /* -------------------------------- 将组件添加到根视图 ------------------------------- */
         Add(resttitle);
         Add(sleeptitle);