简体   繁体   中英

PHP desktop how to change the main window icon

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.

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.

php桌面添加图标

Put .ico image inside your folder and edit setting.json file like below

"main_window": {
    "title": "----",
    "icon": "ico.ico",
     ----},

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM