mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Add color highlight menu (#11044)
This commit is contained in:
@@ -67,11 +67,14 @@ function CheckButton:initCheckButton(checked)
|
||||
show_parent = self.show_parent or self,
|
||||
}
|
||||
end
|
||||
local fgcolor = self.fgcolor or Blitbuffer.COLOR_BLACK
|
||||
self._textwidget = TextBoxWidget:new{
|
||||
text = self.text,
|
||||
face = self.face,
|
||||
width = (self.width or self.parent:getAddedWidgetAvailableWidth()) - self._checkmark.dimen.w,
|
||||
fgcolor = self.enabled and Blitbuffer.COLOR_BLACK or Blitbuffer.COLOR_DARK_GRAY,
|
||||
bold = self.bold,
|
||||
fgcolor = self.enabled and fgcolor or Blitbuffer.COLOR_DARK_GRAY,
|
||||
bgcolor = self.bgcolor,
|
||||
}
|
||||
local textbox_shift = math.max(0, self._checkmark.baseline - self._textwidget:getBaseline())
|
||||
self._verticalgroup = VerticalGroup:new{
|
||||
|
||||
Reference in New Issue
Block a user