Changeset 112 for widgets/menu.r

Show
Ignore:
Timestamp:
12/31/07 22:18:08 (11 months ago)
Author:
ashley
Message:

Added pill.r
Scroller fixes
Major color / theme management changes (in progress)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • widgets/menu.r

    r107 r112  
    99        size:   100x5 
    1010        pane:   [] 
    11         color:  colors/widget 
    12         rebind: make function! [] [color: colors/widget] 
     11        color:  colors/outline-light 
     12        rebind: make function! [] [color: colors/outline-light] 
    1313        init:   make function! [/local item item-offset] [ 
    1414                item-offset: 2x0 
     
    2323                                feel:   make default-feel [ 
    2424                                        over: make function! [face act pos] [ 
    25                                                 either act [select-row face] [deselect-row face] 
     25                                                either act [select-face face] [deselect-face face] 
    2626                                        ] 
    2727                                        engage: make function! [face act event] [ 
    2828                                                if act = 'up [ 
    29                                                         ;       de-select previous entry 
    30                                                         if face/parent-face/data <> face [ 
    31                                                                 face/parent-face/data/color: none 
    32                                                                 face/parent-face/data/font/color: black 
    33                                                                 show face/parent-face/data 
    34                                                                 face/parent-face/data: face 
    35                                                         ] 
    3629                                                        ;       evaluate block associated with choice 
    3730                                                        do select face/data choose face/parent-face face/options face/parent-face/offset + face/offset + as-pair 0 face/size/y extract face/data 2 
     31                                                        deselect-face face 
    3832                                                ] 
    3933                                        ]