-
I am trying to make a plugin that will default the background of a page to a dark mode page. This is me touching lua for the first time so i am not sure how to go about the The current I have right now in function initUi()
app.registerUi({["menu"] = "Dark Mode", ["callback"] = "darkMode", ["accelerator"] = "<Control><Shift>b"});
end
function darkMode()
app.changeCurrentPageBackground(":image");
end Now i have an image, |
Beta Was this translation helpful? Give feedback.
Answered by
rolandlo
Apr 12, 2024
Replies: 1 comment
-
It looks to me like the API doesn't support that yet. Basically we need page->setBackgroundImage(newImg);
page->setBackgroundType(PageType(PageTypeFormat::Image)); and we only get the second step via |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Shogun05
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks to me like the API doesn't support that yet. Basically we need
and we only get the second step via
app.changecurrentPageBackground(":image")
.