make dictionary title, toggle option and button text bold

pull/486/head
chrox 10 years ago
parent 24ed02bbee
commit 98f1c90d87

@ -34,6 +34,7 @@ function Button:init()
text = self.text,
bgcolor = 0.0,
fgcolor = self.enabled and 1.0 or 0.5,
bold = true,
face = Font:getFace(self.text_font_face, self.text_font_size)
}
else

@ -85,6 +85,7 @@ function DictQuickLookup:update()
TextWidget:new{
text = self.dictionary,
face = self.title_face,
bold = true,
width = self.width - self.button_padding,
}
}
@ -96,6 +97,7 @@ function DictQuickLookup:update()
TextBoxWidget:new{
text = self.lookupword,
face = self.word_face,
bold = true,
width = self.width,
},
}

@ -14,12 +14,13 @@ local DEBUG = require("dbg")
local _ = require("gettext")
local ToggleLabel = TextWidget:new{
bold = true,
bgcolor = 0,
fgcolor = 1,
}
function ToggleLabel:paintTo(bb, x, y)
RenderText:renderUtf8Text(bb, x, y+self._height*0.75, self.face, self.text, true, self.bgcolor, self.fgcolor)
RenderText:renderUtf8Text(bb, x, y+self._height*0.75, self.face, self.text, true, self.bold, self.bgcolor, self.fgcolor)
end
local ToggleSwitch = InputContainer:new{

Loading…
Cancel
Save