mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Various blitting related cleanups (#4789)
* Fix the "Enable debug logging" checkbox so that it properly disables "Enable verbose debug logging" when it gets disabled * Avoid asking ImageWidget for alpha-blending when it's not useful * Make ImageWidget's alpha-blending code-path double-check that alpha-blending actually is needed, and avoid it if possible * In the same vein, only do alpha-blending in textboxwidget when absolutely necessary * Prefer color constants over the gray() method, ensuring that they're part of the eInk palette Depends on https://github.com/koreader/koreader-base/pull/853 Fix #4774
This commit is contained in:
@@ -102,7 +102,7 @@ function TouchMenuItem:init()
|
||||
},
|
||||
TextWidget:new{
|
||||
text = text,
|
||||
fgcolor = item_enabled ~= false and Blitbuffer.COLOR_BLACK or Blitbuffer.COLOR_GREY,
|
||||
fgcolor = item_enabled ~= false and Blitbuffer.COLOR_BLACK or Blitbuffer.COLOR_DARK_GRAY,
|
||||
face = self.face,
|
||||
},
|
||||
},
|
||||
@@ -510,7 +510,7 @@ function TouchMenu:init()
|
||||
-- pad with 10 pixel to align with the up arrow in footer
|
||||
HorizontalSpan:new{width = Size.span.horizontal_default},
|
||||
LineWidget:new{
|
||||
background = Blitbuffer.gray(0.33),
|
||||
background = Blitbuffer.COLOR_GRAY,
|
||||
dimen = Geom:new{
|
||||
w = self.item_width - 2*Size.span.horizontal_default,
|
||||
h = Size.line.medium,
|
||||
|
||||
Reference in New Issue
Block a user