images: add more images

This commit is contained in:
mappu 2024-06-15 11:42:13 +12:00
parent 038eb44f48
commit 1035086ed4
4 changed files with 14 additions and 8 deletions

BIN
assets/chart_bar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 775 B

BIN
assets/lightning.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 B

View File

@ -10,14 +10,17 @@ import (
var assetsFs embed.FS var assetsFs embed.FS
const ( const (
imgDatabase = 0 imgChartBar int32 = iota
imgDatabaseAdd = 1 imgDatabase
imgDatabaseDelete = 2 imgDatabaseAdd
imgDatabaseSave = 3 imgDatabaseDelete
imgTable = 4 imgDatabaseLightning
imgTableAdd = 5 imgDatabaseSave
imgTableDelete = 6 imgLightning
imgTableSave = 7 imgTable
imgTableAdd
imgTableDelete
imgTableSave
) )
func loadImages(owner vcl.IComponent) *vcl.TImageList { func loadImages(owner vcl.IComponent) *vcl.TImageList {
@ -37,10 +40,13 @@ func loadImages(owner vcl.IComponent) *vcl.TImageList {
} }
ilist := vcl.NewImageList(owner) ilist := vcl.NewImageList(owner)
ilist.Add(mustLoad("assets/chart_bar.png"), nil)
ilist.Add(mustLoad("assets/database.png"), nil) ilist.Add(mustLoad("assets/database.png"), nil)
ilist.Add(mustLoad("assets/database_add.png"), nil) ilist.Add(mustLoad("assets/database_add.png"), nil)
ilist.Add(mustLoad("assets/database_delete.png"), nil) ilist.Add(mustLoad("assets/database_delete.png"), nil)
ilist.Add(mustLoad("assets/database_lightning.png"), nil)
ilist.Add(mustLoad("assets/database_save.png"), nil) ilist.Add(mustLoad("assets/database_save.png"), nil)
ilist.Add(mustLoad("assets/lightning.png"), nil)
ilist.Add(mustLoad("assets/table.png"), nil) ilist.Add(mustLoad("assets/table.png"), nil)
ilist.Add(mustLoad("assets/table_add.png"), nil) ilist.Add(mustLoad("assets/table_add.png"), nil)
ilist.Add(mustLoad("assets/table_delete.png"), nil) ilist.Add(mustLoad("assets/table_delete.png"), nil)