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" /> +