Adapt to latest Textbox changes
This commit is contained in:
parent
6f183d62c2
commit
be0ade4350
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue