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

Request: also support Android VectorDrawable , or create a similar tool for it #105

Open
AndroidDeveloperLB opened this issue Feb 28, 2021 · 4 comments

Comments

@AndroidDeveloperLB
Copy link

Currently this is the only plugin I know for Explorer on Windows OS to show SVG files.
I like this tool very much.

As I'm an Android developer, I have both SVG files and VectorDrawable files.

Android itself doesn't support SVG files directly. It requires either a special library to render it (which most apps don't do it, as it's very complex) or uses a similar format called "VectorDrawable". It's XML-based and offers less functionality than SVG. Thing is that only the IDE (Android Studio) can show previews of it, and maybe some online tools (for conversion between the two). In the past, I remember the conversion (in the IDE) was pretty bad, choosing wrong colors or just failed. Over time it became a bit better.

I would like to request to either support it here on this tool (with option to enable/disable it for those that don't want it), or create a similar tool just for it.

Examples of VectorDrawable files can be found on each sub-folder of "...res/drawable/" in :

https://github.com/google/material-design-icons/tree/master/android

Example:

https://github.com/google/material-design-icons/tree/master/android/action/3d_rotation/materialicons/black/res/drawable

@GitMensch
Copy link
Contributor

That sounds like a reasonable request. If QT (which does the actual "drawing" for this extension) supports it directly that should be easy, if not it may be possible to convert to an svg internally, then use the current code.

The likely "hardest" part is to register that for XML while not breaking other XML previews.

Note: for recent Windows versions you may want to try the MS File Explorer Addons and if it doesn't work with those currently create an issue there.

@AndroidDeveloperLB
Copy link
Author

AndroidDeveloperLB commented Nov 24, 2021

@GitMensch What is this other addon?
Is it a newer version of the current one?
Or a very different one?
Is it open sourced like the current one?
I can't even see how I can install it...
Why write about it there?
What's special about "recent Windows versions" ? The current one is no longer working properly? Is it about to stop being updated?

Also I don't see it mentioned there that it's supported.

@GitMensch
Copy link
Contributor

The MS file explorer addons, which are part of the "revamped" Powertoys (now MIT-licensed and community-driven) only work on "reasonable new" Windows versions, while this addition also works for much older (actually I haven't used that on W10 any more since I've started to use the other addon).
If it isn't supported there I suggest to create an issue (see link above) and see if someone picks that up and adds it to that software, which has much more developers and users than this addon.

@AndroidDeveloperLB
Copy link
Author

@GitMensch OK thanks. Requested here:
microsoft/PowerToys#14636

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

2 participants