xartigas pushed a commit to branch master. http://git.enlightenment.org/tools/examples.git/commit/?id=f835d4562212c3eba9025a74845128d451fffffc
commit f835d4562212c3eba9025a74845128d451fffffc Author: Xavi Artigas <[email protected]> Date: Thu Feb 20 18:57:35 2020 +0100 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); } } --
