Changeset 7171:bf70aae447c6 in orange


Ignore:
Timestamp:
01/24/11 12:03:38 (3 years ago)
Author:
markotoplak
Branch:
default
Convert:
9490781a7e3a4e97909bec29e2d50107d9179563
Message:

Popup menu: invert color of selected items in pop-up menus. Force icons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeCanvas/orngTabs.py

    r7009 r7171  
    648648                    act = self.addAction(icon, widgetInfo.name) 
    649649                    act.widgetInfo = widgetInfo 
     650                    act.setIconVisibleInMenu(True) 
    650651                    self.quickActions.append(act) 
    651652                    break 
     
    661662    global categoriesPopup 
    662663    categoriesPopup = CanvasPopup(canvasDlg) 
    663     categoriesPopup.setStyleSheet(""" QMenu { background-color: #fffff0; selection-background-color: blue; } QMenu::item { color: black; } QMenu::item:disabled { color: #dddddd } QMenu::separator {height: 1px; background: #dddddd; margin-left: 3px; margin-right: 4px;}""") 
     664    categoriesPopup.setStyleSheet(""" QMenu { background-color: #fffff0; selection-background-color: blue; } QMenu::item { color: black; selection-color: white } QMenu::item:disabled { color: #dddddd } QMenu::separator {height: 3px; background: #dddddd; margin-left: 3px; margin-right: 4px;}""") 
    664665 
    665666    catmenuDict = {} 
     
    690691            act.widgetInfo = widgetInfo 
    691692            act.category = catmenu 
     693            act.setIconVisibleInMenu(True) 
    692694            categoriesPopup.allActions.append(act) 
    693695           
Note: See TracChangeset for help on using the changeset viewer.