Home
last modified time | relevance | path

Searched refs:themeConfig (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dtheme_config_test.cpp97 bool ret = this->themeConfig->Match(themeConfig, *this->resConfig);
101 ret = this->themeConfig->Match(themeConfig, *this->resConfig);
106 ret = this->themeConfig->Match(themeConfig, *this->resConfig);
119 bool ret = this->themeConfig->Match(themeConfig, *this->resConfig);
123 ret = this->themeConfig->Match(themeConfig, *this->resConfig);
142 bool ret = this->themeConfig->Match(themeConfig, *this->resConfig);
146 ret = this->themeConfig->Match(themeConfig, *this->resConfig);
151 ret = this->themeConfig->Match(themeConfig, *this->resConfig);
170 bool ret = this->themeConfig->Match(themeConfig, *this->resConfig);
189 bool ret = this->themeConfig->Match(themeConfig, *this->resConfig);
[all …]
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/
H A Dtheme_pack_config.cpp34 bool ThemeConfig::Match(const std::shared_ptr<ThemeConfig> &themeConfig, const ResConfigImpl &resCo… in Match() argument
38 ColorMode themeColorMode_ = themeConfig->GetThemeColorMode(); in Match()
39 Direction themeDirection_ = themeConfig->GetThemeDirection(); in Match()
56 bool ThemeConfig::BestMatch(const std::shared_ptr<ThemeConfig> &themeConfig, const ResConfigImpl &r… in BestMatch() argument
60 ColorMode themeColorMode_ = themeConfig->GetThemeColorMode(); in BestMatch()
61 Direction themeDirection_ = themeConfig->GetThemeDirection(); in BestMatch()
69 return this->IsMoreMatchThan(themeConfig); in BestMatch()
72 bool ThemeConfig::IsMoreMatchThan(const std::shared_ptr<ThemeConfig> &themeConfig) const in IsMoreMatchThan()
74 if (this->themeDirection_ != themeConfig->themeDirection_) { in IsMoreMatchThan()
78 if (this->themeColorMode_ != themeConfig->themeColorMode_) { in IsMoreMatchThan()
H A Dtheme_pack_resource.cpp50 themeConfig_(themeConfig), resValue_(value) in ThemeQualifierValue()
83 auto themeConfig = std::make_shared<ThemeConfig>(); in GetThemeConfig() local
86 themeConfig->SetThemeColorMode(ColorMode::DARK); in GetThemeConfig()
88 themeConfig->SetThemeDirection(Direction::DIRECTION_HORIZONTAL); in GetThemeConfig()
90 themeConfig->SetThemeDirection(Direction::DIRECTION_HORIZONTAL); in GetThemeConfig()
91 themeConfig->SetThemeColorMode(ColorMode::DARK); in GetThemeConfig()
95 return themeConfig; in GetThemeConfig()
165 auto themeConfig = GetThemeConfig(jsonPath); in ParseJson() local
169 InitThemeRes(bundleInfo, floatRoot, themeConfig, "float"); in ParseJson()
172 InitThemeRes(bundleInfo, colorRoot, themeConfig, "color"); in ParseJson()
[all …]
H A Dtheme_pack_manager.cpp260 auto themeConfig = path->GetThemeConfig(); in GetBestMatchThemeResource() local
261 if (!ThemeConfig::Match(themeConfig, resConfig)) { in GetBestMatchThemeResource()
265 bestThemeConfig = themeConfig; in GetBestMatchThemeResource()
269 if (!bestThemeConfig->BestMatch(themeConfig, resConfig)) { in GetBestMatchThemeResource()
270 bestThemeConfig = themeConfig; in GetBestMatchThemeResource()
/ohos5.0/base/global/resource_management/frameworks/resmgr/include/
H A Dtheme_pack_config.h59 …static bool Match(const std::shared_ptr<ThemeConfig> &themeConfig, const ResConfigImpl &resConfig);
68 …bool BestMatch(const std::shared_ptr<ThemeConfig> &themeConfig, const ResConfigImpl &resConfig) co…
70 bool IsMoreMatchThan(const std::shared_ptr<ThemeConfig> &themeConfig) const;
H A Dtheme_pack_resource.h82 ThemeQualifierValue(const ThemeKey themeKey, std::shared_ptr<ThemeConfig> themeConfig,
170 std::shared_ptr<ThemeConfig> themeConfig, const std::string &resTypeStr);