Skip to content

Refactor source into lib module; split out color handling - #4

Closed
adamwight wants to merge 10 commits into
fork-to-wikimediafrom
rerender-new-icons
Closed

adamwight wants to merge 10 commits into
fork-to-wikimediafrom
rerender-new-icons

Conversation

@adamwight

Copy link
Copy Markdown
Collaborator

No description provided.

Background from thiemowmde:

"chemist" is heavily ambiguous. Could be a science lab on a
campus. Could be an industrial site. Could be an alternative for a
pharmacy.  A quick image search leaves the impression that no country
uses a test glass to represent a pharmacy. The Maki 2 announcement
mentions Noun Project as inspiration. Searching that for "chemist"
and "pharmacy" doesn't make the situation much clearer.  The patch
that added the icon associates it with many different things.
dewikivoyage translates it as "Drogerie".  A Maki 2 issue from 2016
associates it with "pharmacy".

There are many possible replacements for "minefield", e.g.  "barrier"
or "caution". "danger" felt most appropriate.

"london-underground", "rail-above" and "rail-underground" become
"rail". I couldn't find a better alternative.
The old (maki 0.5.0) icons were rendered with a large margin which is
wasted space in a bitmap.  Instead, this patch renders the full
15x15 (units) new icons in smaller boxes with no margin.  Exact sizes
were chosen such that new icons are roughly congruent to the old ones.

There is a slight savings in the number of bits for each image.

Includes a few more symbols.
This still builds static PNGs to serve, but the source step is done
by a script.

No longer paints a stroke around glyphs, to match the new Maki style
guidelines.
This was going to be used for "chemist", mapping it to the blank pin
by giving it a target icon of "", but we might not do so.

Now the code is at least organized to make such a thing possible in
the future.
…a threshold

This makes the symbol visible on light backgrounds.
Was missing a color space conversion.  The resulting formula has been
checked against other references.
Calculate the luminance threshold dynamically, improving code
maintainability in case we need to change the color again.
@adamwight
adamwight changed the base branch from master to fork-to-wikimedia August 23, 2022 09:48
@adamwight adamwight closed this Aug 23, 2022
@adamwight
adamwight deleted the rerender-new-icons branch August 23, 2022 09:48
@adamwight
adamwight restored the rerender-new-icons branch August 23, 2022 09:49
@adamwight
adamwight deleted the rerender-new-icons branch August 23, 2022 09:55
@adamwight
adamwight restored the rerender-new-icons branch August 23, 2022 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant