Home
last modified time | relevance | path

Searched refs:bgColor (Results 1 - 15 of 15) sorted by relevance

/base/update/updater/services/ui/view/component/
H A Dtext_label_adapter.cpp32 auto bgColor = StrToColor(spec.bgColor); in TextLabelAdapter() local
33 this->SetStyle(OHOS::STYLE_BACKGROUND_COLOR, bgColor.full); in TextLabelAdapter()
34 this->SetStyle(OHOS::STYLE_BACKGROUND_OPA, bgColor.alpha); in TextLabelAdapter()
44 if (!CheckColor(info.bgColor) || !CheckColor(info.fontColor)) { in IsValid()
45 LOG(ERROR) << "label viewinfo check failed, bgColor:" << info.bgColor << in IsValid()
H A Dlabel_btn_adapter.cpp82 auto bgColor = StrToColor(spec.bgColor); in LabelBtnAdapter() local
83 this->SetStyle(OHOS::STYLE_BACKGROUND_COLOR, bgColor.full); in LabelBtnAdapter()
84 this->SetStyle(OHOS::STYLE_BACKGROUND_OPA, bgColor.alpha); in LabelBtnAdapter()
87 InitFocus(txtColor, bgColor, StrToColor(spec.focusedTxtColor), in LabelBtnAdapter()
99 if (!CheckColor(info.bgColor) || !CheckColor(info.focusedBgColor) || in IsValid()
101 LOG(ERROR) << "label viewinfo check failed, bgColor:" << info.bgColor << in IsValid()
131 void LabelBtnAdapter::InitFocus(const OHOS::ColorType &txtColor, const OHOS::ColorType &bgColor, in InitFocus() argument
134 focusListener_ = std::make_unique<LabelBtnOnFocusListener>(focusedTxtColor, txtColor, focusedBgColor, bgColor); in InitFocus()
[all...]
H A Dbox_progress_adapter.cpp31 auto bgColor = StrToColor(spec.bgColor); in BoxProgressAdapter() local
32 this->SetBackgroundStyle(OHOS::STYLE_BACKGROUND_COLOR, bgColor.full); in BoxProgressAdapter()
33 this->SetBackgroundStyle(OHOS::STYLE_BACKGROUND_OPA, bgColor.alpha); in BoxProgressAdapter()
49 if (!CheckColor(info.bgColor) || !CheckColor(info.fgColor)) { in IsValid()
50 LOG(ERROR) << "progress viewinfo check failed, bgColor:" << info.bgColor << in IsValid()
H A Dlabel_btn_adapter.h28 std::string bgColor; member
48 void InitFocus(const OHOS::ColorType &txtColor, const OHOS::ColorType &bgColor,
H A Dtext_label_adapter.h28 std::string bgColor; member
H A Dbox_progress_adapter.h28 std::string bgColor; member
/base/update/updater/services/ui/
H A Dupdater_ui_traits.h68 (std::string, bgColor),
78 (std::string, bgColor)
92 (std::string, bgColor),
100 (std::string, bgColor),
112 std::string bgColor {};
124 (std::string, bgColor),
/base/update/updater/test/unittest/updater_ui_test/view/
H A Dui_component_unittest.cpp62 auto bgColor = StrToColor(specInfo.bgColor); in HWTEST_F() local
63 EXPECT_EQ(boxProgress.GetBackgroundStyle(OHOS::STYLE_BACKGROUND_COLOR), bgColor.full); in HWTEST_F()
64 EXPECT_EQ(boxProgress.GetBackgroundStyle(OHOS::STYLE_BACKGROUND_OPA), bgColor.alpha); in HWTEST_F()
302 auto bgColor = StrToColor(specInfo.bgColor); in HWTEST_F() local
305 EXPECT_EQ(labelBtn.GetStyle(OHOS::STYLE_BACKGROUND_COLOR), bgColor.full); in HWTEST_F()
306 EXPECT_EQ(labelBtn.GetStyle(OHOS::STYLE_BACKGROUND_OPA), bgColor.alpha); in HWTEST_F()
370 auto bgColor = StrToColor(specInfo.bgColor); in HWTEST_F() local
[all...]
H A Dui_layout_unittest.cpp36 return std::tie(lhs.defaultValue, lhs.fgColor, lhs.bgColor, lhs.hasEp, lhs.endPoint) == in operator ==()
37 std::tie(rhs.defaultValue, rhs.fgColor, rhs.bgColor, rhs.hasEp, rhs.endPoint); in operator ==()
42 return std::tie(lhs.text, lhs.bgColor, lhs.align, lhs.fontColor, lhs.fontSize) == in operator ==()
43 std::tie(rhs.text, rhs.bgColor, rhs.align, rhs.fontColor, rhs.fontSize); in operator ==()
54 return std::tie(lhs.fontSize, lhs.text, lhs.txtColor, lhs.bgColor, lhs.focusedBgColor, lhs.focusedTxtColor) == in operator ==()
55 std::tie(rhs.fontSize, rhs.text, rhs.txtColor, rhs.bgColor, rhs.focusedBgColor, rhs.focusedTxtColor); in operator ==()
/base/update/updater/services/ui/view/page/
H A Dsub_page.cpp44 color_ = StrToColor(subpageInfo.bgColor); in BuildSubPage()
71 if (!CheckColor(info.bgColor)) { in IsPageInfoValid()
72 LOG(ERROR) << "sub page color not valid, bgcolor: " << info.bgColor; in IsPageInfoValid()
H A Dbase_page.cpp41 if (!CheckColor(pageInfo.bgColor)) { in IsPageInfoValid()
42 LOG(ERROR) << "page color not valid, bgcolor: " << pageInfo.bgColor; in IsPageInfoValid()
60 color_ = StrToColor(pageInfo.bgColor); in BuildPage()
/base/security/security_component_manager/frameworks/common/src/
H A Dsec_comp_tool.cpp126 static bool IsColorAplhaSimilar(const SecCompColor& fgColor, const SecCompColor& bgColor) in IsColorAplhaSimilar() argument
129 double bgAlpha = static_cast<double>(bgColor.argb.alpha) / MAX_ALPHA; in IsColorAplhaSimilar()
134 fgColor.argb.alpha, bgColor.argb.alpha); in IsColorAplhaSimilar()
/base/powermgr/battery_manager/charger/include/
H A Danimation_config.h44 std::string bgColor; member
/base/powermgr/battery_manager/charger/src/
H A Danimation_config.cpp88 if (component.find("bgColor") != component.end()) { in ParseAnimationLabel()
89 info.bgColor = component.at("bgColor").get<std::string>(); in ParseAnimationLabel()
H A Dcharger_animation.cpp81 label->SetStyle(OHOS::STYLE_BACKGROUND_COLOR, StrToColor(info.bgColor.c_str()).full); in InitLabel()

Completed in 6 milliseconds