mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 14:41:07 +00:00
Use the editor theme's accent color for 2D/3D selections and rotations
This commit is contained in:
parent
472c8a7ba1
commit
d59b210aec
3 changed files with 24 additions and 6 deletions
|
|
@ -2382,7 +2382,10 @@ void SpatialEditorViewport::_draw() {
|
|||
|
||||
if (cursor.region_select) {
|
||||
|
||||
VisualServer::get_singleton()->canvas_item_add_rect(ci, Rect2(cursor.region_begin, cursor.region_end - cursor.region_begin), Color(0.7, 0.7, 1.0, 0.3));
|
||||
VisualServer::get_singleton()->canvas_item_add_rect(
|
||||
ci,
|
||||
Rect2(cursor.region_begin, cursor.region_end - cursor.region_begin),
|
||||
get_color("accent_color", "Editor") * Color(1, 1, 1, 0.375));
|
||||
}
|
||||
|
||||
if (message_time > 0) {
|
||||
|
|
@ -2396,7 +2399,13 @@ void SpatialEditorViewport::_draw() {
|
|||
if (_edit.mode == TRANSFORM_ROTATE) {
|
||||
|
||||
Point2 center = _point_to_screen(_edit.center);
|
||||
VisualServer::get_singleton()->canvas_item_add_line(ci, _edit.mouse_pos, center, Color(0.4, 0.7, 1.0, 0.8));
|
||||
VisualServer::get_singleton()->canvas_item_add_line(
|
||||
ci,
|
||||
_edit.mouse_pos,
|
||||
center,
|
||||
get_color("accent_color", "Editor") * Color(1, 1, 1, 0.6),
|
||||
Math::round(2 * EDSCALE),
|
||||
true);
|
||||
}
|
||||
if (previewing) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue