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)
Change History (8)
by , 13 years ago
Attachment: | DisabledIcon.patch added |
---|
comment:1 by , 13 years ago
comment:2 by , 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.
comment:3 by , 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:5 by , 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 !
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 :)