mono calculator: fix font size of main screen
Apparently setting editable=false resets the font size. While we investigate that, this is a workaround.
This commit is contained in:
parent
5f1be675ee
commit
f835d45622
|
@ -170,17 +170,17 @@ public class Calculator : Efl.Csharp.Application
|
||||||
// Create a big Efl.Ui.Text screen to display the current input
|
// Create a big Efl.Ui.Text screen to display the current input
|
||||||
screen = new Efl.Ui.Textbox(table);
|
screen = new Efl.Ui.Textbox(table);
|
||||||
screen.Text = "0";
|
screen.Text = "0";
|
||||||
screen.FontFamily = "Sans";
|
|
||||||
screen.FontSize = 48;
|
|
||||||
screen.Multiline = false;
|
screen.Multiline = false;
|
||||||
screen.Editable = false;
|
screen.Editable = false;
|
||||||
screen.SelectionAllowed = false;
|
screen.SelectionAllowed = false;
|
||||||
table.PackTable(screen, 0, 0, 4, 1);
|
|
||||||
screen.TextHorizontalAlign = 0.9;
|
screen.TextHorizontalAlign = 0.9;
|
||||||
screen.TextVerticalAlign = 0.5;
|
screen.TextVerticalAlign = 0.5;
|
||||||
screen.TextEffectType = Efl.TextStyleEffectType.Glow;
|
screen.TextEffectType = Efl.TextStyleEffectType.Glow;
|
||||||
screen.TextGlowColor = (128, 128, 128, 128);
|
screen.TextGlowColor = (128, 128, 128, 128);
|
||||||
|
screen.FontFamily = "Sans";
|
||||||
|
screen.FontSize = 48;
|
||||||
screen.ChangedEvent += ScreenChangedCb;
|
screen.ChangedEvent += ScreenChangedCb;
|
||||||
|
table.PackTable(screen, 0, 0, 4, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue