Adapt to latest Textbox changes

This commit is contained in:
Xavi Artigas 2019-12-17 16:34:34 +01:00
parent 6f183d62c2
commit be0ade4350
1 changed files with 4 additions and 4 deletions

View File

@ -125,8 +125,8 @@ public class Calculator : Efl.Csharp.Application
// Therefore we create a more complex Efl.Ui.Text object and use it as content for the button.
var label = new Efl.Ui.Textbox(table);
label.Editable = false;
label.HorizontalAlign = 0.5;
label.VerticalAlign = 0.5;
label.TextHorizontalAlign = 0.5;
label.TextVerticalAlign = 0.5;
label.Color = (r, g, b, 255);
label.SetText(text);
label.FontFamily = "Sans";
@ -176,8 +176,8 @@ public class Calculator : Efl.Csharp.Application
screen.Editable = false;
screen.SelectionAllowed = false;
table.PackTable(screen, 0, 0, 4, 1);
screen.HorizontalAlign = 0.9;
screen.VerticalAlign = 0.5;
screen.TextHorizontalAlign = 0.9;
screen.TextVerticalAlign = 0.5;
screen.EffectType = Efl.TextStyleEffectType.Glow;
screen.GlowColor = (128, 128, 128, 128);
screen.ChangedEvent += ScreenChangedCb;