BangleApps/apps/icons
Anton cad2ffe283 Bump version for all apps with fixed undefined variables 2024-03-13 11:56:27 +01:00
..
gen Fix apps with undefined variables 2024-03-13 11:51:40 +01:00
ChangeLog Bump version for all apps with fixed undefined variables 2024-03-13 11:56:27 +01:00
README.md Added icons library for easy in-app icons 2024-02-06 15:57:55 +00:00
app.png Added icons library for easy in-app icons 2024-02-06 15:57:55 +00:00
icons.img Added icons library for easy in-app icons 2024-02-06 15:57:55 +00:00
lib.js Added icons library for easy in-app icons 2024-02-06 15:57:55 +00:00
metadata.json Bump version for all apps with fixed undefined variables 2024-03-13 11:56:27 +01:00

README.md

Icons Library

This library contains a set of icons that might be useful in your application, as well as a chooser for those icons:

// get a list of available icons
require("icons").getIconNames()

// draw an icon
g.drawImage(require("icons").getIcon("light"),0,0);

// Allow the user to request an icon
require("icons").showIconChooser().then(function(iconName) {
  console.log("User chose "+iconName);
}, function() {
  console.log("User Cancelled");
});

To ensure the app loader auto-installs this module along with your app, just add the line "dependencies" : { "messageicons":"module" }, to your metadata.json file.