[Plib-devel] Submenu Colors in PUI
Brought to you by:
sjbaker
From: Fay J. F Dr C. U. AFSEO/SK <joh...@eg...> - 2006-04-28 22:41:10
|
Gentlemen, I would like to modify puAux so that the submenus in a vertical menu are colored slightly differently from the color of the main menu bar. As things now stand, it is difficult to see where the submenu ends and the remainder of the vertical menu continues. To this end, I propose to add to "puaVerticalMenu.cxx" starting at line 56: puPopupMenu *p = new puPopupMenu ( w+10, 0 ) ; p->setActiveButton ( active_mouse_button ) ; + p -> setColourScheme ( colour[PUCOL_FOREGROUND][0] * 0.9f, + colour[PUCOL_FOREGROUND][1] * 0.9f, + colour[PUCOL_FOREGROUND][2] * 0.9f, + colour[PUCOL_FOREGROUND][3] * 0.9f ) ; b -> setUserData ( p ) ; This will make the submenu a little darker and give it a hint of transparency. Does anybody object? John F. Fay Technical Fellow, Jacobs/Sverdrup TEAS Group 850-729-6330 joh...@eg... |