From 27f998e38916a7dde49434c452a58472c8f3dbe4 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Wed, 10 Jun 2020 00:28:03 -0400 Subject: [PATCH] Various cosmetic improvements that deal primarily with proper highlighting of object borders, with particular focus on comments. See comments in the code for more info. --- pd/nw/css/default.css | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pd/nw/css/default.css b/pd/nw/css/default.css index ea5ea5da9..694e20354 100644 --- a/pd/nw/css/default.css +++ b/pd/nw/css/default.css @@ -312,9 +312,10 @@ text { //cursor: default; } -/* not sure if this is still needed */ +/* not sure if this is still needed... + updated the coloring just in case */ .selected_border { - stroke: blue; + stroke: #e87216; stroke-dasharray: none; stroke-width: 1; } @@ -391,6 +392,12 @@ text { stroke-dasharray: 3 2; } +/* ico@vt.edu: added selected border coloring + in edit mode only */ +#patchsvg.editmode .comment.selected .border { + stroke: #e87216; +} + /* A little hack for special case of [cnv]. All other iemguis have a black border, but [cnv] sets its selection rectangle to the @@ -418,14 +425,17 @@ text { in plain English: This lets us highlight an object's border, unless it is inside a gop canvas. + + ico@vt.edu added selection highlight only if we are in editmode */ -:not(.gop).selected .border { +#patchsvg.editmode :not(.gop).selected .border { stroke: #e87216; display: inline; } -/* text inside selected objects */ -:not(.gop).selected text { +/* text inside selected objects + ico@vt.edu added selection highlight only if we are in editmode */ +#patchsvg.editmode :not(.gop).selected text { fill: #e87216; } -- GitLab