Skip to content

Commit b196444

Browse files
committed
Changed text color of the tab search to be more visable. Reference taken from widgets/actions.py
1 parent 0eb0262 commit b196444

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

NodeGraphQt/widgets/tab_search.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ def __init__(self, parent=None):
5757
super(TabSearchLineEditWidget, self).__init__(parent)
5858
self.setAttribute(QtCore.Qt.WA_MacShowFocusRect, 0)
5959
self.setMinimumSize(200, 22)
60-
text_color = self.palette().text().color().getRgb()
60+
# text_color = self.palette().text().color().getRgb()
61+
text_color = tuple(map(lambda i, j: i - j, (255, 255, 255),
62+
ViewerEnum.BACKGROUND_COLOR.value))
6163
selected_color = self.palette().highlight().color().getRgb()
6264
style_dict = {
6365
'QLineEdit': {
@@ -108,7 +110,9 @@ def __init__(self, node_dict=None):
108110
search_widget.setDefaultWidget(self.line_edit)
109111
self.addAction(search_widget)
110112

111-
text_color = self.palette().text().color().getRgb()
113+
# text_color = self.palette().text().color().getRgb()
114+
text_color = tuple(map(lambda i, j: i - j, (255, 255, 255),
115+
ViewerEnum.BACKGROUND_COLOR.value))
112116
selected_color = self.palette().highlight().color().getRgb()
113117
style_dict = {
114118
'QMenu': {

0 commit comments

Comments
 (0)