summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2018-09-05 10:49:48 +0900
committervolzhs <volzhs@gmail.com>2018-09-05 10:49:48 +0900
commit192beed068ecb80196020ea9c7bac425ea7b9159 (patch)
tree961bd0230f08eefb89145c83a7dc7a4a6324a520 /editor
parentf50dd682f6a0f9506daaf16fed06f4bc9efa6599 (diff)
Make better look for bitmask
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_properties.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 3c3df6b8ef..069b9147ce 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -651,6 +651,7 @@ public:
int h = bsize * 2 + 1;
int vofs = (rect.size.height - h) / 2;
+ Color color = get_color("highlight_color", "Editor");
for (int i = 0; i < 2; i++) {
Point2 ofs(4, vofs);
@@ -667,7 +668,8 @@ public:
uint32_t idx = i * 10 + j;
bool on = value & (1 << idx);
Rect2 rect = Rect2(o, Size2(bsize, bsize));
- draw_rect(rect, Color(0, 0, 0, on ? 0.8 : 0.3));
+ color.a = on ? 0.6 : 0.2;
+ draw_rect(rect, color);
flag_rects.push_back(rect);
}
}