Author Topic: Can't Delete Gradient Nodes  (Read 4608 times)

DavidBrennan

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
  • Scribus User
Can't Delete Gradient Nodes
« on: August 17, 2013, 07:26:02 pm »
Is there a way to delete a single Gradient value in the colors?  It is very easy to add new Gradient nodes, but I cannot see a way to delete them. 


utnik

  • Hero Member
  • *****
  • Posts: 1260
  • Karma: 14
Re: Can't Delete Gradient Nodes
« Reply #1 on: August 17, 2013, 08:57:29 pm »
hi david

just drag the little triangles away…

utnik

GarryP

  • Hero Member
  • *****
  • Posts: 1600
  • Karma: 25
  • Scribus User
Re: Can't Delete Gradient Nodes
« Reply #2 on: August 18, 2013, 02:50:06 pm »
One small point that I'd add is that two of the triangles can't be dragged away because Scribus always needs two gradient stops.

These two stops don't look any different to the others that you add and the only way you can find out which they are is when you can't drag them away.

It's a trivial point but it can be confusing when you first notice it.

(I added an issue about this http://bugs.scribus.net/view.php?id=10714 last year.)

utnik

  • Hero Member
  • *****
  • Posts: 1260
  • Karma: 14
Re: Can't Delete Gradient Nodes
« Reply #3 on: August 18, 2013, 03:15:44 pm »
hi garry

One small point that I'd add is that two of the triangles can't be dragged away because Scribus always needs two gradient stops.

These two stops don't look any different to the others that you add and the only way you can find out which they are is when you can't drag them away.
this is a good point – but it looks like it has been solved – at least it's clear now, wich ones can't be removed…
 
in scribus1.4.3 always the two triangles near the edges are fixed. it doesn't matter if they are set manually or not. i can live with that. but the best way would be to set all of them removable until there are only two remaining…

GarryP

  • Hero Member
  • *****
  • Posts: 1600
  • Karma: 25
  • Scribus User
Re: Can't Delete Gradient Nodes
« Reply #4 on: August 18, 2013, 03:55:25 pm »
Hi utnik.

Sorry but I'm using 1.4.3 (on OSX) and the problem hasn't been fixed, it's just been changed.

Here's a workflow to try:
* Create shape.
* Select "Horizontal Gradient"
* Drag left-hand stop to middle.
* Add new stop to the left of the middle stop.
* New left-hand stop can't be dragged away, but…
* Drag middle stop to the left of the left-hand stop.
* Left stop can be now dragged away.

And the same happens when you do the same as above but on the right instead.

So you still can't know whether a stop can be dragged away without trying it. Therefore, to me, the problem still exists.

I agree with you that all stops should be removable until you're down to two. That would make much more sense.

(P.S. I can live with this too, it just might be annoying for people who don't know what's happening.)

GarryP

  • Hero Member
  • *****
  • Posts: 1600
  • Karma: 25
  • Scribus User
Re: Can't Delete Gradient Nodes
« Reply #5 on: August 18, 2013, 04:06:00 pm »
Actually, I've just noticed that Scribus seems to re-order the stops when you move away from the Colours palette so what you said becomes correct once you do that but it's not correct while you're still in that palette.

So, it's close to being fixed but it's still confusing as it seems to work in two different ways depending on what you do. The code probably just needs a little tweaking.

utnik

  • Hero Member
  • *****
  • Posts: 1260
  • Karma: 14
Re: Can't Delete Gradient Nodes
« Reply #6 on: August 18, 2013, 04:33:53 pm »
hi garry

i just switched the positions of the color stops (shuffled them in random ways…) and see your problem now.
but i never did such a position switch in a real scribus layout work. for me this looks like setting a color gradient from position 0% to position 50%, the next one from 50% to 20% and another one from 20% to 100%, or something like that – don't know how this gradient editor works, but it may be as confused as i am with this – i never squeeze and tweak a program in such a hard way – at least not in a real work situation…

the code inside the .sla file looks correct. but that's something else than the work in progress with the color editor – the code contains only the position and color value of the stops. i suspect an incorrect handling of the sequence in the editor…

utnik

GarryP

  • Hero Member
  • *****
  • Posts: 1600
  • Karma: 25
  • Scribus User
Re: Can't Delete Gradient Nodes
« Reply #7 on: August 18, 2013, 05:07:14 pm »
Yeah, I'm guessing that the code doesn't have to change much to make this right.

The problem goes away when you go back into the palette so something is putting things right, it just needs to do it during editing rather than at some other point.