Skip to content

Commit

Permalink
GUI: Let edit text widgets use a non-bold (aka normal) font.
Browse files Browse the repository at this point in the history
This change was done per request of _sev.
  • Loading branch information
Johannes Schickel committed Feb 25, 2012
1 parent 535a55e commit 73df649
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
Binary file modified gui/themes/scummclassic.zip
Binary file not shown.
Binary file modified gui/themes/scummmodern.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion gui/themes/scummmodern/scummmodern_gfx.stx
Expand Up @@ -125,7 +125,7 @@
/>
<font id = 'text_normal'
file = 'helvb12.bdf'
scalable_file = 'FreeSansBold.ttf'
scalable_file = 'FreeSans.ttf'
/>
<font resolution = 'y<400'
id = 'text_normal'
Expand Down
2 changes: 2 additions & 0 deletions gui/widgets/edittext.cpp
Expand Up @@ -33,6 +33,7 @@ EditTextWidget::EditTextWidget(GuiObject *boss, int x, int y, int w, int h, cons
_finishCmd = finishCmd;

setEditString(text);
setFontStyle(ThemeEngine::kFontStyleNormal);
}

EditTextWidget::EditTextWidget(GuiObject *boss, const String &name, const String &text, const char *tooltip, uint32 cmd, uint32 finishCmd)
Expand All @@ -42,6 +43,7 @@ EditTextWidget::EditTextWidget(GuiObject *boss, const String &name, const String
_finishCmd = finishCmd;

setEditString(text);
setFontStyle(ThemeEngine::kFontStyleNormal);
}

void EditTextWidget::setEditString(const String &str) {
Expand Down

0 comments on commit 73df649

Please sign in to comment.