Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blend Wikidata item name in properties table with background #5

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

ygra
Copy link
Contributor

@ygra ygra commented Jan 7, 2022

... instead of always using the same color

Fixes #21752.

Before:
image
After:
image

This fix doesn't change a lot of code, but due to that it may not really be optimal. Since the original code uses Swing's HTML rendering support to change the color, this fix uses the same approach to not completely change everything. Blend ratio between foreground and background is 50/50, so effectively the foreground for the item name now has 50 % opacity. One could perhaps play around a bit more with that ratio, although 75 % opacity was too close to completely opaque in my eyes, while the current result may still be considered too light.

... instead of always using the same color

Fixes #21752.
@stoecker stoecker merged commit b4fa149 into JOSM:master Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants