|
|
|
@ -77,10 +77,6 @@ object ReadBookConfig { |
|
|
|
|
val dm = resources.displayMetrics |
|
|
|
|
val width = dm.widthPixels |
|
|
|
|
val height = dm.heightPixels |
|
|
|
|
if (AppConfig.isEInkMode && !AppConfig.isNightTheme) { |
|
|
|
|
bg = ColorDrawable(Color.WHITE) |
|
|
|
|
bgMeanColor = Color.WHITE |
|
|
|
|
} else { |
|
|
|
|
bg = durConfig.bgDrawable(width, height).apply { |
|
|
|
|
if (this is BitmapDrawable) { |
|
|
|
|
bgMeanColor = BitmapUtils.getMeanColor(bitmap) |
|
|
|
@ -88,7 +84,6 @@ object ReadBookConfig { |
|
|
|
|
bgMeanColor = color |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
isScroll = pageAnim == 3 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|