Fix Color rendering toggle not toggable (#4836)

Also refresh screen when toggling.
pull/4837/head
poire-z 5 years ago committed by GitHub
parent 54b0e85bdd
commit cfd562697f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -236,6 +236,7 @@ end
function ReaderPaging:onColorRenderingUpdate()
self.ui.document:updateColorRendering()
UIManager:setDirty(self.view.dialog, "partial")
end
--[[

@ -738,6 +738,7 @@ end
function ReaderRolling:onColorRenderingUpdate()
self.ui.document:updateColorRendering()
UIManager:setDirty(self.view.dialog, "partial")
end
--[[

@ -9,7 +9,7 @@ return {
enabled_func = Screen.isColorScreen,
checked_func = Screen.isColorEnabled,
callback = function()
local new_val = Screen.isColorEnabled()
local new_val = not Screen.isColorEnabled()
CanvasContext:setColorRenderingEnabled(new_val)
G_reader_settings:saveSetting("color_rendering", new_val)
UIManager:broadcastEvent(Event:new("ColorRenderingUpdate"))

Loading…
Cancel
Save