Created
May 3, 2024 07:59
-
-
Save equwal/6fddf7d93fafb1d4ffbec1f9a5558b32 to your computer and use it in GitHub Desktop.
How can I modify arrow of page overlap function? #9181
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Screen = require("device").screen | |
local IconWidget = require("ui/widget/iconwidget") | |
local ReaderView = require("apps/reader/modules/readerview") | |
local addWidgets_orig = ReaderView.addWidgets | |
ReaderView.addWidgets = function(self) | |
-- Run original code | |
addWidgets_orig(self) | |
local arrow_size = Screen:scaleBySize(16 * 2) | |
self.arrow = IconWidget:new{ | |
icon = "control.expand.32", | |
width = arrow_size, | |
height = arrow_size, | |
alpha = true, -- or false, if you don't want transparency with your big solid black icon | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment