gui/images: load more image assets
BIN
assets/add.png
Normal file
After Width: | Height: | Size: 733 B |
BIN
assets/delete.png
Normal file
After Width: | Height: | Size: 715 B |
BIN
assets/lightning_go.png
Normal file
After Width: | Height: | Size: 739 B |
BIN
assets/pencil.png
Normal file
After Width: | Height: | Size: 450 B |
BIN
assets/pencil_add.png
Normal file
After Width: | Height: | Size: 589 B |
BIN
assets/pencil_delete.png
Normal file
After Width: | Height: | Size: 603 B |
BIN
assets/pencil_go.png
Normal file
After Width: | Height: | Size: 666 B |
BIN
assets/resultset_next.png
Normal file
After Width: | Height: | Size: 395 B |
21
images.go
@ -10,14 +10,22 @@ import (
|
|||||||
var assetsFs embed.FS
|
var assetsFs embed.FS
|
||||||
|
|
||||||
const (
|
const (
|
||||||
imgArrowRefresh int32 = iota
|
imgAdd int32 = iota
|
||||||
|
imgArrowRefresh
|
||||||
imgChartBar
|
imgChartBar
|
||||||
imgDatabase
|
imgDatabase
|
||||||
imgDatabaseAdd
|
imgDatabaseAdd
|
||||||
imgDatabaseDelete
|
imgDatabaseDelete
|
||||||
imgDatabaseLightning
|
imgDatabaseLightning
|
||||||
imgDatabaseSave
|
imgDatabaseSave
|
||||||
|
imgDelete
|
||||||
imgLightning
|
imgLightning
|
||||||
|
imgLightningGo
|
||||||
|
imgPencil
|
||||||
|
imgPencilAdd
|
||||||
|
imgPencilDelete
|
||||||
|
imgPencilGo
|
||||||
|
imgResultsetNext
|
||||||
imgTable
|
imgTable
|
||||||
imgTableAdd
|
imgTableAdd
|
||||||
imgTableDelete
|
imgTableDelete
|
||||||
@ -48,6 +56,9 @@ func loadImages(owner vcl.IComponent) *vcl.TImageList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ilist := vcl.NewImageList(owner)
|
ilist := vcl.NewImageList(owner)
|
||||||
|
|
||||||
|
// ls assets | sort | sed -re 's~(.+)~ilist.Add(mustLoad("assets/\1"), nil)~'
|
||||||
|
ilist.Add(mustLoad("assets/add.png"), nil)
|
||||||
ilist.Add(mustLoad("assets/arrow_refresh.png"), nil)
|
ilist.Add(mustLoad("assets/arrow_refresh.png"), nil)
|
||||||
ilist.Add(mustLoad("assets/chart_bar.png"), nil)
|
ilist.Add(mustLoad("assets/chart_bar.png"), nil)
|
||||||
ilist.Add(mustLoad("assets/database.png"), nil)
|
ilist.Add(mustLoad("assets/database.png"), nil)
|
||||||
@ -55,7 +66,14 @@ func loadImages(owner vcl.IComponent) *vcl.TImageList {
|
|||||||
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_lightning.png"), nil)
|
||||||
ilist.Add(mustLoad("assets/database_save.png"), nil)
|
ilist.Add(mustLoad("assets/database_save.png"), nil)
|
||||||
|
ilist.Add(mustLoad("assets/delete.png"), nil)
|
||||||
ilist.Add(mustLoad("assets/lightning.png"), nil)
|
ilist.Add(mustLoad("assets/lightning.png"), nil)
|
||||||
|
ilist.Add(mustLoad("assets/lightning_go.png"), nil)
|
||||||
|
ilist.Add(mustLoad("assets/pencil.png"), nil)
|
||||||
|
ilist.Add(mustLoad("assets/pencil_add.png"), nil)
|
||||||
|
ilist.Add(mustLoad("assets/pencil_delete.png"), nil)
|
||||||
|
ilist.Add(mustLoad("assets/pencil_go.png"), nil)
|
||||||
|
ilist.Add(mustLoad("assets/resultset_next.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)
|
||||||
@ -67,6 +85,7 @@ func loadImages(owner vcl.IComponent) *vcl.TImageList {
|
|||||||
ilist.Add(mustLoad("assets/vendor_mysql.png"), nil)
|
ilist.Add(mustLoad("assets/vendor_mysql.png"), nil)
|
||||||
ilist.Add(mustLoad("assets/vendor_redis.png"), nil)
|
ilist.Add(mustLoad("assets/vendor_redis.png"), nil)
|
||||||
ilist.Add(mustLoad("assets/vendor_sqlite.png"), nil)
|
ilist.Add(mustLoad("assets/vendor_sqlite.png"), nil)
|
||||||
|
|
||||||
return ilist
|
return ilist
|
||||||
|
|
||||||
}
|
}
|
||||||
|