Home
last modified time | relevance | path

Searched refs:ThemeConstantsType (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dtheme.csv447 …ART,THEME_DIALOG_KEY_BASE,14,2014,ThemeConstantsType::DOUBLE,0.85,,,ThemeConstantsType::DOUBLE,0.9…
529 …D_FADE,THEME_TEXTFIELD_KEY_BASE,6,2406,ThemeConstantsType::INT,0,,,ThemeConstantsType::INT,1,,,The…
634 …OW_BUTTONS,THEME_PICKER_KEY_BASE,,3000,ThemeConstantsType::INT,1,,,ThemeConstantsType::INT,0,,,The…
638 …ION_COUNT,THEME_PICKER_KEY_BASE,4,3004,ThemeConstantsType::INT,5,,,ThemeConstantsType::INT,5,,,The…
641 …WIDTH,THEME_PICKER_KEY_BASE,7,3007,ThemeConstantsType::DOUBLE,96,,,ThemeConstantsType::DOUBLE,96,,…
644 …DDING,THEME_PICKER_KEY_BASE,10,3010,ThemeConstantsType::DOUBLE,8,,,ThemeConstantsType::DOUBLE,8,,,
682 …A_BEGIN,THEME_ITEM_KEY_BASE,1,3201,ThemeConstantsType::DOUBLE,0,,,ThemeConstantsType::DOUBLE,0.2,,…
683 …HA_END,THEME_ITEM_KEY_BASE,2,3202,ThemeConstantsType::DOUBLE,0.05,,,ThemeConstantsType::DOUBLE,0.9…
684 …SCALE,THEME_ITEM_KEY_BASE,3,3203,ThemeConstantsType::DOUBLE,0.95,,,ThemeConstantsType::DOUBLE,0.95…
685 …SCALE,THEME_ITEM_KEY_BASE,4,3204,ThemeConstantsType::DOUBLE,1.12,,,ThemeConstantsType::DOUBLE,1.05…
[all …]
H A Dtheme_constants.cpp23 const ResValueWrapper ERROR_VALUE = { .type = ThemeConstantsType::ERROR };
45 if (valueWrapper.type == ThemeConstantsType::ERROR) { in ValueTypeMatch()
94 if (!ValueTypeMatch(valueWrapper, key, ThemeConstantsType::COLOR)) { in GetColor()
125 if (!ValueTypeMatch(valueWrapper, key, ThemeConstantsType::DIMENSION)) { in GetDimension()
157 if (!ValueTypeMatch(valueWrapper, key, ThemeConstantsType::INT)) { in GetInt()
184 if (!ValueTypeMatch(valueWrapper, key, ThemeConstantsType::DOUBLE)) { in GetDouble()
211 if (!ValueTypeMatch(valueWrapper, key, ThemeConstantsType::STRING)) { in GetString()
238 if (!ValueTypeMatch(valueWrapper, key, ThemeConstantsType::STRING)) { in GetPluralString()
384 if (!ValueTypeMatch(valueWrapper, key, ThemeConstantsType::RESOURCE_ID)) { in GetResourceId()
418 if (platformConstants->type != ThemeConstantsType::REFERENCE) { in GetValue()
[all …]
H A Dtheme_utils.cpp115 case ThemeConstantsType::COLOR: in ParseStyleValue()
118 case ThemeConstantsType::DIMENSION: in ParseStyleValue()
121 case ThemeConstantsType::INT: in ParseStyleValue()
124 case ThemeConstantsType::DOUBLE: in ParseStyleValue()
127 case ThemeConstantsType::STRING: in ParseStyleValue()
131 resultValue.type = ThemeConstantsType::ERROR; in ParseStyleValue()
135 resultValue.type = ThemeConstantsType::ERROR; in ParseStyleValue()
H A Dtheme_style.h44 enum class ThemeConstantsType { enum
71 ThemeConstantsType type { ThemeConstantsType::COLOR };
141 if (valueWrapper.type == ThemeConstantsType::REFERENCE_ATTR) { in GetAttr()
H A Dtheme_constants.h370 ResValueWrapper value = { .type = ThemeConstantsType::PATTERN, in GetPatternByName()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/theme/
H A Dtheme_mock.cpp39 { PATTERN_WIDTH, { .type = ThemeConstantsType::DOUBLE, .value = 36.0 } },
54 { 117440511, { .type = ThemeConstantsType::COLOR, .value = Color(0xffffffff) } },
56 { 117440513, { .type = ThemeConstantsType::DIMENSION, .value = 10.0_vp } },
57 { 117440514, { .type = ThemeConstantsType::DOUBLE, .value = 10.0 } },
58 { 117440515, { .type = ThemeConstantsType::INT, .value = -10 } },
59 { 117440516, { .type = ThemeConstantsType::STRING, .value = "sans-serif" } },
67 { "sys.integer.test_int", { .type = ThemeConstantsType::INT, .value = -10 } },
89 if (valueWrapper.type != ThemeConstantsType::STATE_RESOURCE) { in Initialize()
104 valueWrapper.type = ThemeConstantsType::STATE_RESOURCE; in Initialize()
110 if (valueWrapper.type != ThemeConstantsType::PATTERN) { in Initialize()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/common/
H A Dtheme_mock.cpp39 { PATTERN_WIDTH, { .type = ThemeConstantsType::DOUBLE, .value = 36.0 } },
54 { 117440511, { .type = ThemeConstantsType::COLOR, .value = Color(0xffffffff) } },
56 { 117440513, { .type = ThemeConstantsType::DIMENSION, .value = 10.0_vp } },
57 { 117440514, { .type = ThemeConstantsType::DOUBLE, .value = 10.0 } },
58 { 117440515, { .type = ThemeConstantsType::INT, .value = -10 } },
59 { 117440516, { .type = ThemeConstantsType::STRING, .value = "sans-serif" } },
67 { "sys.integer.test_int", { .type = ThemeConstantsType::INT, .value = -10 } },
89 if (valueWrapper.type != ThemeConstantsType::STATE_RESOURCE) { in Initialize()
104 valueWrapper.type = ThemeConstantsType::STATE_RESOURCE; in Initialize()
110 if (valueWrapper.type != ThemeConstantsType::PATTERN) { in Initialize()
[all …]
H A Dmock_theme_constants.cpp24 const ResValueWrapper ERROR_VALUE = { .type = ThemeConstantsType::ERROR };
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dresource_theme_style.cpp160 attributes_[attrName] = { .type = ThemeConstantsType::STRING, .value = attrValue }; in ParseContent()
165 …attributes_[attrName] = { .type = ThemeConstantsType::COLOR, .value = Color::FromString(attrValue)… in ParseContent()
169 … attributes_[attrName] = { .type = ThemeConstantsType::REFERENCE_ATTR, .value = attrValue }; in ParseContent()
178 attributes_[attrName] = { .type = ThemeConstantsType::DIMENSION, in ParseContent()
181 … attributes_[attrName] = { .type = ThemeConstantsType::INT, .value = std::atoi(number.c_str()) }; in ParseContent()
183 …attributes_[attrName] = { .type = ThemeConstantsType::DOUBLE, .value = std::atof(number.c_str()) }; in ParseContent()
198 attributes_[patternName] = { .type = ThemeConstantsType::PATTERN, in OnParseStyle()
229 attributes_[attrName] = { .type = ThemeConstantsType::STRING, .value = mediaPath }; in OnParseResourceMedia()
H A Dresource_adapter_impl_v2.cpp261 ResValueWrapper value = { .type = ThemeConstantsType::PATTERN, .value = style }; in PreloadTheme()
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/osal/
H A Dresource_adapter_impl.cpp175 … stateResource->SetStateValue(state, { .type = ThemeConstantsType::COLOR, .value = stateColor }); in ParseStateResource()
215 …attributes_[attrName] = { .type = ThemeConstantsType::COLOR, .value = Color(attrValue->GetColorVal… in ParseContent()
218 attributes_[attrName] = { .type = ThemeConstantsType::STRING, .value = rawString }; in ParseContent()
226 attributes_[attrName] = { .type = ThemeConstantsType::PATTERN, in ParseContent()
239 … attributes_[attrName] = { .type = ThemeConstantsType::STATE_RESOURCE, .value = stateResource }; in ParseContent()
241 … attributes_[attrName] = { .type = ThemeConstantsType::REFERENCE_ATTR, .value = rawString }; in ParseContent()
247 … attributes_[attrName] = { .type = ThemeConstantsType::DOUBLE, .value = doubleValue }; in ParseContent()
249 attributes_[attrName] = { .type = ThemeConstantsType::DIMENSION, in ParseContent()
322 … theme->SetAttr(THEME_ATTR_BG_COLOR, { .type = ThemeConstantsType::COLOR, .value = bgColor }); in GetTheme()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/
H A Dtest_ng.cpp119 resValueWrapper.type = ThemeConstantsType::THEME; in CreateThemeConstants()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/
H A Dtext_field_pattern_testtwo.cpp276 ResValueWrapper handleOuterDiameter { .type = ThemeConstantsType::DIMENSION, .value = 100 };
279 ResValueWrapper resValueWrapper { .type = ThemeConstantsType::THEME, .value = themeStyle };
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/event/
H A Ddrag_event_test_ng.cpp1831 resValueWrapper.type = ThemeConstantsType::THEME;