-
Notifications
You must be signed in to change notification settings - Fork 1
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
Automagically Applying Icons #1
Comments
My current half-booty setup is using a exporting the AI files at 256px and inputting it into a PNG to ICO converter and storing all the files in a hidden folder in my C:/ drive (could be released in a DLL if it's easier to use). Then I use that change icon and Winaero Tweaks to get this result: I still have a lot to do but MaterialOS is fairly abandoned while it has lots of potential even for my personal setup. I'm unsure if I released Eduardo Pratti's Windows icons but he made 13 icons for folders and such and I used a few other Android and Linux icons for my other folders. |
For somewhat automised, perhaps something such as this could help? https://www.addictivetips.com/windows-tips/apply-custom-icon-packs-on-windows-with-one-click-using-7conifier/ It appears to be free. |
7conifier does not seem to be open source or standard. We'd like it to be one or the other (if not both) if remotely possible. It also seems to work in the same dangerous DLL replacement way [the only way that I personally know to automate this] that I have warned against |
Good point. |
If it is simply the start menu shortcuts and desktop shortcuts to replace, editing the LNK files would work, and is not as dangerous. It could be based on something like this: https://stackoverflow.com/questions/6805881/modify-windows-shortcuts-using-python I'll try that a bit later, and using Python allows for easy GUI addition. However, the issue is of course that it is impractical to ship Python or to require users to install Python. EDIT: It could also potentially be done using SmallBasic, which does output .exe files. |
I threw together a simple SmallBasic program that currently can read all shortcuts from I am using the LitDev extension, and you can adjust the output_folder variable to control where it will (for now) copy the shortcuts. I don't have any alternate ICO files to test right now, otherwise I'd try that. [code removed as updated code below] The way I was thinking of is using the executable name, but without the file extension - i.e. naming the icon files something like word.ico. Using |
Alright, I updated the code, now it will check for icons. If a custom ICO exists, it will use, else it will use the default. As you can see, it works! 🙌
|
Here's the version with a simple UI. Would you like the compiled version too? Code:
|
Now that I think about it, there are missing shortcuts. These are stored in |
For some reason it fails with some shortcuts. Rather than recreating the shortcuts, it'll just copy those (as long as it doesn't use a custom icon.) |
@wilkgr76 While we could modify LNKs, I know that these are not universal. We are not able to theme system icons this way, are not able to keep up with the HUGE number of shortcuts someone could create, etc. Well outside of scope of this project. THAT being said; it's clear you have an idea here that could easily work. If you were to, say, create an open source project with a GUI and such (something I wouldn't mind contributing to; and could) to keep up with these and applying packaged DLLs or a standard file format/package (something your project could create), we could support your project and advertise for it. ;) ;) ;) nudge nudge nudge |
I will load the source up onto GitHub, and hopefully switch away from SmallBasic. At the moment, it isn't great, as it is relatively slow. SB is good for prototyping, but I wouldn't want to use it for anything close to production! 😋 For the packaging, a simple ZIP file would work, and setting the icon name to the same as the executable - for example, the icon for powerpoint is called powerpnt.ico as the executable for powerpoint is called powerpnt.exe. However, if I continue to link it as I have done previously, then I will need to extract these previously. I don't believe that this is an issue. EDIT: I'm currently uploading my current version of the source. |
So, unfortunately, due to school, I don't really have much time. However, I am working on it in my spare time 😄 |
Maybe this: http://stackoverflow.com/a/1214825/2758250(dangerous says @crutchcorn)
The text was updated successfully, but these errors were encountered: