Add extra icons to rocksolid icon picker - contao

Hi I need to add extra icons to rocksolid icon sets. I follwed the instructions in https://rocksolidthemes.com/de/contao/blog/iconfont-anpassen-icons-hinzufuegen and successfully downloaded the new icon set and copied to the desired folder. But the new icons are not showing in the picker. I need to know whether the new icons were lost when the rocksolid is upgraded? If yes, what is the remedy for this? Can I add more than one icon files in the configuration?

But the new icons are not showing in the picker.
This is probably a caching problem. Please try to delete all browser cache after replacing the font files in the template directory. Further make sure the new font files have the same font names as the original files ("replace" the original files in the template font folder). You also have to update/replace the font css file as stated at the end of the linked article:
Roughly translated: "To see the new icons in Icon Picker copy the file style.css of the downloaded font packet to the font folder of your template and rename it to rocksolid-icons.css. Delete rocksolid-icons.html if this file exists."
I need to know whether the new icons were lost when the rocksolid is upgraded
The font files are part of the template and included in the template folder. So you should make a backup of the template folder before updating to a newer version of the used rocksolid template. After updating the rocksolid template you can again replace the font files and css within the template folder to get your own icons back in place...

Related

How to insert multi-size icon file using RC.EXE?

I created a multi-sized icon file for my application. Now i'm using a .rc file to link the icon to my app. Here is the contents of my .rc file :
MAINICON ICON myapp.ico
The file is compiled by RC.EXE, but no icon is added into my application; it keeps using the default Delphi's icon :
What am i missing ?
Thanks
The icon you specify in your *.rc file does indeed get included in the EXE, as you can easily verify using a resource editor. However, if you build using the IDE, so does the icon specified in the Project Options, and that one becomes the main icon of the application.
I almost would expect the Project Options dialog box to have some option not to include an icon, but I cannot find any such option. You can add or change the icon, but you cannot remove it if it is already there.
However, it seems like you can remove it yourself by editing the *.dproj file behind the back of the IDE:
Make sure the project is NOT opened in any instance of the Rad Studio IDE.
Open the *.dproj file in a text editor.
Remove the <Icon_MainIcon> line(s).
Save the file.
Now, if you open the project in the IDE and build it, the IDE will not insert any icon, so your icon specified in the *.rc file becomes the application icon.

Can't add custom font to Xcode

I'm trying to add a downloaded font to Xcode and I've folowed every single step based on this link: http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/
I added the font to my Xcode Project,
included it in Copy Bundle Resources (Build Phases),
and typed it in Fonts Provided by Application (in Info.plist).
Then I typed this in GameScene.swift inside didMoveToView
It has worked with other fonts but not with this one. This is really frustrating me and I've got no idea what the problem is, thanks.
The name of the font is not always the name of the file. Try looking for the file and then opening in. It should automatically pull it up in font book, and the name of the font is located on the top bar. Simply enter that instead of the file name and it should work.

Managing visual assets on xcode (reference, copy or both)?

Good evening overflowers,
I was wondering what would be the best way to manage assets (visual, sound, etc.) in xcode for ios or mac os projects.
I am currently working on a project that the image files change all the time (design is under construction still) and I would like to know the best way to keep all the files updated while having them in the project's directory.
So for instance I have a file named "ic_action_gray_button#2x.png" This button changes on the design but still has the same name. Is there a magical way to mirror the changes and have it also under source control without spending time finding and replacing the file all the time?
It is something easy when it comes to 50 assets but when these assets become 100 or 500 then, it becomes difficult to keep up with the changes.
Any tutorial or any guide to help me through this process?
If my question is not clear, be easy on me, I am not a native English speaker :)
Kind Regards,
Sonic555gr
You can create a separate folder for your assets inside your project folder. Then you can drag your asset folder to your project in Xcode, select "Create folder references for any added folders" and uncheck "Copy items into destination group's folder (if needed)". This should serve your purpose.
The way I do it is just to take the 100 - 150 or however many assets and paste them in Finder.
As long as the files have the same names, you are just doing an overwrite in Finder, inside the folder of your XCode project.
Any new images, you can add to XCode as usual, by drag & drop, then selecting copy and choosing the target. Any replacements can be done in Finder after that.
Git will also detect the file modifications and you can push the changes to your repo. For file/assets replacements, there is no need to do it through XCode and add the new images again.
If you are using asset catalogs for your images, its just a matter of replacing the files inside the specific folders, which is tedious, its then easier to just select them all inside XCode, delete them from the catalog, and from the project, and then just drag and drop them into the asset catalog again.

How can I upload a list of images from a folder into my xcode project?

Not sure if it's possible, but it sounds reasonable.
I have a list of images in a folder on my desktop that I would like my Xcode project to upload/import. Can I do it dynamically as I will be adding images consistently in the near future, instead of having to upload each image individually? Can anyone advise me how to do so?
Thanks in advance.
I would do it a little difference:
Create a physical folder reference in Xcode. This folder should have a blue color instead of the yellow color.
Create an alias from above folder and put it on your Desktop.
As you put your imnages files into the alias on your Desktop, those files will show up automatically in the Xcode project.

Setting EXE icon in Delphi 7

I'm trying to customize the icon that shows in Windows Explorer and in Desktop shortcuts for my Delphi application.
In the Delphi 7 IDE, I have loaded the desired icon in the Application tab of the Project Options dialog. It shows my desired icon as a graphic.
I didn't think it was necessary, but I also set my icon as the TMainForm Icon property.
However, the resulting EXE still shows the default D7 icon. What am I missing?
I found it after more hunting. I created a new project by copying an existing project from another folder. I forgot to change the program name at the top of the DPR file to match the name of the new project. Somehow, if a wrong name is used there, it prevents the icon from being changed in the generated EXE file...
When you assign an icon to an application, the icon will be embedded in a .res file named identical to the program name (the name mentioned in the first line of the .dpr file). When you change the program name in the .dpr file, delphi creates a new .res file with the new program name and looks for the icon resource in the new res file and finds none, and hence uses the default icon (or a rectangular white box). The old res file which carries the icon resource will no longer be used.
In summary, if you change the program name, you will have to re-assign the icon.
Maybe the icon cache needs to be deleted. There are many pages about this problem, this link might be useful: http://smallvoid.com/article/windows-icon-cache.html

Resources