summaryrefslogtreecommitdiffstats
path: root/src/knot.cpp
diff options
context:
space:
mode:
authorAntonio Ospite <ao2@ao2.it>2018-10-30 16:17:09 +0000
committerAntonio Ospite <ao2@ao2.it>2018-11-01 17:22:44 +0000
commit4b785ac22fc617aef70000be1d7385ef354d28e9 (patch)
tree544812cfc875505829ea788f3c58c93b281d0835 /src/knot.cpp
parentCI: remove redundant "make test" (diff)
downloadinkscape-4b785ac22fc617aef70000be1d7385ef354d28e9.tar.gz
inkscape-4b785ac22fc617aef70000be1d7385ef354d28e9.zip
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.
Diffstat (limited to 'src/knot.cpp')
-rw-r--r--src/knot.cpp4
1 files changed, 2 insertions, 2 deletions
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;