webui icon indicating copy to clipboard operation
webui copied to clipboard

How to change icon of application?

Open kelliray90 opened this issue 8 months ago • 1 comments

I was using set_icon in 2 ways (png and svg) but the icon isn't change. It is still the default. Image How to change it?

` const char* myIcon = "C:\folder\logo instagram.png"; const char* myIconType = "image/png"; webuiWindow.set_icon(myIcon, myIconType);

        webuiWindow.set_icon("<svg width=\"40px\" height=\"40px\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M12 17V11\" stroke=\"#1C274C\" stroke-width=\"1.5\" stroke-linecap=\"round\"/> <circle cx=\"1\" cy=\"1\" r=\"1\" transform=\"matrix(1 0 0 -1 11 9)\" fill=\"#1C274C\"/> <path d=\"M22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C21.5093 4.43821 21.8356 5.80655 21.9449 8\" stroke=\"#1C274C\" stroke-width=\"1.5\" stroke-linecap=\"round\"/> </svg>", "image/svg+xml");

`

kelliray90 avatar Apr 19 '25 01:04 kelliray90