Use generated icons

This commit is contained in:
Joey Yakimowich-Payne 2020-09-17 20:25:07 -06:00
commit 386e04dc49
7 changed files with 1647 additions and 37 deletions

View file

@ -6,6 +6,7 @@ import os
import nanovg
import perf
import common
import icons
proc events(): bool =
result = false
@ -114,8 +115,8 @@ proc main() =
vg.text("Some仮名thing is up", 100, 100, 100)
vg.drawWindow("Title", 50, 50, 300, 400)
vg.drawLabel("Hello!", 10, 10, 500, 20)
vg.drawButton(ICON_TRASH, "Delete", 100, 200, 160, 28, rgba(128, 16, 8, 255))
vg.drawButton(ICON_TRASH, "Deleter", 100, 250, 160, 28, rgba(12, 130, 80, 255))
vg.drawButton(Icon.Trash, "Delete", 100, 200, 160, 28, rgba(128, 16, 8, 255))
vg.drawButton(Icon.Trash, "Deleter", 100, 250, 160, 28, rgba(12, 130, 80, 255))
vg.drawButton("Testing", 100, 300, 160, 28)
vg.drawSearchBox("Search...", 60, 400, 280, 25)