mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01: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:
@@ -174,7 +174,7 @@ function BookStatusWidget:genHeader(title)
|
||||
local header_title = TextWidget:new{
|
||||
text = title,
|
||||
face = self.medium_font_face,
|
||||
fgcolor = Blitbuffer.gray(0.4),
|
||||
fgcolor = Blitbuffer.COLOR_WEB_GRAY,
|
||||
}
|
||||
|
||||
local padding_span = HorizontalSpan:new{ width = self.padding }
|
||||
@@ -182,7 +182,7 @@ function BookStatusWidget:genHeader(title)
|
||||
local line_container = LeftContainer:new{
|
||||
dimen = Geom:new{ w = line_width, h = height },
|
||||
LineWidget:new{
|
||||
background = Blitbuffer.gray(0.2),
|
||||
background = Blitbuffer.COLOR_LIGHT_GRAY,
|
||||
dimen = Geom:new{
|
||||
w = line_width,
|
||||
h = Size.line.thick,
|
||||
|
||||
Reference in New Issue
Block a user