Home
last modified time | relevance | path

Searched refs:calendarTheme (Results 1 - 19 of 19) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/
H A Dcalendar_picker_layout_property.h55 RefPtr<CalendarTheme> calendarTheme = pipeline->GetTheme<CalendarTheme>(); variable
56 CHECK_NULL_VOID(calendarTheme); variable
82 font->Put("size", GetFontSize().value_or(calendarTheme->GetEntryFontSize()).ToString().c_str());
86 textStyle->Put("color", GetColor().value_or(calendarTheme->GetEntryFontColor()).ColorToString().c_str());
H A Dcalendar_dialog_pattern.h74 RefPtr<CalendarTheme> calendarTheme = pipeline->GetTheme<CalendarTheme>(); variable
76 CHECK_NULL_RETURN(calendarTheme, FocusPattern());
80 auto focusPaintWidth = calendarTheme->GetCalendarDayKeyFocusedPenWidth();
H A Dcalendar_picker_model_ng.cpp227 RefPtr<CalendarTheme> calendarTheme = pipeline->GetTheme<CalendarTheme>(); in CreateDateTextNode() local
228 CHECK_NULL_RETURN(calendarTheme, nullptr); in CreateDateTextNode()
236 textLayoutProperty->UpdateTextColor(calendarTheme->GetEntryFontColor()); in CreateDateTextNode()
237 textLayoutProperty->UpdateFontSize(calendarTheme->GetEntryFontSize()); in CreateDateTextNode()
295 RefPtr<CalendarTheme> calendarTheme = pipeline->GetTheme<CalendarTheme>(); in SetTextStyle() local
296 CHECK_NULL_VOID(calendarTheme); in SetTextStyle()
300 ACE_UPDATE_LAYOUT_PROPERTY(CalendarPickerLayoutProperty, FontSize, calendarTheme->GetEntryFontSize()); in SetTextStyle()
303 CalendarPickerLayoutProperty, Color, textStyle.textColor.value_or(calendarTheme->GetEntryFontColor())); in SetTextStyle()
345 RefPtr<CalendarTheme> calendarTheme = pipeline->GetTheme<CalendarTheme>(); in SetTextStyle() local
346 CHECK_NULL_VOID(calendarTheme); in SetTextStyle()
453 auto calendarTheme = GetCalendarTheme(); GetTextStyle() local
[all...]
H A Dcalendar_dialog_view.cpp513 auto calendarTheme = pipeline->GetTheme<CalendarTheme>(); in CreateButtonNode() local
514 CHECK_NULL_RETURN(calendarTheme, nullptr); in CreateButtonNode()
528 if (fontSizeScale < calendarTheme->GetCalendarPickerLargeScale() || CheckOrientationChange()) { in CreateButtonNode()
531 fontSizeScale = fontSizeScale > calendarTheme->GetCalendarPickerLargeScale() in CreateButtonNode()
532 ? calendarTheme->GetCalendarPickerLargeScale() in CreateButtonNode()
548 calendarTheme->GetIsButtonTransparent() ? Color::TRANSPARENT : calendarTheme->GetDialogButtonBackgroundColor(); in CreateButtonNode()
564 auto calendarTheme = pipeline->GetTheme<CalendarTheme>(); in UpdateButtonLayoutProperty() local
592 if (fontSizeScale >= calendarTheme->GetCalendarPickerLargerScale() && in UpdateButtonLayoutProperty()
597 CalcSize(width, CalcLength(calendarTheme in UpdateButtonLayoutProperty()
976 UpdateIdealSize(const RefPtr<CalendarTheme>& calendarTheme, const RefPtr<LinearLayoutProperty>& layoutProps, const RefPtr<LayoutProperty>& calendarLayoutProperty) UpdateIdealSize() argument
1040 auto calendarTheme = pipelineContext->GetTheme<CalendarTheme>(); UpdateButtons() local
[all...]
H A Dcalendar_dialog_view.h35 static void UpdateIdealSize(const RefPtr<CalendarTheme>& calendarTheme,
H A Dcalendar_dialog_pattern.cpp227 auto calendarTheme = pipeline->GetTheme<CalendarTheme>(); in UpdateOptionsButtonColor() local
228 CHECK_NULL_VOID(calendarTheme); in UpdateOptionsButtonColor()
243 auto defaultBGColor = calendarTheme->GetIsButtonTransparent() in UpdateOptionsButtonColor()
245 : calendarTheme->GetDialogButtonBackgroundColor(); in UpdateOptionsButtonColor()
1364 auto calendarTheme = pipelineContext->GetTheme<CalendarTheme>(); in UpdateCaretInfoToController() local
1365 CHECK_NULL_VOID(calendarTheme); in UpdateCaretInfoToController()
1370 CalendarDialogView::UpdateIdealSize(calendarTheme, layoutProps, calendarLayoutProperty); in UpdateCaretInfoToController()
H A Dcalendar_picker_pattern.cpp378 RefPtr<CalendarTheme> calendarTheme = pipeline->GetTheme<CalendarTheme>(); in ResetTextStateByNode() local
379 CHECK_NULL_VOID(calendarTheme); in ResetTextStateByNode()
381 layoutProperty->GetColor().value_or(calendarTheme->GetEntryFontColor())); in ResetTextStateByNode()
/foundation/arkui/ace_engine/frameworks/core/components/calendar/
H A Dcalendar_component_v2.h47 void SetCalendarTheme(const RefPtr<CalendarTheme>& calendarTheme) in SetCalendarTheme() argument
49 calendarTheme_ = calendarTheme; in SetCalendarTheme()
H A Dcalendar_component.cpp372 auto calendarTheme = theme_->GetCardCalendarTheme(); in BuildCardCalendarTitle() local
373 style.SetFontSize(calendarTheme.titleFontSize); in BuildCardCalendarTitle()
374 style.SetTextColor(calendarTheme.titleTextColor); in BuildCardCalendarTitle()
389 button->SetHeight(calendarTheme.buttonHeight); in BuildCardCalendarTitle()
392 button->SetClickedColor(calendarTheme.clickEffectColor); in BuildCardCalendarTitle()
455 auto calendarTheme = theme_->GetCardCalendarTheme(); in InitCardButton() local
456 Arrow->SetWidth(calendarTheme.arrowWidth); in InitCardButton()
457 Arrow->SetHeight(calendarTheme.arrowHeight); in InitCardButton()
462 button->SetClickedColor(calendarTheme.clickEffectColor); in InitCardButton()
463 button->SetWidth(calendarTheme in InitCardButton()
[all...]
H A Drender_calendar.cpp406 if (attr.calendarTheme) {
408 context->IsJsCard() ? attr.calendarTheme->GetCardCalendarTheme() : attr.calendarTheme->GetCalendarTheme();
H A Dcalendar_component.h504 void SetCalendarTheme(const RefPtr<CalendarTheme>& calendarTheme) in SetCalendarTheme() argument
506 calendarTheme_ = calendarTheme; in SetCalendarTheme()
H A Drosen_render_calendar.cpp121 auto calendarTheme = calendarMonth->GetCalendarTheme(); in Update() local
124 calendarTheme_ = cardCalendar_ ? calendarTheme->GetCardCalendarTheme() : calendarTheme->GetCalendarTheme(); in Update()
H A Dcalendar_data_adapter.h189 RefPtr<CalendarTheme> calendarTheme; member
H A Dcalendar_element.cpp246 attr.calendarTheme = calendar->GetCalendarTheme(); in UpdateAttr()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dcalendar_picker_modifier.cpp121 RefPtr<CalendarTheme> calendarTheme = pipeline->GetTheme<CalendarTheme>(); in ResetTextStyle() local
122 CHECK_NULL_VOID(calendarTheme); in ResetTextStyle()
124 textStyle.fontSize = calendarTheme->GetEntryFontSize(); in ResetTextStyle()
125 textStyle.textColor = calendarTheme->GetEntryFontColor(); in ResetTextStyle()
310 RefPtr<CalendarTheme> calendarTheme = pipeline->GetTheme<CalendarTheme>(); in ResetCalendarPickerBorder() local
311 CHECK_NULL_VOID(calendarTheme); in ResetCalendarPickerBorder()
312 ViewAbstract::SetBorderWidth(frameNode, calendarTheme->GetEntryBorderWidth()); in ResetCalendarPickerBorder()
313 ViewAbstract::SetBorderColor(frameNode, calendarTheme->GetEntryBorderColor()); in ResetCalendarPickerBorder()
314 ViewAbstract::SetBorderRadius(frameNode, calendarTheme->GetEntryBorderRadius()); in ResetCalendarPickerBorder()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_calendar_picker_bridge.cpp57 RefPtr<CalendarTheme> calendarTheme = pipeline->GetTheme<CalendarTheme>(); in SetTextStyle() local
58 CHECK_NULL_RETURN(calendarTheme, panda::NativePointerRef::New(vm, nullptr)); in SetTextStyle()
64 Color textColor = calendarTheme->GetEntryFontColor(); in SetTextStyle()
203 RefPtr<CalendarTheme> calendarTheme = pipeline->GetTheme<CalendarTheme>(); in SetCalendarPickerBorder() local
204 CHECK_NULL_RETURN(calendarTheme, panda::NativePointerRef::New(vm, nullptr)); in SetCalendarPickerBorder()
206 nativeNode, calendarTheme->GetEntryBorderColor().GetValue()); in SetCalendarPickerBorder()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_calendar_picker.cpp278 RefPtr<CalendarTheme> calendarTheme = pipeline->GetTheme<CalendarTheme>(); in SetTextStyle() local
279 CHECK_NULL_VOID(calendarTheme); in SetTextStyle()
281 textStyle.fontSize = calendarTheme->GetEntryFontSize(); in SetTextStyle()
282 textStyle.textColor = calendarTheme->GetEntryFontColor(); in SetTextStyle()
432 RefPtr<CalendarTheme> calendarTheme = GetTheme<CalendarTheme>(); in Create() local
433 CHECK_NULL_VOID(calendarTheme); in Create()
438 dayRadius = calendarTheme->GetCalendarDayRadius(); in Create()
453 dayRadius = calendarTheme->GetCalendarDayRadius(); in Create()
730 auto calendarTheme = pipelineContext->GetTheme<CalendarTheme>(); in CalendarPickerDialogShow() local
774 dialogRadius.SetRadius(calendarTheme in CalendarPickerDialogShow()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_calendar.cpp369 auto& calendarTheme = context->IsJsCard() ? theme->GetCardCalendarTheme() : theme->GetCalendarTheme(); in SetSpecializedStyle() local
370 calendarStyleOperators[operatorIter].value(style.second, calendarTheme, *this); in SetSpecializedStyle()
/foundation/arkui/ace_engine/test/unittest/core/pattern/calendar_picker/
H A Dcalendar_picker_test_ng.cpp3749 auto calendarTheme = AceType::MakeRefPtr<CalendarTheme>(); in HWTEST_F() local
3750 ASSERT_NE(calendarTheme, nullptr); in HWTEST_F()
3751 EXPECT_CALL(*themeManager, GetTheme(_)).WillRepeatedly(Return(calendarTheme)); in HWTEST_F()

Completed in 24 milliseconds