Skip to content

Commit

Permalink
Consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
codecat committed Aug 5, 2017
1 parent 8fce166 commit e3a982e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/example.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
</vbox>

<hbox id="container" wrapping="true" anchor="fill" margin="5">
<text font="content/Roboto.ttf" width="400" height="26" />
<text font="content/Roboto.ttf" fontsize="20" width="100" height="26" />
</hbox>
</hbox>
2 changes: 1 addition & 1 deletion include/nimble/widgets/text.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace na
private:
s2::string m_text;
Font* m_font = nullptr;
float m_fontSize = 20.0f;
float m_fontSize = 16.0f;
glm::ivec2 m_size;
glm::vec4 m_color = glm::vec4(0, 0, 0, 1);
glm::vec4 m_colorText = glm::vec4(1, 1, 1, 1);
Expand Down
1 change: 1 addition & 0 deletions src/nimble/widgets/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ void na::TextWidget::Load(ContentNode &node)

SetColor(node.GetColor("color", false, m_color));
SetTextColor(node.GetColor("textcolor", false, m_colorText));
SetSelectionColor(node.GetColor("selectioncolor", false, m_colorSelection));

SetMultiline(node.GetBool("multiline", false, m_multiline));

Expand Down

0 comments on commit e3a982e

Please sign in to comment.