Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing Icon On Toolbar #19

Open
Orbitally opened this issue Mar 24, 2021 · 6 comments
Open

Changing Icon On Toolbar #19

Orbitally opened this issue Mar 24, 2021 · 6 comments

Comments

@Orbitally
Copy link

Orbitally commented Mar 24, 2021

Heya! I was wondering how to go about changing the icon that would show up on the toolbar. Also a separate question I had was, the sim crashes when ever I use this template with another panel that is also using the template because I think the file names are the same in some places. Any ideas on how to fix this would be welcome!

@mambulo
Copy link

mambulo commented Jun 12, 2021

Just an advise, I had problems also with a "blank" icon if you attempt to change the default that comes with this package, the problem is that the svg image file has an internal XML, if you open the file from a web browser then right click on "see source code", you will see that it has an XML, you have to match (more or less) that XML to what your new svg image icon is, there are tools out there for free like inkscape, you can use for edit the icon, however, the resulting svg image will not have a correct XML, you need other tools to correct it or SVG cleaner (another tool) to correct the file, once you done that, THEN you can use it in MSFS. This is just my 2 cents to help you on the icon problem

@andrewwardlaw
Copy link

Hi @bymaximus
I'm struggling to get the icon to work. Even on your template. Just running that with no changes at all I just get a blank box.
image

Any ideas?

I've re-compiled numerous times.

@mambulo
Copy link

mambulo commented Oct 17, 2021

The problem you have is that the svg file of your icon doesn't follows the format that the toolbar template icon's have. There is an embeded XML inside the svg file, you need to correct/edit, in order to look at it, as an example, go here:

https://www.svgviewer.dev/

and load/open your svg icon's file, and open the maximus' svg icon file, and compare them, and you will notice you must correct the XML code in your svg icon's file, save it, and download it, that's the way I found to get MSFS to load my icon.

Cheers,

Manuel

@andrewwardlaw
Copy link

Hi,
Thanks for the reply, I just got it sorted.
It wasn't the SVG it was the folder structure. The example doesn't contain html_ui/icons/toolbar which seemingly needs to house the SVG file also and then layout.json needs updating also.

Once both of those were completed the icon showed.

Thanks

Andrew

@fweinrebe
Copy link

Thanks Andrew,

saved a lot time by your post. I saw the other addons were using html_ui/icons/toolbar/.svg and your post confirmed that.

Just to add for others, there is a very nice tool to update your layout.json file and that is called MSFS Painter Toolkit. Available free at:
https://flightsim.to/file/1197/default-thumbnail-generator

Regards
Fritz

@WilliamRiker2701
Copy link

WilliamRiker2701 commented Jan 23, 2024

Also, you have to copy the folder "Textures" in the same directory and rename it "icons". This was the final step that solved my issue, as I was trying to modify the svg inside "Textures" and there was no effect inside the game. The one I had to modify instead was the svg inside "icons".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants