• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

#GLFW_APP_ICON

Pierrou

Well-known member
Joined
Jul 6, 2017
Messages
237
Hi,
I made an .ico file and tried to use it in some new quick side project of mine using
#GLFW_APP_ICON="filename.ico" in the config file
where filename.ico is the icon put in the build folder next to the config file
and I still get the usual CerberusX icon after compiling
Am I missing something?
Thanks!
 
Did you try putting it in your project folder?
Did you do a clean rebuild by deleting the build folder upfront?
on windows i had the problem of a windows cache not showing the new icon. try resizing the icon, then it shows.
 
Hi Phil7! Yes I did both, it didn't work. I've used Resource Hacker instead which is a very convenient tool but if I'd be happy to be able to use the peprocessor.
Thanks for your help!
 
Btw. works fine here with MingW and CX V2019-10-13

1587217419513.png
 
Last edited:
BTW the preprocessor bit worked when I compiled the Release version!
 
I don't know what I did wrong but it's 100% working now, maybe I didn't put the icon in the same folder as the .cxs file (now the docs make it very clear). Those preprocessor commands are cool!
 
I don't get the same experience on macOS right now. I tried ico files before png and placed them as being told by the docs and in this thread. I also tried to put a copy of both .ico and png inside the data folder. No luck.

1.png
4.png
 
On macOS it is really easy to do it manually though. You just copy any png into clipboard and then open the app using the right mouse button and click "Get Info", and click on the little icon and paste it in there using cmd + v. Done!

But I still would like to have it automatic using directives if possible.
 
One nice thing with macOS is that it gives you alphamasked icons! I just want it to become automatic now.

Screenshot 2020-06-26 at 09.33.08.png
 
On macOS it is really easy to do it manually though. You just copy any png into clipboard and then open the app using the right mouse button and click "Get Info", and click on the little icon and paste it in there using cmd + v. Done!

My understanding is that this only changes it on your own computer, right?
 
My understanding is that this only changes it on your own computer, right?
I'm no expert but I use this feature a lot and you can actually copy the changed file onto a stick and transfer to another Mac and the new icon will follow, with no extra visible files.

I know Apples filesystems works this way but I have also a weak memory of that you can use FAT 32 / 64 equally well. Of course on Window machines you can't see the executable icons. Not even the folder-icons that you change.
 
Back
Top Bottom