From 39e73e16d2abe4fa41792f79f2d43c7310066a3e Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Fri, 15 Jan 2016 09:57:39 +0300 Subject: [PATCH] fix StringGrid font: for DlangIDE issue 87 --- src/dlangui/widgets/grid.d | 2 +- src/dlangui/widgets/styles.d | 2 ++ views/res/theme_default.xml | 9 +++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/dlangui/widgets/grid.d b/src/dlangui/widgets/grid.d index 46fe82d3..ef6033e6 100644 --- a/src/dlangui/widgets/grid.d +++ b/src/dlangui/widgets/grid.d @@ -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(); } diff --git a/src/dlangui/widgets/styles.d b/src/dlangui/widgets/styles.d index 0fd2fcbc..129a8b52 100644 --- a/src/dlangui/widgets/styles.d +++ b/src/dlangui/widgets/styles.d @@ -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"; diff --git a/views/res/theme_default.xml b/views/res/theme_default.xml index 58f23dff..a07ad124 100644 --- a/views/res/theme_default.xml +++ b/views/res/theme_default.xml @@ -296,6 +296,15 @@ layoutWidth="FILL_PARENT" layoutHeight="FILL_PARENT" /> +