It looks like you're new here. If you want to get involved, click one of these buttons!
application:setBackgroundColor("0x3A3F3E") pcall(function() require "json" end) local function load( filename ) local path = filename..".json" local contents -- will hold contents of file local file = io.open( path, "r" ) -- io.open opens a file at path. returns nil if no file found if file then contents = file:read( "*a" ) -- read all contents of file into a string io.close( file ) -- close the file after using it return json.decode( contents ) -- return Decoded Json string else return nil -- or return nil if file didn't ex end end local iconsSVG = load("paths") print("\n",iconsSVG["dice-multiple"]) print(iconsSVG["eye-off"]) print(iconsSVG["account-alert"]) print(iconsSVG["bus-side"]) local icon = iconsSVG["dice-multiple"] local p=Path2D.new() p:setSvgPath(icon) p:setLineThickness(0) -- Not Outline p:setFillColor(0x4D524C) p:setAnchorPosition(-50,-50) p:setScale(3) p:setConvex(false) -- some icons aren't convex stage:addChild(p) |
Likes: SinisterSoft, antix
Comments
https://material.io/icons/
In the downloaded zips it's best to use the ones for iOS because they come in x1, x2 and x3 sizes and are therefore very compatible with Gideros scaling.
On the other hand I've compared between https://github.com/Templarian/MaterialDesign and https://material.io/icons/ and you are right there are not all the icons that google has in this question
I think you could do a web scraping on Lua to access the svg icons and you get more flexibility in this matter some like a web app for business.
[-] Liasoft
Likes: HubertRonald