I was looking to do some customization on OpenNebula front-end just to try some things customization side.
I would like to know how to change the logo of OpenNebula first, as seen in Sunstone Configuration — OpenNebula 6.10.3 documentation the path highlighted is not available anymore since there is no folder at this path /usr/lib/one/sunstone/public/images/
The path for the logo that appears on the documentation should be there. It looks like there’s something on your installation that changed that path. The logo should be on the Sunstone public assets directory (I’m double checking with the team in any case, but it should be as appears on the documentation).
If the /images/logos directory doesn’t exist, you may need to create it. Then is basically edit a yaml file, as it states on the documentation.
Sorry for the late reply. There’s no official guideline for changing the color, you have to go to the source and modify the CSS. It also depends on which version you are using.
You will have to locate the /public folder and locate the tailwind.config.js file (though it looks like you have to built it from source).
Check for the following classes:
src/styles
src/themes or src/assets/css
And edit directly on it. If I found more information, I’ll let you know.
I’m checking that I forgot to mention that for having that file, you need to build OpenNebula from the source, so a normal download won’t include these files apparently. Again, let me check with the team to give you some better insights.
The dev team gave me a better information, so let’s see if this could help you:
In 6.10 version the colors that Sunstone is using are defined in src/fireedge/src/client/theme/defaults.js but you will need to compile again Sunstone in order to be able to use this new version.
To do that, perform the following steps:
Use at least node 16
Execute npm install on the source folder
Execute npm run buid on the source folder
Remember that the files that executes the opennebula-fireedge service are on /usr/lib/one/fireedge, so if you create a new version of Sunstone, you will need to replace these files (making a backup first)
We are working to improve this process. In OpenNebula 7.0, which beta will be release soon, the colors are isolated in two files, one for light mode and other for dark mode, specifying the components that are affected by each color. Also, for future releases we still working on improve the customization to Sunstone, until we be able to customize themes using config files without the need of compile again the app.
Let me know if it works, or if you need more information.