Skip to content

Commit

Permalink
Merge pull request #268 from samyhocine/fix-menu_color
Browse files Browse the repository at this point in the history
Fix menu color
  • Loading branch information
jchanvfx authored Oct 12, 2022
2 parents bbb3737 + c9ae4e3 commit 3dc9290
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NodeGraphQt/widgets/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class BaseMenu(QtWidgets.QMenu):

def __init__(self, *args, **kwargs):
super(BaseMenu, self).__init__(*args, **kwargs)
text_color = self.palette().text().color().getRgb()
# text_color = self.palette().text().color().getRgb()
text_color = tuple(map(lambda i, j: i - j, (255, 255, 255), ViewerEnum.BACKGROUND_COLOR.value))
selected_color = self.palette().highlight().color().getRgb()
style_dict = {
'QMenu': {
Expand Down

0 comments on commit 3dc9290

Please sign in to comment.