mono calculator: fix font size of main screen

Apparently setting editable=false resets the font size.
While we investigate that, this is a workaround.
This commit is contained in:
Xavi Artigas 2020-02-20 18:57:35 +01:00
parent 5f1be675ee
commit f835d45622
1 changed files with 3 additions and 3 deletions

View File

@ -170,17 +170,17 @@ public class Calculator : Efl.Csharp.Application
// Create a big Efl.Ui.Text screen to display the current input
screen = new Efl.Ui.Textbox(table);
screen.Text = "0";
screen.FontFamily = "Sans";
screen.FontSize = 48;
screen.Multiline = false;
screen.Editable = false;
screen.SelectionAllowed = false;
table.PackTable(screen, 0, 0, 4, 1);
screen.TextHorizontalAlign = 0.9;
screen.TextVerticalAlign = 0.5;
screen.TextEffectType = Efl.TextStyleEffectType.Glow;
screen.TextGlowColor = (128, 128, 128, 128);
screen.FontFamily = "Sans";
screen.FontSize = 48;
screen.ChangedEvent += ScreenChangedCb;
table.PackTable(screen, 0, 0, 4, 1);
}
}