Skip to content

Commit

Permalink
header font size increased in case of nepali language
Browse files Browse the repository at this point in the history
  • Loading branch information
solo-developer committed Aug 18, 2021
1 parent 2b39fbe commit 08a8990
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Xam.Plugins.NepaliDatePicker/DatePickerPopupPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ private List<Label> Headers
{
if (_headers != null)
return _headers;

double fontSize = _dto.DisplayLanguage == Enums.Language.English ? Device.GetNamedSize(NamedSize.Micro, typeof(Label)) : 12;
_headers = new List<Label>();
for (var i = 0; i < 7; i++)
{
var firstLetterOfDay = _dto.DisplayLanguage == Enums.Language.English ? _englishDayFirstLetters[i] : _nepaliDayFirstLetters[i];
var label = new Label()
{
Text = $"{ firstLetterOfDay}",
FontSize = Device.GetNamedSize(NamedSize.Micro, typeof(Label)),
FontSize = fontSize,
VerticalOptions = LayoutOptions.Center,
HorizontalOptions = LayoutOptions.Center,
TextColor = Color.Black
Expand Down

0 comments on commit 08a8990

Please sign in to comment.