Modify

Opened 13 years ago

Closed 13 years ago

#7865 closed enhancement (fixed)

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

Reported by: mrwojo Owned by: team
Priority: trivial Milestone:
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 13 years ago.
7865.png (5.5 KB ) - added by mrwojo 13 years ago.
active, inactive (current), inactive (patched)

Download all attachments as: .zip

Change History (8)

by mrwojo, 13 years ago

Attachment: DisabledIcon.patch added

comment:1 by Don-vip, 13 years ago

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 :)

in reply to:  description comment:2 by Don-vip, 13 years ago

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.

by mrwojo, 13 years ago

Attachment: 7865.png added

active, inactive (current), inactive (patched)

comment:3 by mrwojo, 13 years ago

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 by stoecker, 13 years ago

@Don-vip: You wanted to supply data.

comment:5 by Don-vip, 13 years ago

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 by Don-vip, 13 years ago

Resolution: fixed
Status: newclosed

In 5470/josm:

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

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.