matyalatte / tuw

Tiny GUI wrapper for command-line tools
MIT License
30 stars 2 forks source link

Add Icon to exe #30

Open KIZILANDO opened 6 months ago

KIZILANDO commented 6 months ago

Can you add something maybe in the json file if it's possible to put an icon in the exe ? This project is incredible but will be better with icons. Thanks !!

matyalatte commented 6 months ago

Thanks for the proposal. You mean the icon shown on the desktop? Maybe possible. (I'm not sure tho.)

I'll add an option exe_icon to edit the icon data when embedding json.

{
    "exe_icon": "./myicon.ico",
    "gui": {

    }
}

I'll look into it after working on #24.

(edit) Related URLs about icon replacement. https://stackoverflow.com/questions/67691200/programmatically-change-exes-icon-in-c https://stackoverflow.com/questions/45727291/how-to-set-icon-for-c-application-window-and-icon-for-task-bar https://github.com/fatrolls/IconChanger/blob/master/IconChanger.c