aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-03-18 23:19:53 +0800
committercrupest <crupest@outlook.com>2020-03-18 23:19:53 +0800
commite3eb653a856fe6793d3ddab371c3e71290fc7a9b (patch)
tree9d7a28a7b8009ef4405b409fc1549dedfa97d659
parentf1d68d3309516ea70db100789b77edadd2f41dd0 (diff)
downloadcru-e3eb653a856fe6793d3ddab371c3e71290fc7a9b.tar.gz
cru-e3eb653a856fe6793d3ddab371c3e71290fc7a9b.tar.bz2
cru-e3eb653a856fe6793d3ddab371c3e71290fc7a9b.zip
...
-rw-r--r--include/cru/platform/graph_base.hpp1
-rw-r--r--include/cru/ui/base.hpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/cru/platform/graph_base.hpp b/include/cru/platform/graph_base.hpp
index eab7ebe7..5840ce18 100644
--- a/include/cru/platform/graph_base.hpp
+++ b/include/cru/platform/graph_base.hpp
@@ -264,6 +264,7 @@ struct Color {
};
namespace colors {
+constexpr Color transparent = Color::FromHexAlpha(0x00000000);
constexpr Color black = Color::FromHex(0x000000);
constexpr Color silver = Color::FromHex(0xc0c0c0);
constexpr Color gray = Color::FromHex(0x808080);
diff --git a/include/cru/ui/base.hpp b/include/cru/ui/base.hpp
index 796f4df5..c9d4d0ef 100644
--- a/include/cru/ui/base.hpp
+++ b/include/cru/ui/base.hpp
@@ -28,6 +28,7 @@ using cru::platform::native::mouse_buttons::right;
} // namespace mouse_buttons
namespace colors {
+using cru::platform::colors::transparent;
using cru::platform::colors::black;
using cru::platform::colors::silver;
using cru::platform::colors::gray;