From 4b785ac22fc617aef70000be1d7385ef354d28e9 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Tue, 30 Oct 2018 17:17:09 +0100 Subject: SPKnot::SPKnot(): improve color style of selected knots Starting from commit ff04a08000 (working on knots selection, 2017-07-01) it is possible to select knots for shapes, but the selection style can be confusing. The current default colors for knots states are: NORMAL -> white MOUSEOVER -> red DRAGGING -> blue SELECTED -> red Using the same color for the MOUSEOVER and SELECTED states looks like a contradiction considering that the former is an instantaneous indicator while the latter represents a more persistent state. MOUSEOVER and DRAGGING are more similar (in either state the mouse button is pressed), so switch to the following style: NORMAL -> white MOUSEOVER -> red DRAGGING -> red SELECTED -> blue The new style also matches what path nodes look like. --- src/knot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/knot.cpp') diff --git a/src/knot.cpp b/src/knot.cpp index d861004f4..ab83eff42 100644 --- a/src/knot.cpp +++ b/src/knot.cpp @@ -81,8 +81,8 @@ SPKnot::SPKnot(SPDesktop *desktop, gchar const *tip) this->fill[SP_KNOT_STATE_NORMAL] = 0xffffff00; this->fill[SP_KNOT_STATE_MOUSEOVER] = 0xff0000ff; - this->fill[SP_KNOT_STATE_DRAGGING] = 0x0000ffff; - this->fill[SP_KNOT_STATE_SELECTED] = 0xff0000ff; + this->fill[SP_KNOT_STATE_DRAGGING] = 0xff0000ff; + this->fill[SP_KNOT_STATE_SELECTED] = 0x0000ffff; this->stroke[SP_KNOT_STATE_NORMAL] = 0x01000000; this->stroke[SP_KNOT_STATE_MOUSEOVER] = 0x01000000; -- cgit v1.2.3