How to change the background image of the app with a variable via the app itself

1
Hi everyone!   So I am working with some custom CSS for an app, specifically adding a background image in the ‘body’ class which can then be applied to all the pages. I added the file in the public folder, and called this file in the ‘body’ class. It works fine as is, however, now I would like to be able as an administrator to change the background image of the app. Therefore, I can only see it happening in two ways, none of which I would know how to implement: - Upload the image in the app directly (just like a header image or something like that) and make that the background image of the pages - Change a variable in the admin panel of the app that can be linked to different background images in the css files Does anyone know how to go about this? Thank you in advance :)
asked
1 answers
3

Hi,

Check out https://marketplace.mendix.com/link/component/109716 CssClassSwitcher and

https://marketplace.mendix.com/link/component/116773 Dark Theme – Dark Reader (Demo: https://darkreader-sandbox.mxapps.io/ )

 

These might be at least a good starting point

 

answered