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

Icons used at WikiTree #58

Open
MichalVasut opened this issue Oct 17, 2022 · 15 comments
Open

Icons used at WikiTree #58

MichalVasut opened this issue Oct 17, 2022 · 15 comments

Comments

@MichalVasut
Copy link
Contributor

MichalVasut commented Oct 17, 2022

Is there some overview of icons that can be used by developers? Or is it possible to make dump of icons from main wikitree.com server into some archive? Those icons are already public (downloaded to browser when page that contains them is loaded), but it's not easy to find them.

I know that current way of using these icons is by using <img> referencing to images at wikitree.com. This way is very labour intensive in case somebody decides to change those icons. More over those icons are tiny bitmaps (probably there since the begining), where user must put some effort into pointing at them with mouse cursor (not to mention some fat finger). I can imagine even some users with poor sight that have issues with even finding them.
Better solution (in terms of upgrades and maintenance) is using CSS classes, where icons (either bitmap or svg) are defined in one place and are easily referenced via class - updated automatically thank to that in webpages.

Second part of the question - are there any restrictions in using icons from web? Let's say some licence restrictions. There are free or opensource iconsets and some generic icons would make sense to use (e. g. print, share, user, info, error, warning,...)

@GeoffRiley
Copy link
Contributor

There's the rather large collection of icons provided by FontAwsome that can be used in opensource projects. I don't know if you'll find what you want, but there's a very wide range of stuff.

@MichalVasut
Copy link
Contributor Author

Yeah, I know about this collection and there is plenty of icons there (more than enough for me 😄). There are also other opensource iconsets.

That's for second part (rather into the future), but I'm more interested in first part.

@bcaseyrls
Copy link
Contributor

While there is a page with some example/reference styles (colors, etc) at https://www.wikitree.com/css/examples.html, we don't have a standard set of icons. I agree some of the ones in use are excessively tiny. Setting up some icons that we can use with <i class="wt-icon wt-icon-something"> or something similar would be helpful. It would centralize the actual image definition of the icon (whether a PNG, SVG or whatever) into the CSS file so that any changes would happen across all of the views without having to search out individual img tags. Looking over the views so far, I'm not sure what sorts of starting icons/functions we need that are shared.

@MichalVasut
Copy link
Contributor Author

MichalVasut commented Oct 25, 2022

1st of all, is it posiible to share here (e.g. in archive) icons from /images/icons/ (e.g. https://www.wikitree.com/images/icons/search-submit-icon.png.pagespeed.ce.olcpRBRiHF.png)? It would be nice starting point to create some starting iconmap somewhere and define classes for it - those are icons that we have. - well yeah, tiny & possibly outdated, but still - it's a base and once it'll be defined in css, changing the actual bitmap is not so complicated.

There are also icons that we will need in the future - so we'll extend the iconmap.

Also there are now icons in many tiny gifs - it's not very efficient to download many smaller files - not because of the size, but because of establishing the connection.

@bcaseyrls
Copy link
Contributor

I"m not sure what you mean by sharing here "in archive". I can certainly get a list of image URLs for icons at WikiTree. That could go "here" in our discussion or in a comment in tree.css or somewhere else. Of course the site is decades old and, maybe, has a bit of cruft, so I'm not sure it's useful to just grab a list of all of the files there. I'll see if it's not too hard to get a list of ones actually in use on various pages.

BTW, the URL you have above has been munged through the PageSpeed mod. The URL of the original image (which we'd want to use in any CSS icon definitions) is https://www.wikitree.com/images/icons/search-submit-icon.png.

Developing a set of useful icon CSS, along with scalable SVG icons and/or icon bundles for efficiency could be of great use for the rest of WikiTree too, and would be a great return on the effort put into these collaborative open-source pieces.

@GeoffRiley
Copy link
Contributor

BTW, the URL you have above has been munged through the PageSpeed mod. The URL of the original image (which we'd want to use in any CSS icon definitions) is https://www.wikitree.com/images/icons/search-submit-icon.png.

Aha! That's a little nugget I'd been looking for… I didn't think that the PageSpeed filenames could be the right ones to use. That's a great help.

…and I have a feeling Michal is talking about copying the icon files over to the apps server for the shorter urls?

@harrislineage
Copy link
Member

I have most of the icons already documented. Let me see where I can stash the information.

@MichalVasut
Copy link
Contributor Author

I have most of the icons already documented. Let me see where I can stash the information.

Wow, cool!

@harrislineage
Copy link
Member

I guess I can just stash the information here...

WikiTree Images / Icons

Gender Placeholder

Icon URL
female https://www.wikitree.com/images/icons/female.gif
male https://www.wikitree.com/images/icons/male.gif

DNA

Make note of the /images/icons/dna/ subfolder used for test-specific icons.

Icon URL
dna https://www.wikitree.com/images/icons/dna.gif
au https://www.wikitree.com/images/icons/dna/au.gif
mt https://www.wikitree.com/images/icons/dna/mt.gif
X https://www.wikitree.com/images/icons/dna/X.gif
Y https://www.wikitree.com/images/icons/dna/Y.gif

Navigation

Icon URL
add-nav https://www.wikitree.com/images/icons/add-nav.gif
arrow https://www.wikitree.com/images/icons/arrow.gif
arr_blue_2 https://www.wikitree.com/css/images/arr_blue_2.gif
find-nav https://www.wikitree.com/images/icons/find-nav.gif
help-nav https://www.wikitree.com/images/icons/help-nav.gif
home-nav https://www.wikitree.com/images/icons/home-nav.gif
person-nav https://www.wikitree.com/images/icons/person-nav.gif

Privacy

Open

Icon URL
privacy60 https://www.wikitree.com/images/icons/privacy60.png
bullet60 https://www.wikitree.com/images/icons/bullet60.gif

Public

Icon URL
privacy50 https://www.wikitree.com/images/icons/privacy50.png
bullet50 https://www.wikitree.com/images/icons/bullet50.gif

Private with Public Biography and Family Tree

Icon URL
privacy40 https://www.wikitree.com/images/icons/privacy40.png
bullet40 https://www.wikitree.com/images/icons/bullet40.gif

Private with Public Family Tree

Icon URL
privacy35 https://www.wikitree.com/images/icons/privacy35.png
bullet35 https://www.wikitree.com/images/icons/bullet35.gif

Private with Public Biography

Icon URL
privacy30 https://www.wikitree.com/images/icons/privacy30.png
bullet30 https://www.wikitree.com/images/icons/bullet30.gif

Private

Icon URL
privacy20 https://www.wikitree.com/images/icons/privacy20.png
bullet20 https://www.wikitree.com/images/icons/bullet20.gif

Unlisted

Icon URL
privacy10 https://www.wikitree.com/images/icons/privacy10.png
bullet10 https://www.wikitree.com/images/icons/bullet10.gif

Status

Icon URL
status-icon png pagespeed ce oqHgBTfivb https://www.wikitree.com/images/status-icon.png

Relationship

Icon URL
descendant-link gif pagespeed ce otv5KRfaLm https://www.wikitree.com/images/icons/descendant-link.gif
pedigree https://www.wikitree.com/images/icons/pedigree.gif
relationship https://www.wikitree.com/images/icons/relationship.gif
tree-more-m https://www.wikitree.com/images/icons/tree-more-m.gif
tree-more-p https://www.wikitree.com/images/icons/tree-more-p.gif

Others

Icon URL
add https://www.wikitree.com/images/icons/add.gif
ahnentafel https://www.wikitree.com/images/icons/ahnentafel.gif
check https://www.wikitree.com/images/icons/check.png
cousin-bait https://www.wikitree.com/images/icons/cousin-bait.gif
edit https://www.wikitree.com/images/icons/edit.gif
family-group https://www.wikitree.com/images/icons/family-group.gif
gear https://www.wikitree.com/images/icons/gear.gif
help https://www.wikitree.com/images/icons/help.gif
list-star https://www.wikitree.com/images/icons/list-star.png
mail https://www.wikitree.com/images/icons/mail.gif
map https://www.wikitree.com/images/icons/map.gif
merging https://www.wikitree.com/images/icons/merging.gif
photo https://www.wikitree.com/images/icons/photo.gif
plus-icon https://www.wikitree.com/images/icons/plus-icon.png
plus-icon-dark https://www.wikitree.com/images/icons/plus-icon-dark.png
postcard https://www.wikitree.com/images/icons/postcard.gif
printable-white https://www.wikitree.com/images/icons/printable-white.gif
question-icon https://www.wikitree.com/images/icons/question-icon.png
question-icon-dark https://www.wikitree.com/images/icons/question-icon-dark.png
search-submit-icon https://www.wikitree.com/images/icons/search-submit-icon.png
scissors https://www.wikitree.com/images/icons/scissors.png
shareable https://www.wikitree.com/images/icons/shareable.gif
surnames https://www.wikitree.com/images/icons/surnames.gif
tree-tiny https://www.wikitree.com/images/icons/tree-tiny.gif
widget https://www.wikitree.com/images/icons/widget.gif

@MichalVasut
Copy link
Contributor Author

Wow, that's IMPRESSIVE! This is starting point. Thanks.

@GeoffRiley
Copy link
Contributor

@harrislineage, I've added this list of icons to the project Wiki to make it easier to locate and it's documentational rather than programming related.

@udjeni
Copy link
Contributor

udjeni commented Nov 10, 2022

What is the possibility that we could get a gender-neutral version of the gender placeholder gifs? Even if it is the male one with , say, a greenish background?

@MichalVasut
Copy link
Contributor Author

MichalVasut commented Nov 10, 2022

Those are imho sex-placeholders - only 2 sexes (male & female), gender is something else.
Resp. biologically, the child can be only descendant of male & female. How those individuals feel or identify themselves is different thing.

@MichalVasut
Copy link
Contributor Author

MichalVasut commented Nov 10, 2022

btw, for those privacy bullets before fields (e.g. on Edit page), there is no need for images, just style that link with ccs (adding 2 classes) and it would also work better at dark backgroud (theme) - no jagged light edges.

.privacy-bullet{
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.public{
  # I would expect that this color coding could be also used in other places, like lock icons
  background: #a7d16e !important; 
}

so lets say

<a href="/wiki/Help:Privacy#Public_information" target="_Privacy" class="privacy-bullet public"></a>

would look like

image

image

Up - css styled
Down - old gif icon

@bcaseyrls
Copy link
Contributor

The image for profiles with either no "Sex at Birth" (previously Gender, which is the name of the field out of the API) or with DataStatus.Gender = 'blank' (other/do not display), is:

https://www.wikitree.com/images/icons/no-gender.gif

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

No branches or pull requests

5 participants