[Sticker Giveaway] Enter to win a 5 Stars Water Well Sticker!
This post contains content not supported on old Reddit. Click here to view the full post
This post contains content not supported on old Reddit. Click here to view the full post
Has anyone else noticed ads popping up randomly when they are browsing Reddit on Apollo Reborn v3.5.1? I can't seem to get it to consistently happen, but I've seen three different ads so far and not just on r/StartpageSearch. I also tried downgrading to v3.5.0 and it still randomly happens.
This post contains content not supported on old Reddit. Click here to view the full post
This post contains content not supported on old Reddit. Click here to view the full post
This post contains content not supported on old Reddit. Click here to view the full post
This post contains content not supported on old Reddit. Click here to view the full post
This post contains content not supported on old Reddit. Click here to view the full post
This post contains content not supported on old Reddit. Click here to view the full post
This post contains content not supported on old Reddit. Click here to view the full post
Hello everyone!
I noticed that even when Night Mode is on, KOReader shows the sleep screen without night mode applied, so transparent images end up with a bright background. I put together a small patch to fix that and figured I’d share it here. I’ve tested it on the emulator and on my Kobo Clara BW and it seems to work well.
If you want to test it out,
You can download the code here:
https://pastebin.com/TrLP60gK
Or copy and paste the code below into a text editor and save it as 2-keep-nightmode.lua then add it to your koreader/patches folder.
local Screensaver = require("ui/screensaver")
local ScreenSaverWidget = require("ui/widget/screensaverwidget")
local Device = require("device")
local Screen = Device.screen
local orig_show = Screensaver.show
Screensaver.show = function(self, ...)
if Screen.night_mode then
local snapshot = Screen.bb:copy()
snapshot:invertRect(0, 0, snapshot:getWidth(), snapshot:getHeight())
local orig_init = ScreenSaverWidget.init
ScreenSaverWidget.init = function(widget, ...)
ScreenSaverWidget.init = orig_init
local result = orig_init(widget, ...)
local orig_paintTo = widget.paintTo
widget.paintTo = function(w, bb, x, y)
bb:blitFullFrom(snapshot)
snapshot:free()
snapshot = nil
w.paintTo = orig_paintTo
return orig_paintTo(w, bb, x, y)
end
return result
end
end
return orig_show(self, ...)
end
This post contains content not supported on old Reddit. Click here to view the full post
This post contains content not supported on old Reddit. Click here to view the full post