func_chooser_coloring

summary: override the default “Functions” chooser colors

description:

color the function in the Function window according to its size. The larger the function, the darker the color.

The key, is overriding ida_kernwin.UI_Hooks.get_chooser_item_attrs

level: beginner

Attributes

fcch

Classes

func_chooser_coloring_hooks_t

Module Contents

class func_chooser_coloring.func_chooser_coloring_hooks_t

Bases: ida_kernwin.UI_Hooks

colors
get_chooser_item_attrs(chobj, n, attrs)

get item-specific attributes for a chooser. This callback is generated only after enable_chooser_item_attrs()

Parameters:
  • chooser – (const chooser_base_t *)

  • n – (::size_t)

  • attrs – (chooser_item_attrs_t *)

Returns:

void

func_chooser_coloring.fcch