/// <summary>
 /// Apply specified style.
 /// </summary>
 /// <param name="styleCalendar">Style for the calendar.</param>
 /// <param name="style">Full style data.</param>
 public virtual void SetStyle(StyleCalendar styleCalendar, Style style)
 {
     if (Calendar != null)
     {
         DateChanged();
     }
 }
        /// <summary>
        /// Apply specified style.
        /// </summary>
        /// <param name="styleCalendar">Style for the calendar.</param>
        /// <param name="style">Full style data.</param>
        public override void SetStyle(StyleCalendar styleCalendar, Style style)
        {
            if (Day != null)
            {
                styleCalendar.DayOfWeekText.ApplyTo(Day.gameObject);
            }

            styleCalendar.DayOfWeekBackground.ApplyTo(GetComponent <Image>());
        }
        /// <summary>
        /// Apply specified style.
        /// </summary>
        /// <param name="styleCalendar">Style for the calendar.</param>
        /// <param name="style">Full style data.</param>
        public override void SetStyle(StyleCalendar styleCalendar, Style style)
        {
            styleCalendar.DayText.ApplyTo(Day);
            styleCalendar.DayBackground.ApplyTo(DayImage);

            DefaultDayBackground  = styleCalendar.DayBackground.Sprite;
            SelectedDayBackground = styleCalendar.SelectedDayBackground;

            SelectedDay = styleCalendar.ColorSelectedDay;
            Weekend     = styleCalendar.ColorWeekend;

            CurrentMonth = styleCalendar.ColorCurrentMonth;
            OtherMonth   = styleCalendar.ColorOtherMonth;

            base.SetStyle(styleCalendar, style);
        }
 /// <summary>
 /// Apply specified style.
 /// </summary>
 /// <param name="styleCalendar">Style for the calendar.</param>
 /// <param name="style">Full style data.</param>
 public override void SetStyle(StyleCalendar styleCalendar, Style style)
 {
     styleCalendar.DayOfWeekText.ApplyTo(Day);
     styleCalendar.DayOfWeekBackground.ApplyTo(GetComponent <Image>());
 }
Exemple #5
0
 /// <summary>
 /// Apply specified style.
 /// </summary>
 /// <param name="styleCalendar">Style for the calendar.</param>
 /// <param name="style">Full style data.</param>
 public virtual void SetStyle(StyleCalendar styleCalendar, Style style)
 {
 }