diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/EdgeView.cpp | 8 | ||||
-rw-r--r-- | src/gui/MachinaCanvas.cpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/EdgeView.cpp b/src/gui/EdgeView.cpp index 67fc821..b4c6099 100644 --- a/src/gui/EdgeView.cpp +++ b/src/gui/EdgeView.cpp @@ -48,9 +48,9 @@ namespace gui { inline static uint32_t edge_color(float prob) { - static const uint32_t min = 0xFF4444C0; - static const uint32_t mid = 0xFFFF44C0; - static const uint32_t max = 0x44FF44C0; + static const uint32_t min = 0xFF4444FF; + static const uint32_t mid = 0xFFFF44FF; + static const uint32_t max = 0x44FF44FF; if (prob <= 0.5) { return UINT_INTERPOLATE(min, mid, prob * 2.0); @@ -67,7 +67,7 @@ EdgeView::EdgeView(Canvas& canvas, NodeView* src, NodeView* dst, SPtr<machina::client::ClientObject> edge) - : Ganv::Edge(canvas, src, dst, 0x9FA0A0F4, true, false) + : Ganv::Edge(canvas, src, dst, 0x9FA0A0FF, true, false) , _edge(edge) { set_color(edge_color(probability())); diff --git a/src/gui/MachinaCanvas.cpp b/src/gui/MachinaCanvas.cpp index f7292bf..a9e51c4 100644 --- a/src/gui/MachinaCanvas.cpp +++ b/src/gui/MachinaCanvas.cpp @@ -124,8 +124,8 @@ MachinaCanvas::on_new_object(SPtr<client::ClientObject> object) } else { int scroll_x, scroll_y; get_scroll_offsets(scroll_x, scroll_y); - x = scroll_x + 64.0; - y = scroll_y + 64.0; + x = scroll_x + 128.0; + y = scroll_y + 128.0; } NodeView* view = new NodeView(_app->window(), *this, object, x, y); |