From 1a4d8b3e765a69e8bfd8aa67d54ce42f7763daaf Mon Sep 17 00:00:00 2001 From: toger5 Date: Mon, 21 Aug 2017 21:32:56 +0200 Subject: [PATCH] fixed rounded corners for visual script editor --- editor/editor_themes.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 11150371d2f..7843b53ce96 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -513,19 +513,19 @@ Ref create_editor_theme() { Ref graphsb = make_flat_stylebox(Color(0, 0, 0, 0.3), 16, 24, 16, 5); graphsb->set_border_width_all(border_width); graphsb->set_border_color_all(Color(1, 1, 1, 0.6)); - graphsb = add_additional_border(graphsb, 0, -22, 0, 0); + graphsb->set_border_width(MARGIN_TOP, 22 * EDSCALE + border_width); Ref graphsbselected = make_flat_stylebox(Color(0, 0, 0, 0.4), 16, 24, 16, 5); graphsbselected->set_border_width_all(border_width); graphsbselected->set_border_color_all(Color(1, 1, 1, 0.9)); - graphsbselected = add_additional_border(graphsbselected, 0, -22, 0, 0); + graphsbselected->set_border_width(MARGIN_TOP, 22 * EDSCALE + border_width); Ref graphsbcomment = make_flat_stylebox(Color(0, 0, 0, 0.3), 16, 24, 16, 5); graphsbcomment->set_border_width_all(border_width); graphsbcomment->set_border_color_all(Color(1, 1, 1, 0.6)); - graphsbcomment = add_additional_border(graphsbcomment, 0, -22, 0, 0); + graphsbcomment->set_border_width(MARGIN_TOP, 22 * EDSCALE + border_width); Ref graphsbcommentselected = make_flat_stylebox(Color(0, 0, 0, 0.4), 16, 24, 16, 5); graphsbcommentselected->set_border_width_all(border_width); graphsbcommentselected->set_border_color_all(Color(1, 1, 1, 0.9)); - graphsbcommentselected = add_additional_border(graphsbcommentselected, 0, -22, 0, 0); + graphsbcommentselected->set_border_width(MARGIN_TOP, 22 * EDSCALE + border_width); theme->set_stylebox("frame", "GraphNode", graphsb); theme->set_stylebox("selectedframe", "GraphNode", graphsbselected); theme->set_stylebox("comment", "GraphNode", graphsbcomment);