From: Caisking <3449750381@qq.com> Date: Wed, 4 Sep 2024 09:45:09 +0000 (+0800) Subject: #414手表,睡眠,作息时间,时间字体颜色需要变更为一致 X-Git-Tag: release_V1.2.70_20241020_135402~518^2~36 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F870%2Fhead;p=mirrors%2FFD230.git #414手表,睡眠,作息时间,时间字体颜色需要变更为一致 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepTimeView.cpp b/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepTimeView.cpp index 336ad3fb1..dda33b95b 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepTimeView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepTimeView.cpp @@ -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);