Le 12/10/16 à 15:25, Denis Kudriashov a écrit :

2016-10-12 15:01 GMT+02:00 Peter Uhnak <i.uh...@gmail.com <mailto:i.uh...@gmail.com>>:

    Because ThemeIcons may not be the only place from which you draw
    icons, and because programming with strings doesn't scale.


It is not programming with strings. Most users of icons (I really think all of them) are only specify name and really don't care how retrieve them.
Yes so this is why we could have



menuOn: aBuilder
    "Specify the menu used when writing text."
    <contextMenu>
    <RubLineNumberMenu>
    (aBuilder item: #'Find...' translated)
        keyText: 'f';
        selector: #find;
        icon: MyIconFactory mywonderfulIcon

or

menuOn: aBuilder
    "Specify the menu used when writing text."
    <contextMenu>
    <RubLineNumberMenu>
    (aBuilder item: #'Find...' translated)
        keyText: 'f';
        selector: #find;
        buildIconNamed: #smallFindIcon

Reply via email to