Jump to content
Fudley

New to Delphi 12, can't turn off adaptive icons

Recommended Posts

I made the mistake of trying to use adaptive icons. Could not get it to work. I could never find where the "Artwork Generator" put the XML files. I'm not even sure it created them. And without the XML files, no adaptive icons.

 

However, now I can't turn off "Use adaptive icon".  I can uncheck it, but it will not save as there are still (errant) entries in the Foreground, Background and Monochrome entries, and I cannot delete the entries.

 

I would just like to go back to the legacy launcher and get rid of these adaptive entries. Can I edit some file manually to get rid of them?

 

Please advise.

Share this post


Link to post

Got it figured out but man, that's convoluted.

  • Sad 1

Share this post


Link to post
1 minute ago, Fudley said:

Got it figured out but man, that's convoluted.

I'm puzzled as to why you would post "Got it figured out", but not actually include the solution

  • Like 2

Share this post


Link to post

Also, the adaptive icon files, and all artwork generated files, are available at your project folder, in the subpath “.\<ProjectName>.Artwork\”. It is important to note that the adaptive icon and the vectorized splash are only generated when you use and SVG on the input of icon fields of the artwork generator. That is, if you use PNG image, it will generate all icons and splashs but not the android adaptive icon and android vectorized splash.

 

If you found a real issue in the IDE and you have the steps to reproduce, please create a Jira for it, to improve future versions.

Share this post


Link to post

Had to use Astrogrep to search for all instances of "adaptive" and edit them manually, taking out the ones pointing to an XML resource.

 

Some helpful pages:

 

From an SVG file this will create a Vector Drawable (run from chrome)

https://shapeshifter.design/

 

This had some good info on using Android Studio to create new vector assets

https://shorturl.at/QYuVs

 

Some really good information here reagding deployment, and information on manually creating the various " ic_*.xml  files, and also how to manually add the path of an SVG file directly to the XML file.

 

https://shorturl.at/6XaOp

 

Another place to convert a vector into a drawable:

https://svg2vector.com/

 

This converts between DP aand pixels:

http://labs.rampinteractive.co.uk/android_dp_px_calculator/

 

Hope this helps.

 

 

 

Share this post


Link to post
15 hours ago, Fudley said:

Had to use Astrogrep to search for all instances of "adaptive" and edit them manually, taking out the ones pointing to an XML resource.

Probably easier just to compare your current changes to your last commit.

  • Like 1
  • Haha 1

Share this post


Link to post
2 hours ago, Brandon Staggs said:

Probably easier just to compare your current changes to your last commit.

I've ignored the History Manager so far (not on purpose, just time constraints), but I think its time I took a weekend to learn the IDE better. Say do I remember you from the Clipper days?

Share this post


Link to post
On 6/14/2024 at 11:22 AM, Fudley said:

I've ignored the History Manager so far (not on purpose, just time constraints), but I think its time I took a weekend to learn the IDE better. Say do I remember you from the Clipper days?

No Clipper in my history, sorry. :-)

 

I would recommend learning Git for source control. It can be integrated into the IDE but I don't ever use it that way -- I prefer a dedicated Git client, specifically Fork. However much time it takes you to learn to use it is time well spent. Once you train yourself to commit your changes and branch off for experiments, you will never worry about breaking your code, and problems like what you posted here are very easily solved, because you can always see everything that changed, exactly.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×