better HDPI support

This commit is contained in:
Vadim Lopatin 2015-03-23 14:16:26 +03:00
parent 2c80757880
commit 11d4b33051
2 changed files with 3 additions and 3 deletions

View File

@ -1102,7 +1102,7 @@ class GridWidgetBase : ScrollWidgetBase {
super(ID, hscrollbarMode, vscrollbarMode);
_headerCols = 1;
_headerRows = 1;
_defRowHeight = 20;
_defRowHeight = pointsToPixels(16);
_defColumnWidth = 100;
_showColHeaders = true;
_showRowHeaders = true;

View File

@ -28,9 +28,9 @@ class SourceEdit : EditBox {
fontFace = "Consolas,DejaVuSansMono,Lucida Sans Typewriter,Courier New,Lucida Console";
//fontFace = "Consolas,Lucida Console,Courier New";
fontFamily = FontFamily.MonoSpace;
fontSize = 14;
fontSize = makePointSize(10);
layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT);
minFontSize(10).maxFontSize(75); // allow font zoom with Ctrl + MouseWheel
minFontSize(9).maxFontSize(75); // allow font zoom with Ctrl + MouseWheel
showModificationMarks = true;
_showLineNumbers = true;