/base/update/updater/services/ui/view/component/ |
H A D | text_label_adapter.cpp | 32 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 D | label_btn_adapter.cpp | 82 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 D | box_progress_adapter.cpp | 31 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 D | label_btn_adapter.h | 28 std::string bgColor; member 48 void InitFocus(const OHOS::ColorType &txtColor, const OHOS::ColorType &bgColor,
|
H A D | text_label_adapter.h | 28 std::string bgColor; member
|
H A D | box_progress_adapter.h | 28 std::string bgColor; member
|
/base/update/updater/services/ui/ |
H A D | updater_ui_traits.h | 68 (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 D | ui_component_unittest.cpp | 62 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 D | ui_layout_unittest.cpp | 36 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 D | sub_page.cpp | 44 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 D | base_page.cpp | 41 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 D | sec_comp_tool.cpp | 126 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 D | animation_config.h | 44 std::string bgColor; member
|
/base/powermgr/battery_manager/charger/src/ |
H A D | animation_config.cpp | 88 if (component.find("bgColor") != component.end()) { in ParseAnimationLabel() 89 info.bgColor = component.at("bgColor").get<std::string>(); in ParseAnimationLabel()
|
H A D | charger_animation.cpp | 81 label->SetStyle(OHOS::STYLE_BACKGROUND_COLOR, StrToColor(info.bgColor.c_str()).full); in InitLabel()
|