Skip to content

Commit

Permalink
v4.2.0 - Preview-4.3
Browse files Browse the repository at this point in the history
Refined calendar symbols
  • Loading branch information
FRACerqueira authored Oct 25, 2023
2 parents 623fbfe + f8c03d3 commit d25816d
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions Src/Controls/Calendar/CalendarControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1576,39 +1576,28 @@ private void WriteDay(ScreenBuffer screenBuffer, DateTime auxdate)
}
else if (auxdate == _currentdate)
{
if (IsHighlight(auxdate))
if (IsHighlight(auxdate) && strnote != "*")
{
if (strnote == "*")
{
screenBuffer.AddBuffer($"#{strnote}{cday}#", _options.StyleContent(StyleControls.Selected));
}
else
{
screenBuffer.AddBuffer($" #{cday}#", _options.StyleContent(StyleControls.Selected));
}
strnote = "#";
}
if (strnote.Trim().Length != 0)
{
screenBuffer.AddBuffer($"<{strnote}{cday}>", _options.StyleContent(StyleControls.Selected));
}
else
{
if (strnote == "*")
{
screenBuffer.AddBuffer($"<{strnote}{cday}>", _options.StyleContent(StyleControls.Selected));
}
else
{
screenBuffer.AddBuffer($" <{cday}>", _options.StyleContent(StyleControls.Selected));
}
screenBuffer.AddBuffer($" <{cday}>", _options.StyleContent(StyleControls.Selected));
}
}
else
{
var stl = StyleControls.CalendarDay;
if (IsHighlight(auxdate))
{
screenBuffer.AddBuffer($" {strnote}{cday}#", _options.StyleContent(StyleControls.CalendarHighlight));
}
else
{
screenBuffer.AddBuffer($" {strnote}{cday} ", _options.StyleContent(StyleControls.CalendarDay));
strnote = "#";
stl = StyleControls.CalendarHighlight;
}
screenBuffer.AddBuffer($" {strnote}{cday} ", _options.StyleContent(stl));
}
}

Expand Down

0 comments on commit d25816d

Please sign in to comment.