From f835d4562212c3eba9025a74845128d451fffffc Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Thu, 20 Feb 2020 18:57:35 +0100 Subject: [PATCH] mono calculator: fix font size of main screen Apparently setting editable=false resets the font size. While we investigate that, this is a workaround. --- apps/csharp/calculator/src/calculator.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/csharp/calculator/src/calculator.cs b/apps/csharp/calculator/src/calculator.cs index 704cb126..c25cf37b 100644 --- a/apps/csharp/calculator/src/calculator.cs +++ b/apps/csharp/calculator/src/calculator.cs @@ -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); } }