Modify

Opened 13 years ago

Closed 13 years ago

#7864 closed defect (fixed)

Some primitives drawn in active color when the layer is inactive

Reported by: mrwojo Owned by: team
Priority: minor Milestone:
Component: Core Version: latest
Keywords: inactive Cc:

Description (last modified by mrwojo)

Swapping between two layers I noticed 3 4 minor cases where primitives are using their active color while the layer is inactive:

  1. Node icon selection border. Repro: Select a highway=stop node. Switch to a different layer. Stop icon remains bordered by red selection rectangle. I'd expect either the rectangle to be rendered in gray or not rendered.
  2. Area fill color. Repro: Find an area way with a fill color. Switch to a different layer. Area fill color remains as it was (it's easier to see the dark red fill of a selected area). I'd expect the area fill to be either gray or omitted.
  3. Turn restriction icon selection border. Repro: Select a turn restriction relation. Switch to different layer. Turn restriction icon remains bordered by pink selection rectangle. Again, I'd expect the rectangle to be either gray or omitted.
  4. Area text. Repro: Find an area with a displayed name. Switch to a different layer. The name text remains white-ish when it should be gray.

The attached patch does:

  1. Inactive node icon selection: Gray.
  2. Inactive area fill: Omitted. (This what's done for disabled areas. See StyledMapRenderer.java, line 118.)
  3. Inactive restriction icon selection: Gray.
  4. Inactive area text: Gray.

Attachments (1)

InactiveSelectionColor.patch (2.1 KB ) - added by mrwojo 13 years ago.

Download all attachments as: .zip

Change History (11)

in reply to:  description ; comment:1 by skyper, 13 years ago

Replying to mrwojo:

Swapping between two layers I noticed 3 minor cases where primitives are using their active color while the layer is inactive:

Would be nice if it is only the colour. Last time I checked it was quite worse: #6518 and #6447.

in reply to:  1 comment:2 by skyper, 13 years ago

Replying to skyper:

Replying to mrwojo:

Swapping between two layers I noticed 3 minor cases where primitives are using their active color while the layer is inactive:

Would be nice if it is only the colour. Last time I checked it was quite worse: #6518 and #6447.

Did run a quick check and I am able to move objects in inactive layers in all three cases:

  1. download same object twice in different layers
  2. select object
  3. switch layer
  4. select object
  5. move object
  6. switch layer
  7. move object -> object in inactive layer is moved.

Guess the problem is a bit deeper.

r5345

comment:3 by mrwojo, 13 years ago

Description: modified (diff)

by mrwojo, 13 years ago

in reply to:  1 comment:4 by mrwojo, 13 years ago

Replying to skyper:

Would be nice if it is only the colour. Last time I checked it was quite worse: #6518 and #6447.

I took a look at those issues. They appear to be separate from this, which is purely rendering. I'll add some info to #6518 based on what I found.

comment:5 by Don-vip, 13 years ago

In 5348/josm:

see #7864 - Improvements in rendering of primitives in inactive layers (patch by mrwojo)

comment:6 by Don-vip, 13 years ago

Thanks for the patch.

I have integrated the points 1, 3 and 4, they were obviously bugs. Concerning the point 2, I see it as a quite fundamental change in inactive layers rendering as areas cannot be distinguished anymore.

I don't know if it's a good idea or not and would like to hear other opinions from team members.

comment:7 by mrwojo, 13 years ago

Another possibility would be to change the fill to inactiveColor with some reasonable alpha value (the default fill alpha of 50 with dark gray isn't typically visible).

in reply to:  7 comment:8 by bastiK, 13 years ago

Replying to mrwojo:

Another possibility would be to change the fill to inactiveColor with some reasonable alpha value (the default fill alpha of 50 with dark gray isn't typically visible).

+1, basically desaturating the colors for inactive areas would be an improvement.

comment:9 by bastiK, 13 years ago

Summary: [Patch] Some primitives drawn in active color when the layer is inactiveSome primitives drawn in active color when the layer is inactive

comment:10 by Don-vip, 13 years ago

Resolution: fixed
Status: newclosed

In 5431/josm:

fix #7864 - desaturate the colors for inactive areas to alpha of 0.33f

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.