Modify

Opened 10 months ago

Closed 9 months ago

#7865 closed enhancement (fixed)

[Patch] Map icons should be less prominent when disabled or inactive

Reported by: mrwojo Owned by: team
Priority: trivial Component: Core
Version: Keywords:
Cc:

Description

Node icons and restriction relation icons use GrayFilter.createDisabledImage(Image) to indicate that they're disabled or in an inactive layer. This not only turns them gray (yay!), it also brightens them up (boo!).

The attached patch tweaks GrayFilter's parameters so that it just converts to grayscale without the extra brightness. The result is typically closer to the dark gray we use for disabled/inactive.

Attachments (2)

DisabledIcon.patch (986 bytes) - added by mrwojo 10 months ago.
7865.png (5.5 KB) - added by mrwojo 9 months ago.
active, inactive (current), inactive (patched)

Download all attachments as: .zip

Change History (8)

Changed 10 months ago by mrwojo

comment:1 Changed 10 months ago by Don-vip

Wow, I tried and find the result too dark. It's maybe just with my test case, I'll post screenshots later. You can do the same meanwhile :)

comment:2 in reply to: ↑ description Changed 9 months ago by Don-vip

Replying to mrwojo:

This not only turns them gray (yay!), it also brightens them up (boo!).

I'm reading Java 7 Features and Enhancements:

Important RFEs Addressed in Java SE 7

Area: API: AWT

Synopsis: Color alpha values are now preserved by java.awt.Color.darker() and java.awt.Color.lighter() methods.

RFE: 6783910

Did you try with Java 7 ? If it's this bug, specific to Java 6 and resolved in Java 7, we won't do anything.

Changed 9 months ago by mrwojo

active, inactive (current), inactive (patched)

comment:3 Changed 9 months ago by mrwojo

Java 7, Windows Vista, tested with JOSM head and latest release.

Image attached. That's highway=traffic_signals, amenity=parking, amenity=cafe, and tourism=motel. It's not noticeable with all node icons; traffic signals and parking were prominent when switching between layers in downtown areas.

Perhaps it's a matter of tweaking the params to GrayFilter: (true, 50) is default for createDisabledImage, (false, 0) doesn't brighten (does seem too dark for traffic signals), something less than 50 would be an improvement in my opinion. (true, 20) looked good.

comment:4 Changed 9 months ago by stoecker

@Don-vip: You wanted to supply data.

comment:5 Changed 9 months ago by Don-vip

Thanks for reminding me, I recognize I forgot this.

I just tried (true, 20) and I agree I find it much better than our current behaviour :) Fix on the way !

comment:6 Changed 9 months ago by Don-vip

  • Resolution set to fixed
  • Status changed from new to closed

In 5470/josm:

fix #7865 - Map icons should be less prominent when disabled or inactive (patch by mrwojo)

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.