add night mode option that inverts screen color

This commit is contained in:
chrox
2014-06-08 14:06:04 +08:00
parent 0ea5ce1afd
commit b92860c22a
3 changed files with 22 additions and 4 deletions

View File

@@ -173,10 +173,10 @@ end
local last_file = G_reader_settings:readSetting("lastfile")
-- load last opened file
local open_last = G_reader_settings:readSetting("open_last")
--@TODO we can read version here, refer to commit in master tree: (houqp)
--87712cf0e43fed624f8a9f610be42b1fe174b9fe
-- night mode
if G_reader_settings:readSetting("night_mode") then
Screen.bb:invert()
end
do
local powerd = Device:getPowerDevice()