Reputation: 922
I am starting to use PHP desktop to create a desktop application and it works great, just want to know if there's any settings to change the main windows icon, i know to change the pop-up windows icon can be change on settings.json, but i cannot find any settings to change the main windows.
Note: im using Inno Compiler to distribute my application, but the compiler only change the set-up icon not the main application.
Upvotes: 4
Views: 8404
Reputation: 763
Put .ico image inside your folder and edit setting.json
file like below
"main_window": {
"title": "----",
"icon": "ico.ico",
----},
Upvotes: 4
Reputation: 161
I had the same problem, the solution is provided by the creator -
If you would like to change the icon that is embedded in the executable file then do the following steps:
Download Resource Hacker and run it. From the "File" menu select open, navigate and choose "phpdesktop-msie.exe" (or "phpdesktop-chrome.exe").
On the left side there should be a tree control, expand "/Icon Group/128/1033", right click on the "1033", select "Replace Resource..." and replace that resource with your icon.
That's it, save it and see the changes by running the executable file. When you change icon embedded in the executable file you do not need to set it anymore in the settings file.
Upvotes: 13