diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-11-06 10:17:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 10:17:12 +0100 |
commit | 52c1b5fc411a6e9760c97d17835952dda1d4bd4b (patch) | |
tree | 3d2180c87ead03fcf50036d85518cafeb58f1fb2 /scene/gui | |
parent | d79e57882b333b0e5ca47579cfe7bf3188bee274 (diff) | |
parent | 7adb6b91b33e297b4833ef5f82adcf64a15777f4 (diff) |
Merge pull request #43283 from Calinou/color-remove-contrasted
Remove `Color.contrasted()` as its behavior is barely useful
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/gradient_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/gradient_edit.cpp b/scene/gui/gradient_edit.cpp index ecd4ad17ea..53d7ead548 100644 --- a/scene/gui/gradient_edit.cpp +++ b/scene/gui/gradient_edit.cpp @@ -357,7 +357,7 @@ void GradientEdit::_notification(int p_what) { //Draw point markers for (int i = 0; i < points.size(); i++) { - Color col = points[i].color.contrasted(); + Color col = points[i].color.inverted(); col.a = 0.9; draw_line(Vector2(points[i].offset * total_w, 0), Vector2(points[i].offset * total_w, h / 2), col); |