Skip to content

Commit a090443

Browse files
committed
fix #18 : inverted background colors
1 parent 2dea54b commit a090443

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

larray_editor/arraymodel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ def __init__(self, parent=None, data=None, readonly=False, format="%.3f", font=N
218218
self._format = format
219219

220220
# Backgroundcolor settings (HSV --> Hue, Saturation, Value, Alpha-channel)
221-
self.hsv_min = [0.66, 0.7, 1.0, 0.6]
222-
self.hsv_max = [0.99, 0.7, 1.0, 0.6]
221+
self.hsv_min = [0.99, 0.7, 1.0, 0.6]
222+
self.hsv_max = [0.66, 0.7, 1.0, 0.6]
223223
self.bgcolor_enabled = True
224224

225225
self.minvalue = minvalue

larray_editor/comparator.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ def setup_and_check(self, arrays, names, title=''):
5959
else:
6060
# all 0.5 (white)
6161
bg_value = full_like(diff, 0.5)
62-
gradient = LinearGradient([(0, [.66, .85, 1., .6]),
63-
(0.5 - 1e-16, [.66, .15, 1., .6]),
62+
gradient = LinearGradient([(0, [.99, .85, 1., .6]),
63+
(0.5 - 1e-16, [.99, .15, 1., .6]),
6464
(0.5, [1., 0., 1., 1.]),
65-
(0.5 + 1e-16, [.99, .15, 1., .6]),
66-
(1, [.99, .85, 1., .6])])
65+
(0.5 + 1e-16, [.66, .15, 1., .6]),
66+
(1, [.66, .85, 1., .6])])
6767

6868
self.arraywidget = ArrayEditorWidget(self, self.array, readonly=True,
6969
bg_value=bg_value,
@@ -105,11 +105,11 @@ def __init__(self, parent=None):
105105
self.names = None
106106
self.arraywidget = None
107107
self.maxdiff_label = None
108-
self.gradient = LinearGradient([(0, [.66, .85, 1., .6]),
109-
(0.5 - 1e-16, [.66, .15, 1., .6]),
108+
self.gradient = LinearGradient([(0, [.99, .85, 1., .6]),
109+
(0.5 - 1e-16, [.99, .15, 1., .6]),
110110
(0.5, [1., 0., 1., 1.]),
111-
(0.5 + 1e-16, [.99, .15, 1., .6]),
112-
(1, [.99, .85, 1., .6])])
111+
(0.5 + 1e-16, [.66, .15, 1., .6]),
112+
(1, [.66, .85, 1., .6])])
113113

114114
def setup_and_check(self, sessions, names, title=''):
115115
"""

0 commit comments

Comments
 (0)