src/eric7/EricWidgets/EricToolBarDialog.py

branch
eric7
changeset 10621
f5631f40c4d9
parent 10562
8e93f1578f99
child 10689
3ede487187f2
equal deleted inserted replaced
10620:699b5ceb39aa 10621:f5631f40c4d9
104 if self.__manager.isWidgetAction(action): 104 if self.__manager.isWidgetAction(action):
105 item.setData(0, EricToolBarDialog.WidgetActionRole, True) 105 item.setData(0, EricToolBarDialog.WidgetActionRole, True)
106 item.setData( 106 item.setData(
107 0, 107 0,
108 Qt.ItemDataRole.ForegroundRole, 108 Qt.ItemDataRole.ForegroundRole,
109 QColor("#8b8bff") 109 (
110 if ericApp().usesDarkPalette() 110 QColor("#8b8bff")
111 else QColor(Qt.GlobalColor.blue), 111 if ericApp().usesDarkPalette()
112 else QColor(Qt.GlobalColor.blue)
113 ),
112 ) 114 )
113 self.__widgetActionToToolBarItemID[id(action)] = None 115 self.__widgetActionToToolBarItemID[id(action)] = None
114 categoryItem.setExpanded(True) 116 categoryItem.setExpanded(True)
115 117
116 for tbID, actions in self.__manager.toolBarsActions().items(): 118 for tbID, actions in self.__manager.toolBarsActions().items():

eric ide

mercurial