From 7b78d70c740e1f6a42eeb6f1578eddf381f1d188 Mon Sep 17 00:00:00 2001 From: chrox Date: Sun, 5 Oct 2014 14:00:38 +0800 Subject: [PATCH] fix fgcolor of inputbox is always 0.0 --- frontend/ui/widget/inputtext.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/ui/widget/inputtext.lua b/frontend/ui/widget/inputtext.lua index 28d185d4e..cc1d93e4f 100644 --- a/frontend/ui/widget/inputtext.lua +++ b/frontend/ui/widget/inputtext.lua @@ -51,7 +51,7 @@ end function InputText:initTextBox(text) self.text = text self:initCharlist(text) - local fgcolor = 0.0, self.text == "" and 0.5 or 1.0 + local fgcolor = self.text == "" and 0.5 or 1.0 local text_widget = nil local show_text = self.text