Use generated icons
This commit is contained in:
parent
b68d48e75c
commit
386e04dc49
7 changed files with 1647 additions and 37 deletions
|
|
@ -5,6 +5,7 @@ import os
|
|||
import nanovg
|
||||
import perf
|
||||
import common
|
||||
import icons
|
||||
|
||||
proc events(): bool =
|
||||
result = false
|
||||
|
|
@ -92,8 +93,8 @@ proc main() =
|
|||
vg.text("Some仮名thing is up", 100, 100, 100)
|
||||
vg.drawWindow("Title", 50, 50, 300, 400)
|
||||
vg.drawLabel("Hello!", 10, 10, 280, 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.render(fps, 5, 5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue