17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 02:49:19 +02:00

refactor(editor): named overlay colours

This commit is contained in:
maj00r
2026-10-04 00:43:41 +02:00
parent 20fa5613a7
commit 0879f1528e
4 changed files with 44 additions and 35 deletions

View File

@@ -17,6 +17,15 @@ http://mozilla.org/MPL/2.0/.
#include <limits>
namespace overlay_color
{
ImU32 constexpr marked{IM_COL32(255, 210, 60, 255)};
ImU32 constexpr grip{IM_COL32(60, 230, 90, 255)};
ImU32 constexpr selected{IM_COL32(40, 220, 255, 255)};
ImU32 constexpr invalid{IM_COL32(255, 60, 60, 255)};
ImU32 constexpr highlight{IM_COL32(255, 255, 255, 255)};
} // namespace overlay_color
// world to screen projection of the current camera, for overlays drawn with ImGui
class screen_projection
{