icons4menu

SVG and PNG Icons for Menus and Buttons that can be used in AppLSAC, Electron application or in general in WebApps.

Usage no npm install needed!

<script type="module">
  import icons4menu from 'https://cdn.skypack.dev/icons4menu';
</script>

README

Icons4Menu

This repository is a SVG images resource based on SVG icons JQuery Mobile 1.4.5 and extended with SVG icons from Wiki Commons. The icons are primary collected for menus in webbased application or for icons in buttons.

Usage of Icons4Menu - WebApps

Icons4Menu are generated for the Wikiversity Learning Resource about AppLSAC.

Download of Icons with a Script

The icons can be downloaded with a script:

  • wget_icons.sh
  • The download of icons for your WebApp (resp. AppLSAC) can be started from the shell command line with
   sh ./wget_icons.sh
  • the script call of wget_icons.sh downloads the SVG icons of this repository and it is equivalent to the script call:
   sh ./wget_icons.sh svg
  • if you want to download the PNG icons of the repository (JQuery Mobile 1.4.5 - CC0) you can call the script with the parameter png:
   sh ./wget_icons.sh png

Update the wget_icons.sh Script

Any time new icons are added to the repository icons4menu the script wget_icons.sh is updated as well, because the new icons are added to the list of wget download commands in the script. There is an easy way to update the wget_icons.sh script to the latest version by downloading the script update_wget_icons.sh. If you want to use the update script, navigate to the folder in which you want to have the icons4menu folder img/ and then download the script with:

  wget https://niebert.github.io/icons4menu/update_wget_icons.sh

Please check the content of the script before executing, so that you are sure that the script does what you expect the script to (i.e. updating the script wget_icons.sh). Then check the content of wget_icons.sh. Performs the script the expected down or do you want to reduce the number of downloaded icons before executing the script wget_icons.sh. If you are sure that the script download all the icons you need, perform the download operation by calling:

  sh ./wget_icons.sh

JSON file json4icons.json and json4icons.js

The JSON file json4icons.json contains a list of all icons with

  • name: filename,
  • path: the path to the icon,
  • license: the license information for the icon,
  • raw: available only for SVG (Scalable Vector Graphics) images. raw contains the raw string content was added to the JSON. This was added for transparent encoding of the SVG and those developers that prefer to use the raw string format in XML for the image can use that. In a browser you can convert
  • src: is the base64 encoded data of the image as Data URL that can used in images in the DOM. The source us either the XML source text of the SVG image or the binary data as base64 encoded data of the image.

The file json4icons.js is a library that populates a hash object vDataJSON defined with var vDataJSON = {}; in the main HTML file that embeds the icons4menu.

  • used is boolean that can be set by an application to reduce the number of icons in the JSON data to the used icons. Set all used icons to true and remove all the unused icons from the JSON to reduce the size of the JSON especially for WebApps (see also AppLSAC on Wikiversity ).

Example Icon Record in json4icons.js

{
    "name": "arrow-r-black.svg",
    "path": "img/icons-svg",
    "used": false,
    "src": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0....",
    "license": "CC0",
    "group": "arrow",
    "raw": "<?xml version=\"1.0\"...",
    "wikicommons": "https://jquerymobile.com/download/"
}

The content in src and raw are shortend so that the record fits into this README page.

JSON File Icons4Menu

The repository contains also a JSON file with all icons of the repository. The JSON file json4icons.json can be used to identify the used icons with NodeJS and delete the unused icons from your img/ folder of your WebApp to save disk space and reduce the size of your WebApp.

Even if you remove icons from your WebApp in the folder img/ you should keep the license file LICENSE_Jquery_Mobile.txt, README.md and README_Icons4Menu.html in that repository for licensing information about the icons.

Preview All Icons4Menu

The listed icons below do not contain the JQuery Mobile 1.4.5 Icons. To preview all icons for navigation menus see

Added Icons from WikiCommons

The following icons are selected from the following SVG-Icons in Wiki Commons. For FontAwesome Icon survey see FontAwesome 4.7.0 for finding the appropriate icon file name.

Load, Save, Print, Cancel, Trash, Settings

Icon File Folder Source File Licence Group
action-black.png img/icons-png JQ-action-black.png CC0 main
action-white.png img/icons-png JQ-action-white.png CC0 main
grid-black.png img/icons-png JQ-grid-black.png CC0 main
grid-white.png img/icons-png JQ-grid-white.png CC0 main
home-black.png img/icons-png JQ-home-black.png CC0 main
home-white.png img/icons-png JQ-home-white.png CC0 main
info-black.png img/icons-png JQ-info-black.png CC0 main
info-white.png img/icons-png JQ-info-white.png CC0 main
shop-black.png img/icons-png JQ-shop-black.png CC0 main
shop-white.png img/icons-png JQ-shop-white.png CC0 main
action-black.svg img/icons-svg JQ-action-black.svg CC0 main
action-white.svg img/icons-svg JQ-action-white.svg CC0 main
action.svg img/icons-svg JQ-action.svg CC0 main
fa-folder-open-black.svg img/icons-svg Folder_open_alt_font_awesome.svg CC BY-SA 3.0 main
fa-folder-open-white.svg img/icons-svg Folder_open_alt_font_awesome.svg CC BY-SA 3.0 main
fa-folder-open.svg img/icons-svg Folder_open_alt_font_awesome.svg CC BY-SA 3.0 main
fa-hamburger-icon-black.svg img/icons-svg Reorder_font_awesome.svg CC BY-SA 3.0 main
fa-hamburger-icon-white.svg img/icons-svg Reorder_font_awesome.svg CC BY-SA 3.0 main
fa-hamburger-icon.svg img/icons-svg Reorder_font_awesome.svg CC BY-SA 3.0 main
fa-print-black.svg img/icons-svg Print_font_awesome.svg CC BY-SA 3.0 main
fa-print-white.svg img/icons-svg Print_font_awesome.svg CC BY-SA 3.0 main
fa-print.svg img/icons-svg Print_font_awesome.svg CC BY-SA 3.0 main
fa-settings-black.svg img/icons-svg Cog_font_awesome.svg CC BY-SA 3.0 main
fa-settings-white.svg img/icons-svg Cog_font_awesome.svg CC BY-SA 3.0 main
fa-settings.svg img/icons-svg Cog_font_awesome.svg CC BY-SA 3.0 main
fa-trash-black.svg img/icons-svg Trash_font_awesome.svg CC BY-SA 3.0 main
fa-trash-white.svg img/icons-svg Trash_font_awesome.svg CC BY-SA 3.0 main
fa-trash.svg img/icons-svg Trash_font_awesome.svg CC BY-SA 3.0 main
grid-black.svg img/icons-svg JQ-grid-black.svg CC0 main
grid-white.svg img/icons-svg JQ-grid-white.svg CC0 main
grid.svg img/icons-svg JQ-grid.svg CC0 main
home-black.svg img/icons-svg JQ-home-black.svg CC0 main
home-white.svg img/icons-svg JQ-home-white.svg CC0 main
home.svg img/icons-svg JQ-home.svg CC0 main
info-black.svg img/icons-svg JQ-info-black.svg CC0 main
info-white.svg img/icons-svg JQ-info-white.svg CC0 main
info.svg img/icons-svg JQ-info.svg CC0 main
shop-black.svg img/icons-svg JQ-shop-black.svg CC0 main
shop-white.svg img/icons-svg JQ-shop-white.svg CC0 main
shop.svg img/icons-svg JQ-shop.svg CC0 main

Action and Processes

Icon File Folder Source File Licence Group
alert-black.png img/icons-png JQ-alert-black.png CC0 action
alert-white.png img/icons-png JQ-alert-white.png CC0 action
forbidden-black.png img/icons-png JQ-forbidden-black.png CC0 action
forbidden-white.png img/icons-png JQ-forbidden-white.png CC0 action
minus-black.png img/icons-png JQ-minus-black.png CC0 action
minus-white.png img/icons-png JQ-minus-white.png CC0 action
plus-black.png img/icons-png JQ-plus-black.png CC0 action
plus-white.png img/icons-png JQ-plus-white.png CC0 action
refresh-black.png img/icons-png JQ-refresh-black.png CC0 action
refresh-white.png img/icons-png JQ-refresh-white.png CC0 action
star-black.png img/icons-png JQ-star-black.png CC0 action
star-white.png img/icons-png JQ-star-white.png CC0 action
tag-black.png img/icons-png JQ-tag-black.png CC0 action
tag-white.png img/icons-png JQ-tag-white.png CC0 action
alert-black.svg img/icons-svg JQ-alert-black.svg CC0 action
alert-white.svg img/icons-svg JQ-alert-white.svg CC0 action
fa-cancel-black.svg img/icons-svg Remove_font_awesome.svg CC BY-SA 3.0 action
fa-cancel-red.svg img/icons-svg Remove_font_awesome.svg CC BY-SA 3.0 action
fa-cancel-white.svg img/icons-svg Remove_font_awesome.svg CC BY-SA 3.0 action
fa-cancel.svg img/icons-svg Remove_font_awesome.svg CC BY-SA 3.0 action
fa-spinner-black.svg img/icons-svg Spinner_font_awesome.svg CC BY-SA 3.0 action
fa-spinner-white.svg img/icons-svg Spinner_font_awesome.svg CC BY-SA 3.0 action
fa-spinner.svg img/icons-svg Spinner_font_awesome.svg CC BY-SA 3.0 action
fa-undo-black.svg img/icons-svg Undo_font_awesome.svg CC BY-SA 3.0 action
fa-undo-white.svg img/icons-svg Undo_font_awesome.svg CC BY-SA 3.0 action
fa-undo.svg img/icons-svg Undo_font_awesome.svg CC BY-SA 3.0 action
forbidden-black.svg img/icons-svg JQ-forbidden-black.svg CC0 action
forbidden-white.svg img/icons-svg JQ-forbidden-white.svg CC0 action
forbidden.svg img/icons-svg JQ-forbidden.svg CC0 action
minus-black.svg img/icons-svg JQ-minus-black.svg CC0 action
minus-white.svg img/icons-svg JQ-minus-white.svg CC0 action
minus.svg img/icons-svg JQ-minus.svg CC0 action
plus-black.svg img/icons-svg JQ-plus-black.svg CC0 action
plus-white.svg img/icons-svg JQ-plus-white.svg CC0 action
plus.svg img/icons-svg JQ-plus.svg CC0 action
refresh-black.svg img/icons-svg JQ-refresh-black.svg CC0 action
refresh-white.svg img/icons-svg JQ-refresh-white.svg CC0 action
refresh.svg img/icons-svg JQ-refresh.svg CC0 action
star-black.svg img/icons-svg JQ-star-black.svg CC0 action
star-white.svg img/icons-svg JQ-star-white.svg CC0 action
star.svg img/icons-svg JQ-star.svg CC0 action
tag-black.svg img/icons-svg JQ-tag-black.svg CC0 action
tag-white.svg img/icons-svg JQ-tag-white.svg CC0 action
tag.svg img/icons-svg JQ-tag.svg CC0 action

Arrow

Icon File Folder Source File Licence Group
arrow-d-black.png img/icons-png JQ-arrow-d-black.png CC0 arrow
arrow-d-l-black.png img/icons-png JQ-arrow-d-l-black.png CC0 arrow
arrow-d-l-white.png img/icons-png JQ-arrow-d-l-white.png CC0 arrow
arrow-d-r-black.png img/icons-png JQ-arrow-d-r-black.png CC0 arrow
arrow-d-r-white.png img/icons-png JQ-arrow-d-r-white.png CC0 arrow
arrow-d-white.png img/icons-png JQ-arrow-d-white.png CC0 arrow
arrow-l-black.png img/icons-png JQ-arrow-l-black.png CC0 arrow
arrow-l-white.png img/icons-png JQ-arrow-l-white.png CC0 arrow
arrow-r-black.png img/icons-png JQ-arrow-r-black.png CC0 arrow
arrow-r-white.png img/icons-png JQ-arrow-r-white.png CC0 arrow
arrow-u-black.png img/icons-png JQ-arrow-u-black.png CC0 arrow
arrow-u-l-black.png img/icons-png JQ-arrow-u-l-black.png CC0 arrow
arrow-u-l-white.png img/icons-png JQ-arrow-u-l-white.png CC0 arrow
arrow-u-r-black.png img/icons-png JQ-arrow-u-r-black.png CC0 arrow
arrow-u-r-white.png img/icons-png JQ-arrow-u-r-white.png CC0 arrow
arrow-u-white.png img/icons-png JQ-arrow-u-white.png CC0 arrow
arrow-d-black.svg img/icons-svg JQ-arrow-d-black.svg CC0 arrow
arrow-d-l-black.svg img/icons-svg JQ-arrow-d-l-black.svg CC0 arrow
arrow-d-l-white.svg img/icons-svg JQ-arrow-d-l-white.svg CC0 arrow
arrow-d-r-black.svg img/icons-svg JQ-arrow-d-r-black.svg CC0 arrow
arrow-d-r-white.svg img/icons-svg JQ-arrow-d-r-white.svg CC0 arrow
arrow-d-white.svg img/icons-svg JQ-arrow-d-white.svg CC0 arrow
arrow-d.svg img/icons-svg JQ-arrow-d.svg CC0 arrow
arrow-l-black.svg img/icons-svg JQ-arrow-l-black.svg CC0 arrow
arrow-l-white.svg img/icons-svg JQ-arrow-l-white.svg CC0 arrow
arrow-l.svg img/icons-svg JQ-arrow-l.svg CC0 arrow
arrow-r-black