fix StringGrid font: for DlangIDE issue 87

This commit is contained in:
Vadim Lopatin 2016-01-15 09:57:39 +03:00
parent 087baad535
commit 39e73e16d2
3 changed files with 12 additions and 1 deletions
src/dlangui/widgets
views/res

View File

@ -1242,7 +1242,7 @@ class StringGridWidget : StringGridWidgetBase {
/// create with ID parameter
this(string ID) {
super(ID);
styleId = STYLE_EDIT_BOX;
styleId = STYLE_STRING_GRID;
onThemeChanged();
}

View File

@ -107,6 +107,8 @@ immutable string STYLE_LIST_ITEM = "LIST_ITEM";
immutable string STYLE_EDIT_LINE = "EDIT_LINE";
/// standard style id for EditBox
immutable string STYLE_EDIT_BOX = "EDIT_BOX";
/// standard style id for StringGrid
immutable string STYLE_STRING_GRID = "STRING_GRID";
/// standard style id for background similar to transparent button
immutable string STYLE_TRANSPARENT_BUTTON_BACKGROUND = "TRANSPARENT_BUTTON_BACKGROUND";

View File

@ -296,6 +296,15 @@
layoutWidth="FILL_PARENT"
layoutHeight="FILL_PARENT"
/>
<style id="STRING_GRID"
backgroundImageId="editbox_background"
padding="2,2,2,2"
margins="2,2,2,2"
minWidth="100"
minHeight="60"
layoutWidth="FILL_PARENT"
layoutHeight="FILL_PARENT"
/>
<style id="STATUS_LINE"
backgroundColor="#D0D0D0"
layoutWidth="FILL_PARENT"