Skip to content

Commit 3dc9290

Browse files
authored
Merge pull request #268 from samyhocine/fix-menu_color
Fix menu color
2 parents bbb3737 + c9ae4e3 commit 3dc9290

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

NodeGraphQt/widgets/actions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ class BaseMenu(QtWidgets.QMenu):
88

99
def __init__(self, *args, **kwargs):
1010
super(BaseMenu, self).__init__(*args, **kwargs)
11-
text_color = self.palette().text().color().getRgb()
11+
# text_color = self.palette().text().color().getRgb()
12+
text_color = tuple(map(lambda i, j: i - j, (255, 255, 255), ViewerEnum.BACKGROUND_COLOR.value))
1213
selected_color = self.palette().highlight().color().getRgb()
1314
style_dict = {
1415
'QMenu': {

0 commit comments

Comments
 (0)