summaryrefslogtreecommitdiff
path: root/scene/2d/position_2d.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2019-08-23 18:14:47 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2019-09-13 14:08:41 +0200
commitc2bcc3f700643e042fff250cde360f87c46086dd (patch)
tree004a7e138626895f0bb2acfb36759d1ca64db7a7 /scene/2d/position_2d.cpp
parent24e1039eb6fe32115e8d1a62a84965e9be19a2ed (diff)
Use the same axis colors consistently in the 2D and 3D editors
Diffstat (limited to 'scene/2d/position_2d.cpp')
-rw-r--r--scene/2d/position_2d.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scene/2d/position_2d.cpp b/scene/2d/position_2d.cpp
index f0c46a5fb7..e37407ceb3 100644
--- a/scene/2d/position_2d.cpp
+++ b/scene/2d/position_2d.cpp
@@ -38,8 +38,9 @@ const float DEFAULT_GIZMO_EXTENTS = 10.0;
void Position2D::_draw_cross() {
float extents = get_gizmo_extents();
- draw_line(Point2(-extents, 0), Point2(+extents, 0), Color(1, 0.5, 0.5));
- draw_line(Point2(0, -extents), Point2(0, +extents), Color(0.5, 1, 0.5));
+ // Colors taken from `axis_x_color` and `axis_y_color` (defined in `editor/editor_themes.cpp`)
+ draw_line(Point2(-extents, 0), Point2(+extents, 0), Color(0.96, 0.20, 0.32));
+ draw_line(Point2(0, -extents), Point2(0, +extents), Color(0.53, 0.84, 0.01));
}
Rect2 Position2D::_edit_get_rect() const {