summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-12-17 16:34:34 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-12-17 16:34:34 +0100
commitbe0ade4350766cfbe76ac9b0ae863b471bd011ec (patch)
treef044b179e7aba86c3aa42030f7a42956566b4774
parent6f183d62c2eb57b0f257bb6910ce17d782b2273b (diff)
Adapt to latest Textbox changes
-rw-r--r--apps/csharp/calculator/src/calculator.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/csharp/calculator/src/calculator.cs b/apps/csharp/calculator/src/calculator.cs
index a9fa0463..f60f9bdc 100644
--- a/apps/csharp/calculator/src/calculator.cs
+++ b/apps/csharp/calculator/src/calculator.cs
@@ -125,8 +125,8 @@ public class Calculator : Efl.Csharp.Application
125 // Therefore we create a more complex Efl.Ui.Text object and use it as content for the button. 125 // Therefore we create a more complex Efl.Ui.Text object and use it as content for the button.
126 var label = new Efl.Ui.Textbox(table); 126 var label = new Efl.Ui.Textbox(table);
127 label.Editable = false; 127 label.Editable = false;
128 label.HorizontalAlign = 0.5; 128 label.TextHorizontalAlign = 0.5;
129 label.VerticalAlign = 0.5; 129 label.TextVerticalAlign = 0.5;
130 label.Color = (r, g, b, 255); 130 label.Color = (r, g, b, 255);
131 label.SetText(text); 131 label.SetText(text);
132 label.FontFamily = "Sans"; 132 label.FontFamily = "Sans";
@@ -176,8 +176,8 @@ public class Calculator : Efl.Csharp.Application
176 screen.Editable = false; 176 screen.Editable = false;
177 screen.SelectionAllowed = false; 177 screen.SelectionAllowed = false;
178 table.PackTable(screen, 0, 0, 4, 1); 178 table.PackTable(screen, 0, 0, 4, 1);
179 screen.HorizontalAlign = 0.9; 179 screen.TextHorizontalAlign = 0.9;
180 screen.VerticalAlign = 0.5; 180 screen.TextVerticalAlign = 0.5;
181 screen.EffectType = Efl.TextStyleEffectType.Glow; 181 screen.EffectType = Efl.TextStyleEffectType.Glow;
182 screen.GlowColor = (128, 128, 128, 128); 182 screen.GlowColor = (128, 128, 128, 128);
183 screen.ChangedEvent += ScreenChangedCb; 183 screen.ChangedEvent += ScreenChangedCb;