How to? > Webdialog icons for retina displays. (SU 2016, both on mac and windows)
Hi anybody knows if and how we can use either his res images or svg files for UI in SU webdialog?
I’ve tried svg quickly, but so far it didn’t work… yet.
Thanks!
The UI::WebDialog class uses the MSIE WebBrowser Control on Windows editions, and Safari on Mac editions.
These libraries are dependent upon the installed browser version on the end user’s machine.
For example, SketchUp installed on Windows XP machines, can only have MSIE v8 maximum.
There is also a default browser emulation setting, set by the SketchUp installer for all version and instances of “sketchup.exe” running on Windows machines. (This has been set to MSIE 9 since SketchUp 2015, I believe. But will be increased soon, because of 3rd party web services like Google Maps API, dropping support for all versions of MSIE below v10.)
But you should be trying to target a minimum browser version that works for your dialog, by overriding this in your HTML pages for your WebDialog.
Make sure the paths to the SVG resources is valid.
They are relative to the location of the HTML file, … optionally …
relative to the href path attribute in the <base> element in the <head> section.
Guess I must have missed some things when trying last time then causing me to give up. At least now I know it should be possible, so’ll give it another chance.
Intersting info in points 3, 4 and 5 + msdn ref.