Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User better icons for all the menus #26

Closed
0ca opened this issue Sep 7, 2016 · 2 comments
Closed

User better icons for all the menus #26

0ca opened this issue Sep 7, 2016 · 2 comments
Milestone

Comments

@0ca
Copy link
Collaborator

0ca commented Sep 7, 2016

Priority -1 ;)

But in the future we should check if with the built-in IDA icons it is enough or if we can/want to use external icons: http://www.famfamfam.com/lab/icons/

@illera88 illera88 added this to the v0.1 milestone Sep 8, 2016
@0ca
Copy link
Collaborator Author

0ca commented Sep 12, 2016

Some icons added ;)
image

@0ca 0ca closed this as completed in a566a24 Sep 12, 2016
@0ca
Copy link
Collaborator Author

0ca commented Sep 12, 2016

I used this code at callbacks.cpp, inside case ui_finish_populating_tform_popup: to show all the available icons:

                //Test code to see all the available icons!
                for (int i = 0; i < 30; i++)
                {
                    for (int j = 0; j < 10; j++)
                    {
                        int icon_number = i * 10 + j;
                        char name[256];
                        //We put the index at the beginning so it is very easy to parse it with atoi(action_name)
                        sprintf_s(name, "Ponce:icon_%d", icon_number);
                        action_IDA_solve_formula_sub.icon = icon_number;
                        action_IDA_solve_formula_sub.name = name;
                        action_IDA_solve_formula_sub.label = name;
                        bool success = register_action(action_IDA_solve_formula_sub);
                        msg("registered submenu for solver, result: %d\n", success);
                        char path[256];
                        //We put the index at the beginning so it is very easy to parse it with atoi(action_name)
                        sprintf_s(path, "Icons_%d/", i);
                        success = attach_action_to_popup(form, popup_handle, action_IDA_solve_formula_sub.name, path, SETMENU_APP);
                        msg("attached submenu for solver, result: %d\n", success);
                    }
                }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants