Sfoglia il codice sorgente

gui builder development...

created icon package under assets to contain icon codepoints
original genicodes command renamed to g3nicodes and moved to the engine
tools directory
leonsal 8 anni fa
parent
commit
ba542d837e

+ 4 - 4
gui/assets/data.go

@@ -86,7 +86,7 @@ func fontsFreemonoTtf() (*asset, error) {
 		return nil, err
 	}
 
-	info := bindataFileInfo{name: "fonts/FreeMono.ttf", size: 592632, mode: os.FileMode(420), modTime: time.Unix(1499641912, 0)}
+	info := bindataFileInfo{name: "fonts/FreeMono.ttf", size: 592632, mode: os.FileMode(436), modTime: time.Unix(1512153466, 0)}
 	a := &asset{bytes: bytes, info: info}
 	return a, nil
 }
@@ -106,7 +106,7 @@ func fontsFreesansTtf() (*asset, error) {
 		return nil, err
 	}
 
-	info := bindataFileInfo{name: "fonts/FreeSans.ttf", size: 1563256, mode: os.FileMode(420), modTime: time.Unix(1499641912, 0)}
+	info := bindataFileInfo{name: "fonts/FreeSans.ttf", size: 1563256, mode: os.FileMode(436), modTime: time.Unix(1512153466, 0)}
 	a := &asset{bytes: bytes, info: info}
 	return a, nil
 }
@@ -126,7 +126,7 @@ func fontsFreesansboldTtf() (*asset, error) {
 		return nil, err
 	}
 
-	info := bindataFileInfo{name: "fonts/FreeSansBold.ttf", size: 416128, mode: os.FileMode(420), modTime: time.Unix(1499641912, 0)}
+	info := bindataFileInfo{name: "fonts/FreeSansBold.ttf", size: 416128, mode: os.FileMode(436), modTime: time.Unix(1512153466, 0)}
 	a := &asset{bytes: bytes, info: info}
 	return a, nil
 }
@@ -146,7 +146,7 @@ func fontsMaterialiconsRegularTtf() (*asset, error) {
 		return nil, err
 	}
 
-	info := bindataFileInfo{name: "fonts/MaterialIcons-Regular.ttf", size: 128180, mode: os.FileMode(420), modTime: time.Unix(1499642283, 0)}
+	info := bindataFileInfo{name: "fonts/MaterialIcons-Regular.ttf", size: 128180, mode: os.FileMode(436), modTime: time.Unix(1512153466, 0)}
 	a := &asset{bytes: bytes, info: info}
 	return a, nil
 }

+ 1 - 1
gui/assets/gen.go

@@ -5,4 +5,4 @@ package assets
 // >go get -u github.com/jteeuwen/go-bindata/...
 
 //go:generate go-bindata -o data.go -pkg assets fonts
-//go:generate genicodes  genicodes/codepoints icodes.go
+//go:generate g3nicodes -pkg icon icon/codepoints icon/icodes.go

+ 0 - 941
gui/assets/icodes.go

@@ -1,941 +0,0 @@
-//
-// This file was generated from the original 'codepoints' file
-// from the material design icon fonts:
-// https://github.com/google/material-design-icons
-//
-package assets
-
-const (
-	N3dRotation                           = 0xe84d
-	AcUnit                                = 0xeb3b
-	AccessAlarm                           = 0xe190
-	AccessAlarms                          = 0xe191
-	AccessTime                            = 0xe192
-	Accessibility                         = 0xe84e
-	Accessible                            = 0xe914
-	AccountBalance                        = 0xe84f
-	AccountBalanceWallet                  = 0xe850
-	AccountBox                            = 0xe851
-	AccountCircle                         = 0xe853
-	Adb                                   = 0xe60e
-	Add                                   = 0xe145
-	AddAPhoto                             = 0xe439
-	AddAlarm                              = 0xe193
-	AddAlert                              = 0xe003
-	AddBox                                = 0xe146
-	AddCircle                             = 0xe147
-	AddCircleOutline                      = 0xe148
-	AddLocation                           = 0xe567
-	AddShoppingCart                       = 0xe854
-	AddToPhotos                           = 0xe39d
-	AddToQueue                            = 0xe05c
-	Adjust                                = 0xe39e
-	AirlineSeatFlat                       = 0xe630
-	AirlineSeatFlatAngled                 = 0xe631
-	AirlineSeatIndividualSuite            = 0xe632
-	AirlineSeatLegroomExtra               = 0xe633
-	AirlineSeatLegroomNormal              = 0xe634
-	AirlineSeatLegroomReduced             = 0xe635
-	AirlineSeatReclineExtra               = 0xe636
-	AirlineSeatReclineNormal              = 0xe637
-	AirplanemodeActive                    = 0xe195
-	AirplanemodeInactive                  = 0xe194
-	Airplay                               = 0xe055
-	AirportShuttle                        = 0xeb3c
-	Alarm                                 = 0xe855
-	AlarmAdd                              = 0xe856
-	AlarmOff                              = 0xe857
-	AlarmOn                               = 0xe858
-	Album                                 = 0xe019
-	AllInclusive                          = 0xeb3d
-	AllOut                                = 0xe90b
-	Android                               = 0xe859
-	Announcement                          = 0xe85a
-	Apps                                  = 0xe5c3
-	Archive                               = 0xe149
-	ArrowBack                             = 0xe5c4
-	ArrowDownward                         = 0xe5db
-	ArrowDropDown                         = 0xe5c5
-	ArrowDropDownCircle                   = 0xe5c6
-	ArrowDropUp                           = 0xe5c7
-	ArrowForward                          = 0xe5c8
-	ArrowUpward                           = 0xe5d8
-	ArtTrack                              = 0xe060
-	AspectRatio                           = 0xe85b
-	Assessment                            = 0xe85c
-	Assignment                            = 0xe85d
-	AssignmentInd                         = 0xe85e
-	AssignmentLate                        = 0xe85f
-	AssignmentReturn                      = 0xe860
-	AssignmentReturned                    = 0xe861
-	AssignmentTurnedIn                    = 0xe862
-	Assistant                             = 0xe39f
-	AssistantPhoto                        = 0xe3a0
-	AttachFile                            = 0xe226
-	AttachMoney                           = 0xe227
-	Attachment                            = 0xe2bc
-	Audiotrack                            = 0xe3a1
-	Autorenew                             = 0xe863
-	AvTimer                               = 0xe01b
-	Backspace                             = 0xe14a
-	Backup                                = 0xe864
-	BatteryAlert                          = 0xe19c
-	BatteryChargingFull                   = 0xe1a3
-	BatteryFull                           = 0xe1a4
-	BatteryStd                            = 0xe1a5
-	BatteryUnknown                        = 0xe1a6
-	BeachAccess                           = 0xeb3e
-	Beenhere                              = 0xe52d
-	Block                                 = 0xe14b
-	Bluetooth                             = 0xe1a7
-	BluetoothAudio                        = 0xe60f
-	BluetoothConnected                    = 0xe1a8
-	BluetoothDisabled                     = 0xe1a9
-	BluetoothSearching                    = 0xe1aa
-	BlurCircular                          = 0xe3a2
-	BlurLinear                            = 0xe3a3
-	BlurOff                               = 0xe3a4
-	BlurOn                                = 0xe3a5
-	Book                                  = 0xe865
-	Bookmark                              = 0xe866
-	BookmarkBorder                        = 0xe867
-	BorderAll                             = 0xe228
-	BorderBottom                          = 0xe229
-	BorderClear                           = 0xe22a
-	BorderColor                           = 0xe22b
-	BorderHorizontal                      = 0xe22c
-	BorderInner                           = 0xe22d
-	BorderLeft                            = 0xe22e
-	BorderOuter                           = 0xe22f
-	BorderRight                           = 0xe230
-	BorderStyle                           = 0xe231
-	BorderTop                             = 0xe232
-	BorderVertical                        = 0xe233
-	BrandingWatermark                     = 0xe06b
-	Brightness1                           = 0xe3a6
-	Brightness2                           = 0xe3a7
-	Brightness3                           = 0xe3a8
-	Brightness4                           = 0xe3a9
-	Brightness5                           = 0xe3aa
-	Brightness6                           = 0xe3ab
-	Brightness7                           = 0xe3ac
-	BrightnessAuto                        = 0xe1ab
-	BrightnessHigh                        = 0xe1ac
-	BrightnessLow                         = 0xe1ad
-	BrightnessMedium                      = 0xe1ae
-	BrokenImage                           = 0xe3ad
-	Brush                                 = 0xe3ae
-	BubbleChart                           = 0xe6dd
-	BugReport                             = 0xe868
-	Build                                 = 0xe869
-	BurstMode                             = 0xe43c
-	Business                              = 0xe0af
-	BusinessCenter                        = 0xeb3f
-	Cached                                = 0xe86a
-	Cake                                  = 0xe7e9
-	Call                                  = 0xe0b0
-	CallEnd                               = 0xe0b1
-	CallMade                              = 0xe0b2
-	CallMerge                             = 0xe0b3
-	CallMissed                            = 0xe0b4
-	CallMissedOutgoing                    = 0xe0e4
-	CallReceived                          = 0xe0b5
-	CallSplit                             = 0xe0b6
-	CallToAction                          = 0xe06c
-	Camera                                = 0xe3af
-	CameraAlt                             = 0xe3b0
-	CameraEnhance                         = 0xe8fc
-	CameraFront                           = 0xe3b1
-	CameraRear                            = 0xe3b2
-	CameraRoll                            = 0xe3b3
-	Cancel                                = 0xe5c9
-	CardGiftcard                          = 0xe8f6
-	CardMembership                        = 0xe8f7
-	CardTravel                            = 0xe8f8
-	Casino                                = 0xeb40
-	Cast                                  = 0xe307
-	CastConnected                         = 0xe308
-	CenterFocusStrong                     = 0xe3b4
-	CenterFocusWeak                       = 0xe3b5
-	ChangeHistory                         = 0xe86b
-	Chat                                  = 0xe0b7
-	ChatBubble                            = 0xe0ca
-	ChatBubbleOutline                     = 0xe0cb
-	Check                                 = 0xe5ca
-	CheckBox                              = 0xe834
-	CheckBoxOutlineBlank                  = 0xe835
-	CheckCircle                           = 0xe86c
-	ChevronLeft                           = 0xe5cb
-	ChevronRight                          = 0xe5cc
-	ChildCare                             = 0xeb41
-	ChildFriendly                         = 0xeb42
-	ChromeReaderMode                      = 0xe86d
-	Class                                 = 0xe86e
-	Clear                                 = 0xe14c
-	ClearAll                              = 0xe0b8
-	Close                                 = 0xe5cd
-	ClosedCaption                         = 0xe01c
-	Cloud                                 = 0xe2bd
-	CloudCircle                           = 0xe2be
-	CloudDone                             = 0xe2bf
-	CloudDownload                         = 0xe2c0
-	CloudOff                              = 0xe2c1
-	CloudQueue                            = 0xe2c2
-	CloudUpload                           = 0xe2c3
-	Code                                  = 0xe86f
-	Collections                           = 0xe3b6
-	CollectionsBookmark                   = 0xe431
-	ColorLens                             = 0xe3b7
-	Colorize                              = 0xe3b8
-	Comment                               = 0xe0b9
-	Compare                               = 0xe3b9
-	CompareArrows                         = 0xe915
-	Computer                              = 0xe30a
-	ConfirmationNumber                    = 0xe638
-	ContactMail                           = 0xe0d0
-	ContactPhone                          = 0xe0cf
-	Contacts                              = 0xe0ba
-	ContentCopy                           = 0xe14d
-	ContentCut                            = 0xe14e
-	ContentPaste                          = 0xe14f
-	ControlPoint                          = 0xe3ba
-	ControlPointDuplicate                 = 0xe3bb
-	Copyright                             = 0xe90c
-	Create                                = 0xe150
-	CreateNewFolder                       = 0xe2cc
-	CreditCard                            = 0xe870
-	Crop                                  = 0xe3be
-	Crop169                               = 0xe3bc
-	Crop32                                = 0xe3bd
-	Crop54                                = 0xe3bf
-	Crop75                                = 0xe3c0
-	CropDin                               = 0xe3c1
-	CropFree                              = 0xe3c2
-	CropLandscape                         = 0xe3c3
-	CropOriginal                          = 0xe3c4
-	CropPortrait                          = 0xe3c5
-	CropRotate                            = 0xe437
-	CropSquare                            = 0xe3c6
-	Dashboard                             = 0xe871
-	DataUsage                             = 0xe1af
-	DateRange                             = 0xe916
-	Dehaze                                = 0xe3c7
-	Delete                                = 0xe872
-	DeleteForever                         = 0xe92b
-	DeleteSweep                           = 0xe16c
-	Description                           = 0xe873
-	DesktopMac                            = 0xe30b
-	DesktopWindows                        = 0xe30c
-	Details                               = 0xe3c8
-	DeveloperBoard                        = 0xe30d
-	DeveloperMode                         = 0xe1b0
-	DeviceHub                             = 0xe335
-	Devices                               = 0xe1b1
-	DevicesOther                          = 0xe337
-	DialerSip                             = 0xe0bb
-	Dialpad                               = 0xe0bc
-	Directions                            = 0xe52e
-	DirectionsBike                        = 0xe52f
-	DirectionsBoat                        = 0xe532
-	DirectionsBus                         = 0xe530
-	DirectionsCar                         = 0xe531
-	DirectionsRailway                     = 0xe534
-	DirectionsRun                         = 0xe566
-	DirectionsSubway                      = 0xe533
-	DirectionsTransit                     = 0xe535
-	DirectionsWalk                        = 0xe536
-	DiscFull                              = 0xe610
-	Dns                                   = 0xe875
-	DoNotDisturb                          = 0xe612
-	DoNotDisturbAlt                       = 0xe611
-	DoNotDisturbOff                       = 0xe643
-	DoNotDisturbOn                        = 0xe644
-	Dock                                  = 0xe30e
-	Domain                                = 0xe7ee
-	Done                                  = 0xe876
-	DoneAll                               = 0xe877
-	DonutLarge                            = 0xe917
-	DonutSmall                            = 0xe918
-	Drafts                                = 0xe151
-	DragHandle                            = 0xe25d
-	DriveEta                              = 0xe613
-	Dvr                                   = 0xe1b2
-	Edit                                  = 0xe3c9
-	EditLocation                          = 0xe568
-	Eject                                 = 0xe8fb
-	Email                                 = 0xe0be
-	EnhancedEncryption                    = 0xe63f
-	Equalizer                             = 0xe01d
-	Error                                 = 0xe000
-	ErrorOutline                          = 0xe001
-	EuroSymbol                            = 0xe926
-	EvStation                             = 0xe56d
-	Event                                 = 0xe878
-	EventAvailable                        = 0xe614
-	EventBusy                             = 0xe615
-	EventNote                             = 0xe616
-	EventSeat                             = 0xe903
-	ExitToApp                             = 0xe879
-	ExpandLess                            = 0xe5ce
-	ExpandMore                            = 0xe5cf
-	Explicit                              = 0xe01e
-	Explore                               = 0xe87a
-	Exposure                              = 0xe3ca
-	ExposureNeg1                          = 0xe3cb
-	ExposureNeg2                          = 0xe3cc
-	ExposurePlus1                         = 0xe3cd
-	ExposurePlus2                         = 0xe3ce
-	ExposureZero                          = 0xe3cf
-	Extension                             = 0xe87b
-	Face                                  = 0xe87c
-	FastForward                           = 0xe01f
-	FastRewind                            = 0xe020
-	Favorite                              = 0xe87d
-	FavoriteBorder                        = 0xe87e
-	FeaturedPlayList                      = 0xe06d
-	FeaturedVideo                         = 0xe06e
-	Feedback                              = 0xe87f
-	FiberDvr                              = 0xe05d
-	FiberManualRecord                     = 0xe061
-	FiberNew                              = 0xe05e
-	FiberPin                              = 0xe06a
-	FiberSmartRecord                      = 0xe062
-	FileDownload                          = 0xe2c4
-	FileUpload                            = 0xe2c6
-	Filter                                = 0xe3d3
-	Filter1                               = 0xe3d0
-	Filter2                               = 0xe3d1
-	Filter3                               = 0xe3d2
-	Filter4                               = 0xe3d4
-	Filter5                               = 0xe3d5
-	Filter6                               = 0xe3d6
-	Filter7                               = 0xe3d7
-	Filter8                               = 0xe3d8
-	Filter9                               = 0xe3d9
-	Filter9Plus                           = 0xe3da
-	FilterBAndW                           = 0xe3db
-	FilterCenterFocus                     = 0xe3dc
-	FilterDrama                           = 0xe3dd
-	FilterFrames                          = 0xe3de
-	FilterHdr                             = 0xe3df
-	FilterList                            = 0xe152
-	FilterNone                            = 0xe3e0
-	FilterTiltShift                       = 0xe3e2
-	FilterVintage                         = 0xe3e3
-	FindInPage                            = 0xe880
-	FindReplace                           = 0xe881
-	Fingerprint                           = 0xe90d
-	FirstPage                             = 0xe5dc
-	FitnessCenter                         = 0xeb43
-	Flag                                  = 0xe153
-	Flare                                 = 0xe3e4
-	FlashAuto                             = 0xe3e5
-	FlashOff                              = 0xe3e6
-	FlashOn                               = 0xe3e7
-	Flight                                = 0xe539
-	FlightLand                            = 0xe904
-	FlightTakeoff                         = 0xe905
-	Flip                                  = 0xe3e8
-	FlipToBack                            = 0xe882
-	FlipToFront                           = 0xe883
-	Folder                                = 0xe2c7
-	FolderOpen                            = 0xe2c8
-	FolderShared                          = 0xe2c9
-	FolderSpecial                         = 0xe617
-	FontDownload                          = 0xe167
-	FormatAlignCenter                     = 0xe234
-	FormatAlignJustify                    = 0xe235
-	FormatAlignLeft                       = 0xe236
-	FormatAlignRight                      = 0xe237
-	FormatBold                            = 0xe238
-	FormatClear                           = 0xe239
-	FormatColorFill                       = 0xe23a
-	FormatColorReset                      = 0xe23b
-	FormatColorText                       = 0xe23c
-	FormatIndentDecrease                  = 0xe23d
-	FormatIndentIncrease                  = 0xe23e
-	FormatItalic                          = 0xe23f
-	FormatLineSpacing                     = 0xe240
-	FormatListBulleted                    = 0xe241
-	FormatListNumbered                    = 0xe242
-	FormatPaint                           = 0xe243
-	FormatQuote                           = 0xe244
-	FormatShapes                          = 0xe25e
-	FormatSize                            = 0xe245
-	FormatStrikethrough                   = 0xe246
-	FormatTextdirectionLToR               = 0xe247
-	FormatTextdirectionRToL               = 0xe248
-	FormatUnderlined                      = 0xe249
-	Forum                                 = 0xe0bf
-	Forward                               = 0xe154
-	Forward10                             = 0xe056
-	Forward30                             = 0xe057
-	Forward5                              = 0xe058
-	FreeBreakfast                         = 0xeb44
-	Fullscreen                            = 0xe5d0
-	FullscreenExit                        = 0xe5d1
-	Functions                             = 0xe24a
-	GTranslate                            = 0xe927
-	Gamepad                               = 0xe30f
-	Games                                 = 0xe021
-	Gavel                                 = 0xe90e
-	Gesture                               = 0xe155
-	GetApp                                = 0xe884
-	Gif                                   = 0xe908
-	GolfCourse                            = 0xeb45
-	GpsFixed                              = 0xe1b3
-	GpsNotFixed                           = 0xe1b4
-	GpsOff                                = 0xe1b5
-	Grade                                 = 0xe885
-	Gradient                              = 0xe3e9
-	Grain                                 = 0xe3ea
-	GraphicEq                             = 0xe1b8
-	GridOff                               = 0xe3eb
-	GridOn                                = 0xe3ec
-	Group                                 = 0xe7ef
-	GroupAdd                              = 0xe7f0
-	GroupWork                             = 0xe886
-	Hd                                    = 0xe052
-	HdrOff                                = 0xe3ed
-	HdrOn                                 = 0xe3ee
-	HdrStrong                             = 0xe3f1
-	HdrWeak                               = 0xe3f2
-	Headset                               = 0xe310
-	HeadsetMic                            = 0xe311
-	Healing                               = 0xe3f3
-	Hearing                               = 0xe023
-	Help                                  = 0xe887
-	HelpOutline                           = 0xe8fd
-	HighQuality                           = 0xe024
-	Highlight                             = 0xe25f
-	HighlightOff                          = 0xe888
-	History                               = 0xe889
-	Home                                  = 0xe88a
-	HotTub                                = 0xeb46
-	Hotel                                 = 0xe53a
-	HourglassEmpty                        = 0xe88b
-	HourglassFull                         = 0xe88c
-	Http                                  = 0xe902
-	Https                                 = 0xe88d
-	Image                                 = 0xe3f4
-	ImageAspectRatio                      = 0xe3f5
-	ImportContacts                        = 0xe0e0
-	ImportExport                          = 0xe0c3
-	ImportantDevices                      = 0xe912
-	Inbox                                 = 0xe156
-	IndeterminateCheckBox                 = 0xe909
-	Info                                  = 0xe88e
-	InfoOutline                           = 0xe88f
-	Input                                 = 0xe890
-	InsertChart                           = 0xe24b
-	InsertComment                         = 0xe24c
-	InsertDriveFile                       = 0xe24d
-	InsertEmoticon                        = 0xe24e
-	InsertInvitation                      = 0xe24f
-	InsertLink                            = 0xe250
-	InsertPhoto                           = 0xe251
-	InvertColors                          = 0xe891
-	InvertColorsOff                       = 0xe0c4
-	Iso                                   = 0xe3f6
-	Keyboard                              = 0xe312
-	KeyboardArrowDown                     = 0xe313
-	KeyboardArrowLeft                     = 0xe314
-	KeyboardArrowRight                    = 0xe315
-	KeyboardArrowUp                       = 0xe316
-	KeyboardBackspace                     = 0xe317
-	KeyboardCapslock                      = 0xe318
-	KeyboardHide                          = 0xe31a
-	KeyboardReturn                        = 0xe31b
-	KeyboardTab                           = 0xe31c
-	KeyboardVoice                         = 0xe31d
-	Kitchen                               = 0xeb47
-	Label                                 = 0xe892
-	LabelOutline                          = 0xe893
-	Landscape                             = 0xe3f7
-	Language                              = 0xe894
-	Laptop                                = 0xe31e
-	LaptopChromebook                      = 0xe31f
-	LaptopMac                             = 0xe320
-	LaptopWindows                         = 0xe321
-	LastPage                              = 0xe5dd
-	Launch                                = 0xe895
-	Layers                                = 0xe53b
-	LayersClear                           = 0xe53c
-	LeakAdd                               = 0xe3f8
-	LeakRemove                            = 0xe3f9
-	Lens                                  = 0xe3fa
-	LibraryAdd                            = 0xe02e
-	LibraryBooks                          = 0xe02f
-	LibraryMusic                          = 0xe030
-	LightbulbOutline                      = 0xe90f
-	LineStyle                             = 0xe919
-	LineWeight                            = 0xe91a
-	LinearScale                           = 0xe260
-	Link                                  = 0xe157
-	LinkedCamera                          = 0xe438
-	List                                  = 0xe896
-	LiveHelp                              = 0xe0c6
-	LiveTv                                = 0xe639
-	LocalActivity                         = 0xe53f
-	LocalAirport                          = 0xe53d
-	LocalAtm                              = 0xe53e
-	LocalBar                              = 0xe540
-	LocalCafe                             = 0xe541
-	LocalCarWash                          = 0xe542
-	LocalConvenienceStore                 = 0xe543
-	LocalDining                           = 0xe556
-	LocalDrink                            = 0xe544
-	LocalFlorist                          = 0xe545
-	LocalGasStation                       = 0xe546
-	LocalGroceryStore                     = 0xe547
-	LocalHospital                         = 0xe548
-	LocalHotel                            = 0xe549
-	LocalLaundryService                   = 0xe54a
-	LocalLibrary                          = 0xe54b
-	LocalMall                             = 0xe54c
-	LocalMovies                           = 0xe54d
-	LocalOffer                            = 0xe54e
-	LocalParking                          = 0xe54f
-	LocalPharmacy                         = 0xe550
-	LocalPhone                            = 0xe551
-	LocalPizza                            = 0xe552
-	LocalPlay                             = 0xe553
-	LocalPostOffice                       = 0xe554
-	LocalPrintshop                        = 0xe555
-	LocalSee                              = 0xe557
-	LocalShipping                         = 0xe558
-	LocalTaxi                             = 0xe559
-	LocationCity                          = 0xe7f1
-	LocationDisabled                      = 0xe1b6
-	LocationOff                           = 0xe0c7
-	LocationOn                            = 0xe0c8
-	LocationSearching                     = 0xe1b7
-	Lock                                  = 0xe897
-	LockOpen                              = 0xe898
-	LockOutline                           = 0xe899
-	Looks                                 = 0xe3fc
-	Looks3                                = 0xe3fb
-	Looks4                                = 0xe3fd
-	Looks5                                = 0xe3fe
-	Looks6                                = 0xe3ff
-	LooksOne                              = 0xe400
-	LooksTwo                              = 0xe401
-	Loop                                  = 0xe028
-	Loupe                                 = 0xe402
-	LowPriority                           = 0xe16d
-	Loyalty                               = 0xe89a
-	Mail                                  = 0xe158
-	MailOutline                           = 0xe0e1
-	Map                                   = 0xe55b
-	Markunread                            = 0xe159
-	MarkunreadMailbox                     = 0xe89b
-	Memory                                = 0xe322
-	Menu                                  = 0xe5d2
-	MergeType                             = 0xe252
-	Message                               = 0xe0c9
-	Mic                                   = 0xe029
-	MicNone                               = 0xe02a
-	MicOff                                = 0xe02b
-	Mms                                   = 0xe618
-	ModeComment                           = 0xe253
-	ModeEdit                              = 0xe254
-	MonetizationOn                        = 0xe263
-	MoneyOff                              = 0xe25c
-	MonochromePhotos                      = 0xe403
-	Mood                                  = 0xe7f2
-	MoodBad                               = 0xe7f3
-	More                                  = 0xe619
-	MoreHoriz                             = 0xe5d3
-	MoreVert                              = 0xe5d4
-	Motorcycle                            = 0xe91b
-	Mouse                                 = 0xe323
-	MoveToInbox                           = 0xe168
-	Movie                                 = 0xe02c
-	MovieCreation                         = 0xe404
-	MovieFilter                           = 0xe43a
-	MultilineChart                        = 0xe6df
-	MusicNote                             = 0xe405
-	MusicVideo                            = 0xe063
-	MyLocation                            = 0xe55c
-	Nature                                = 0xe406
-	NaturePeople                          = 0xe407
-	NavigateBefore                        = 0xe408
-	NavigateNext                          = 0xe409
-	Navigation                            = 0xe55d
-	NearMe                                = 0xe569
-	NetworkCell                           = 0xe1b9
-	NetworkCheck                          = 0xe640
-	NetworkLocked                         = 0xe61a
-	NetworkWifi                           = 0xe1ba
-	NewReleases                           = 0xe031
-	NextWeek                              = 0xe16a
-	Nfc                                   = 0xe1bb
-	NoEncryption                          = 0xe641
-	NoSim                                 = 0xe0cc
-	NotInterested                         = 0xe033
-	Note                                  = 0xe06f
-	NoteAdd                               = 0xe89c
-	Notifications                         = 0xe7f4
-	NotificationsActive                   = 0xe7f7
-	NotificationsNone                     = 0xe7f5
-	NotificationsOff                      = 0xe7f6
-	NotificationsPaused                   = 0xe7f8
-	OfflinePin                            = 0xe90a
-	OndemandVideo                         = 0xe63a
-	Opacity                               = 0xe91c
-	OpenInBrowser                         = 0xe89d
-	OpenInNew                             = 0xe89e
-	OpenWith                              = 0xe89f
-	Pages                                 = 0xe7f9
-	Pageview                              = 0xe8a0
-	Palette                               = 0xe40a
-	PanTool                               = 0xe925
-	Panorama                              = 0xe40b
-	PanoramaFishEye                       = 0xe40c
-	PanoramaHorizontal                    = 0xe40d
-	PanoramaVertical                      = 0xe40e
-	PanoramaWideAngle                     = 0xe40f
-	PartyMode                             = 0xe7fa
-	Pause                                 = 0xe034
-	PauseCircleFilled                     = 0xe035
-	PauseCircleOutline                    = 0xe036
-	Payment                               = 0xe8a1
-	People                                = 0xe7fb
-	PeopleOutline                         = 0xe7fc
-	PermCameraMic                         = 0xe8a2
-	PermContactCalendar                   = 0xe8a3
-	PermDataSetting                       = 0xe8a4
-	PermDeviceInformation                 = 0xe8a5
-	PermIdentity                          = 0xe8a6
-	PermMedia                             = 0xe8a7
-	PermPhoneMsg                          = 0xe8a8
-	PermScanWifi                          = 0xe8a9
-	Person                                = 0xe7fd
-	PersonAdd                             = 0xe7fe
-	PersonOutline                         = 0xe7ff
-	PersonPin                             = 0xe55a
-	PersonPinCircle                       = 0xe56a
-	PersonalVideo                         = 0xe63b
-	Pets                                  = 0xe91d
-	Phone                                 = 0xe0cd
-	PhoneAndroid                          = 0xe324
-	PhoneBluetoothSpeaker                 = 0xe61b
-	PhoneForwarded                        = 0xe61c
-	PhoneInTalk                           = 0xe61d
-	PhoneIphone                           = 0xe325
-	PhoneLocked                           = 0xe61e
-	PhoneMissed                           = 0xe61f
-	PhonePaused                           = 0xe620
-	Phonelink                             = 0xe326
-	PhonelinkErase                        = 0xe0db
-	PhonelinkLock                         = 0xe0dc
-	PhonelinkOff                          = 0xe327
-	PhonelinkRing                         = 0xe0dd
-	PhonelinkSetup                        = 0xe0de
-	Photo                                 = 0xe410
-	PhotoAlbum                            = 0xe411
-	PhotoCamera                           = 0xe412
-	PhotoFilter                           = 0xe43b
-	PhotoLibrary                          = 0xe413
-	PhotoSizeSelectActual                 = 0xe432
-	PhotoSizeSelectLarge                  = 0xe433
-	PhotoSizeSelectSmall                  = 0xe434
-	PictureAsPdf                          = 0xe415
-	PictureInPicture                      = 0xe8aa
-	PictureInPictureAlt                   = 0xe911
-	PieChart                              = 0xe6c4
-	PieChartOutlined                      = 0xe6c5
-	PinDrop                               = 0xe55e
-	Place                                 = 0xe55f
-	PlayArrow                             = 0xe037
-	PlayCircleFilled                      = 0xe038
-	PlayCircleOutline                     = 0xe039
-	PlayForWork                           = 0xe906
-	PlaylistAdd                           = 0xe03b
-	PlaylistAddCheck                      = 0xe065
-	PlaylistPlay                          = 0xe05f
-	PlusOne                               = 0xe800
-	Poll                                  = 0xe801
-	Polymer                               = 0xe8ab
-	Pool                                  = 0xeb48
-	PortableWifiOff                       = 0xe0ce
-	Portrait                              = 0xe416
-	Power                                 = 0xe63c
-	PowerInput                            = 0xe336
-	PowerSettingsNew                      = 0xe8ac
-	PregnantWoman                         = 0xe91e
-	PresentToAll                          = 0xe0df
-	Print                                 = 0xe8ad
-	PriorityHigh                          = 0xe645
-	Public                                = 0xe80b
-	Publish                               = 0xe255
-	QueryBuilder                          = 0xe8ae
-	QuestionAnswer                        = 0xe8af
-	Queue                                 = 0xe03c
-	QueueMusic                            = 0xe03d
-	QueuePlayNext                         = 0xe066
-	Radio                                 = 0xe03e
-	RadioButtonChecked                    = 0xe837
-	RadioButtonUnchecked                  = 0xe836
-	RateReview                            = 0xe560
-	Receipt                               = 0xe8b0
-	RecentActors                          = 0xe03f
-	RecordVoiceOver                       = 0xe91f
-	Redeem                                = 0xe8b1
-	Redo                                  = 0xe15a
-	Refresh                               = 0xe5d5
-	Remove                                = 0xe15b
-	RemoveCircle                          = 0xe15c
-	RemoveCircleOutline                   = 0xe15d
-	RemoveFromQueue                       = 0xe067
-	RemoveRedEye                          = 0xe417
-	RemoveShoppingCart                    = 0xe928
-	Reorder                               = 0xe8fe
-	Repeat                                = 0xe040
-	RepeatOne                             = 0xe041
-	Replay                                = 0xe042
-	Replay10                              = 0xe059
-	Replay30                              = 0xe05a
-	Replay5                               = 0xe05b
-	Reply                                 = 0xe15e
-	ReplyAll                              = 0xe15f
-	Report                                = 0xe160
-	ReportProblem                         = 0xe8b2
-	Restaurant                            = 0xe56c
-	RestaurantMenu                        = 0xe561
-	Restore                               = 0xe8b3
-	RestorePage                           = 0xe929
-	RingVolume                            = 0xe0d1
-	Room                                  = 0xe8b4
-	RoomService                           = 0xeb49
-	Rotate90DegreesCcw                    = 0xe418
-	RotateLeft                            = 0xe419
-	RotateRight                           = 0xe41a
-	RoundedCorner                         = 0xe920
-	Router                                = 0xe328
-	Rowing                                = 0xe921
-	RssFeed                               = 0xe0e5
-	RvHookup                              = 0xe642
-	Satellite                             = 0xe562
-	Save                                  = 0xe161
-	Scanner                               = 0xe329
-	Schedule                              = 0xe8b5
-	School                                = 0xe80c
-	ScreenLockLandscape                   = 0xe1be
-	ScreenLockPortrait                    = 0xe1bf
-	ScreenLockRotation                    = 0xe1c0
-	ScreenRotation                        = 0xe1c1
-	ScreenShare                           = 0xe0e2
-	SdCard                                = 0xe623
-	SdStorage                             = 0xe1c2
-	Search                                = 0xe8b6
-	Security                              = 0xe32a
-	SelectAll                             = 0xe162
-	Send                                  = 0xe163
-	SentimentDissatisfied                 = 0xe811
-	SentimentNeutral                      = 0xe812
-	SentimentSatisfied                    = 0xe813
-	SentimentVeryDissatisfied             = 0xe814
-	SentimentVerySatisfied                = 0xe815
-	Settings                              = 0xe8b8
-	SettingsApplications                  = 0xe8b9
-	SettingsBackupRestore                 = 0xe8ba
-	SettingsBluetooth                     = 0xe8bb
-	SettingsBrightness                    = 0xe8bd
-	SettingsCell                          = 0xe8bc
-	SettingsEthernet                      = 0xe8be
-	SettingsInputAntenna                  = 0xe8bf
-	SettingsInputComponent                = 0xe8c0
-	SettingsInputComposite                = 0xe8c1
-	SettingsInputHdmi                     = 0xe8c2
-	SettingsInputSvideo                   = 0xe8c3
-	SettingsOverscan                      = 0xe8c4
-	SettingsPhone                         = 0xe8c5
-	SettingsPower                         = 0xe8c6
-	SettingsRemote                        = 0xe8c7
-	SettingsSystemDaydream                = 0xe1c3
-	SettingsVoice                         = 0xe8c8
-	Share                                 = 0xe80d
-	Shop                                  = 0xe8c9
-	ShopTwo                               = 0xe8ca
-	ShoppingBasket                        = 0xe8cb
-	ShoppingCart                          = 0xe8cc
-	ShortText                             = 0xe261
-	ShowChart                             = 0xe6e1
-	Shuffle                               = 0xe043
-	SignalCellular4Bar                    = 0xe1c8
-	SignalCellularConnectedNoInternet4Bar = 0xe1cd
-	SignalCellularNoSim                   = 0xe1ce
-	SignalCellularNull                    = 0xe1cf
-	SignalCellularOff                     = 0xe1d0
-	SignalWifi4Bar                        = 0xe1d8
-	SignalWifi4BarLock                    = 0xe1d9
-	SignalWifiOff                         = 0xe1da
-	SimCard                               = 0xe32b
-	SimCardAlert                          = 0xe624
-	SkipNext                              = 0xe044
-	SkipPrevious                          = 0xe045
-	Slideshow                             = 0xe41b
-	SlowMotionVideo                       = 0xe068
-	Smartphone                            = 0xe32c
-	SmokeFree                             = 0xeb4a
-	SmokingRooms                          = 0xeb4b
-	Sms                                   = 0xe625
-	SmsFailed                             = 0xe626
-	Snooze                                = 0xe046
-	Sort                                  = 0xe164
-	SortByAlpha                           = 0xe053
-	Spa                                   = 0xeb4c
-	SpaceBar                              = 0xe256
-	Speaker                               = 0xe32d
-	SpeakerGroup                          = 0xe32e
-	SpeakerNotes                          = 0xe8cd
-	SpeakerNotesOff                       = 0xe92a
-	SpeakerPhone                          = 0xe0d2
-	Spellcheck                            = 0xe8ce
-	Star                                  = 0xe838
-	StarBorder                            = 0xe83a
-	StarHalf                              = 0xe839
-	Stars                                 = 0xe8d0
-	StayCurrentLandscape                  = 0xe0d3
-	StayCurrentPortrait                   = 0xe0d4
-	StayPrimaryLandscape                  = 0xe0d5
-	StayPrimaryPortrait                   = 0xe0d6
-	Stop                                  = 0xe047
-	StopScreenShare                       = 0xe0e3
-	Storage                               = 0xe1db
-	Store                                 = 0xe8d1
-	StoreMallDirectory                    = 0xe563
-	Straighten                            = 0xe41c
-	Streetview                            = 0xe56e
-	StrikethroughS                        = 0xe257
-	Style                                 = 0xe41d
-	SubdirectoryArrowLeft                 = 0xe5d9
-	SubdirectoryArrowRight                = 0xe5da
-	Subject                               = 0xe8d2
-	Subscriptions                         = 0xe064
-	Subtitles                             = 0xe048
-	Subway                                = 0xe56f
-	SupervisorAccount                     = 0xe8d3
-	SurroundSound                         = 0xe049
-	SwapCalls                             = 0xe0d7
-	SwapHoriz                             = 0xe8d4
-	SwapVert                              = 0xe8d5
-	SwapVerticalCircle                    = 0xe8d6
-	SwitchCamera                          = 0xe41e
-	SwitchVideo                           = 0xe41f
-	Sync                                  = 0xe627
-	SyncDisabled                          = 0xe628
-	SyncProblem                           = 0xe629
-	SystemUpdate                          = 0xe62a
-	SystemUpdateAlt                       = 0xe8d7
-	Tab                                   = 0xe8d8
-	TabUnselected                         = 0xe8d9
-	Tablet                                = 0xe32f
-	TabletAndroid                         = 0xe330
-	TabletMac                             = 0xe331
-	TagFaces                              = 0xe420
-	TapAndPlay                            = 0xe62b
-	Terrain                               = 0xe564
-	TextFields                            = 0xe262
-	TextFormat                            = 0xe165
-	Textsms                               = 0xe0d8
-	Texture                               = 0xe421
-	Theaters                              = 0xe8da
-	ThumbDown                             = 0xe8db
-	ThumbUp                               = 0xe8dc
-	ThumbsUpDown                          = 0xe8dd
-	TimeToLeave                           = 0xe62c
-	Timelapse                             = 0xe422
-	Timeline                              = 0xe922
-	Timer                                 = 0xe425
-	Timer10                               = 0xe423
-	Timer3                                = 0xe424
-	TimerOff                              = 0xe426
-	Title                                 = 0xe264
-	Toc                                   = 0xe8de
-	Today                                 = 0xe8df
-	Toll                                  = 0xe8e0
-	Tonality                              = 0xe427
-	TouchApp                              = 0xe913
-	Toys                                  = 0xe332
-	TrackChanges                          = 0xe8e1
-	Traffic                               = 0xe565
-	Train                                 = 0xe570
-	Tram                                  = 0xe571
-	TransferWithinAStation                = 0xe572
-	Transform                             = 0xe428
-	Translate                             = 0xe8e2
-	TrendingDown                          = 0xe8e3
-	TrendingFlat                          = 0xe8e4
-	TrendingUp                            = 0xe8e5
-	Tune                                  = 0xe429
-	TurnedIn                              = 0xe8e6
-	TurnedInNot                           = 0xe8e7
-	Tv                                    = 0xe333
-	Unarchive                             = 0xe169
-	Undo                                  = 0xe166
-	UnfoldLess                            = 0xe5d6
-	UnfoldMore                            = 0xe5d7
-	Update                                = 0xe923
-	Usb                                   = 0xe1e0
-	VerifiedUser                          = 0xe8e8
-	VerticalAlignBottom                   = 0xe258
-	VerticalAlignCenter                   = 0xe259
-	VerticalAlignTop                      = 0xe25a
-	Vibration                             = 0xe62d
-	VideoCall                             = 0xe070
-	VideoLabel                            = 0xe071
-	VideoLibrary                          = 0xe04a
-	Videocam                              = 0xe04b
-	VideocamOff                           = 0xe04c
-	VideogameAsset                        = 0xe338
-	ViewAgenda                            = 0xe8e9
-	ViewArray                             = 0xe8ea
-	ViewCarousel                          = 0xe8eb
-	ViewColumn                            = 0xe8ec
-	ViewComfy                             = 0xe42a
-	ViewCompact                           = 0xe42b
-	ViewDay                               = 0xe8ed
-	ViewHeadline                          = 0xe8ee
-	ViewList                              = 0xe8ef
-	ViewModule                            = 0xe8f0
-	ViewQuilt                             = 0xe8f1
-	ViewStream                            = 0xe8f2
-	ViewWeek                              = 0xe8f3
-	Vignette                              = 0xe435
-	Visibility                            = 0xe8f4
-	VisibilityOff                         = 0xe8f5
-	VoiceChat                             = 0xe62e
-	Voicemail                             = 0xe0d9
-	VolumeDown                            = 0xe04d
-	VolumeMute                            = 0xe04e
-	VolumeOff                             = 0xe04f
-	VolumeUp                              = 0xe050
-	VpnKey                                = 0xe0da
-	VpnLock                               = 0xe62f
-	Wallpaper                             = 0xe1bc
-	Warning                               = 0xe002
-	Watch                                 = 0xe334
-	WatchLater                            = 0xe924
-	WbAuto                                = 0xe42c
-	WbCloudy                              = 0xe42d
-	WbIncandescent                        = 0xe42e
-	WbIridescent                          = 0xe436
-	WbSunny                               = 0xe430
-	Wc                                    = 0xe63d
-	Web                                   = 0xe051
-	WebAsset                              = 0xe069
-	Weekend                               = 0xe16b
-	Whatshot                              = 0xe80e
-	Widgets                               = 0xe1bd
-	Wifi                                  = 0xe63e
-	WifiLock                              = 0xe1e1
-	WifiTethering                         = 0xe1e2
-	Work                                  = 0xe8f9
-	WrapText                              = 0xe25b
-	YoutubeSearchedFor                    = 0xe8fa
-	ZoomIn                                = 0xe8ff
-	ZoomOut                               = 0xe900
-	ZoomOutMap                            = 0xe56b
-)

gui/assets/genicodes/codepoints → gui/assets/icon/codepoints


File diff suppressed because it is too large
+ 1885 - 0
gui/assets/icon/icodes.go


+ 49 - 33
gui/builder.go

@@ -13,6 +13,7 @@ import (
 	"strconv"
 	"strings"
 
+	"github.com/g3n/engine/gui/assets/icon"
 	"github.com/g3n/engine/math32"
 	"gopkg.in/yaml.v2"
 )
@@ -21,37 +22,7 @@ import (
 type Builder struct {
 	desc    map[string]*panelDesc // parsed descriptions
 	imgpath string                // base path for image panels files
-	objpath strStack              // current object stack
-}
-
-type strStack struct {
-	stack []string
-}
-
-func (ss *strStack) clear() {
-
-	ss.stack = []string{}
-}
-func (ss *strStack) push(v string) {
-
-	ss.stack = append(ss.stack, v)
-}
-
-func (ss *strStack) pop() string {
-
-	if len(ss.stack) == 0 {
-		return ""
-	}
-	length := len(ss.stack)
-	v := ss.stack[length-1]
-	ss.stack = ss.stack[:length-1]
-	log.Error("pop--------->%v", ss.stack)
-	return v
-}
-
-func (ss *strStack) path() string {
-
-	return strings.Join(ss.stack, "/")
+	objpath strStack              // stack of object names being built
 }
 
 type panelStyle struct {
@@ -553,11 +524,18 @@ func (b *Builder) parseIconNames(pname, fname, field string) (string, error) {
 // and returns the icon codepoints value and an error
 func (b *Builder) parseIconName(pname, fname, field string) (uint, error) {
 
-	cp, err := strconv.ParseUint(field, 16, 32)
+	// Try name first
+	cp := icon.Codepoint(field)
+	if cp != 0 {
+		return cp, nil
+	}
+
+	// Try to parse as hex value
+	cp2, err := strconv.ParseUint(field, 16, 32)
 	if err != nil {
 		return 0, b.err(fname, fmt.Sprintf("Invalid icon codepoint value/name:%v", field))
 	}
-	return uint(cp), nil
+	return uint(cp2), nil
 }
 
 // parseFloats parses a string with a list of floats with the specified size
@@ -594,7 +572,45 @@ func (b *Builder) parseFloats(pname, fname, field string, min, max int) ([]float
 	return values, nil
 }
 
+// err creates and returns an error for the current object, field name and with the specified message
 func (b *Builder) err(fname, msg string) error {
 
 	return fmt.Errorf("Error in object:%s field:%s -> %s", b.objpath.path(), fname, msg)
 }
+
+// strStack is a stack of strings
+type strStack struct {
+	stack []string
+}
+
+// clear removes all elements from the stack
+func (ss *strStack) clear() {
+
+	ss.stack = []string{}
+}
+
+// push pushes a string to the top of the stack
+func (ss *strStack) push(v string) {
+
+	ss.stack = append(ss.stack, v)
+}
+
+// pop removes and returns the string at the top of the stack.
+// Returns an empty string if the stack is empty
+func (ss *strStack) pop() string {
+
+	if len(ss.stack) == 0 {
+		return ""
+	}
+	length := len(ss.stack)
+	v := ss.stack[length-1]
+	ss.stack = ss.stack[:length-1]
+	return v
+}
+
+// path returns a string composed of all the strings in the
+// stack separated by a forward slash.
+func (ss *strStack) path() string {
+
+	return strings.Join(ss.stack, "/")
+}

+ 5 - 5
gui/checkradio.go

@@ -5,16 +5,16 @@
 package gui
 
 import (
-	"github.com/g3n/engine/gui/assets"
+	"github.com/g3n/engine/gui/assets/icon"
 	"github.com/g3n/engine/math32"
 	"github.com/g3n/engine/window"
 )
 
 const (
-	checkON  = string(assets.CheckBox)
-	checkOFF = string(assets.CheckBoxOutlineBlank)
-	radioON  = string(assets.RadioButtonChecked)
-	radioOFF = string(assets.RadioButtonUnchecked)
+	checkON  = string(icon.CheckBox)
+	checkOFF = string(icon.CheckBoxOutlineBlank)
+	radioON  = string(icon.RadioButtonChecked)
+	radioOFF = string(icon.RadioButtonUnchecked)
 )
 
 type CheckRadio struct {

+ 2 - 2
gui/dropdown.go

@@ -5,7 +5,7 @@
 package gui
 
 import (
-	"github.com/g3n/engine/gui/assets"
+	"github.com/g3n/engine/gui/assets/icon"
 	"github.com/g3n/engine/math32"
 	"github.com/g3n/engine/window"
 )
@@ -60,7 +60,7 @@ func NewDropDown(width float32, item *ImageLabel) *DropDown {
 	// Create icon
 	dd.icon = NewIconLabel(" ")
 	dd.icon.SetFontSize(StyleDefault.Font.Size() * 1.3)
-	dd.icon.SetText(string(assets.ArrowDropDown))
+	dd.icon.SetText(string(icon.ArrowDropDown))
 	dd.Panel.Add(dd.icon)
 
 	/// Create list

+ 2 - 2
gui/menu.go

@@ -5,7 +5,7 @@
 package gui
 
 import (
-	"github.com/g3n/engine/gui/assets"
+	"github.com/g3n/engine/gui/assets/icon"
 	"github.com/g3n/engine/math32"
 	"github.com/g3n/engine/window"
 	"time"
@@ -206,7 +206,7 @@ func (m *Menu) AddMenu(text string, subm *Menu) *MenuItem {
 	mi.submenu.autoOpen = true
 	mi.menu = m
 	if !m.bar {
-		mi.ricon = NewIconLabel(string(assets.PlayArrow))
+		mi.ricon = NewIconLabel(string(icon.PlayArrow))
 		mi.Panel.Add(mi.ricon)
 	}
 	mi.Panel.Add(mi.submenu)

+ 11 - 10
gui/style.go

@@ -6,6 +6,7 @@ package gui
 
 import (
 	"github.com/g3n/engine/gui/assets"
+	"github.com/g3n/engine/gui/assets/icon"
 	"github.com/g3n/engine/math32"
 	"github.com/g3n/engine/text"
 )
@@ -449,7 +450,7 @@ func setupDefaultStyle() {
 			BorderColor: borderColor,
 			BgColor:     bgColor,
 			FgColor:     fgColor,
-			Icons:       [2]int{assets.ExpandMore, assets.ExpandLess},
+			Icons:       [2]int{icon.ExpandMore, icon.ExpandLess},
 		},
 		Over: &FolderStyle{
 			Margins:     BorderSizes{0, 0, 0, 0},
@@ -458,7 +459,7 @@ func setupDefaultStyle() {
 			BorderColor: borderColor,
 			BgColor:     bgColorOver,
 			FgColor:     fgColor,
-			Icons:       [2]int{assets.ExpandMore, assets.ExpandLess},
+			Icons:       [2]int{icon.ExpandMore, icon.ExpandLess},
 		},
 		Focus: &FolderStyle{
 			Margins:     BorderSizes{0, 0, 0, 0},
@@ -467,7 +468,7 @@ func setupDefaultStyle() {
 			BorderColor: borderColor,
 			BgColor:     bgColorOver,
 			FgColor:     fgColor,
-			Icons:       [2]int{assets.ExpandMore, assets.ExpandLess},
+			Icons:       [2]int{icon.ExpandMore, icon.ExpandLess},
 		},
 		Disabled: &FolderStyle{
 			Margins:     BorderSizes{0, 0, 0, 0},
@@ -476,7 +477,7 @@ func setupDefaultStyle() {
 			BorderColor: borderColor,
 			BgColor:     bgColorOver,
 			FgColor:     fgColor,
-			Icons:       [2]int{assets.ExpandMore, assets.ExpandLess},
+			Icons:       [2]int{icon.ExpandMore, icon.ExpandLess},
 		},
 	}
 
@@ -550,7 +551,7 @@ func setupDefaultStyle() {
 				BorderColor: borderColor,
 				BgColor:     bgColor4,
 				FgColor:     fgColor,
-				Icons:       [2]int{assets.ExpandMore, assets.ExpandLess},
+				Icons:       [2]int{icon.ExpandMore, icon.ExpandLess},
 			},
 		},
 		Padlevel: 16.0,
@@ -565,7 +566,7 @@ func setupDefaultStyle() {
 				BorderColor: math32.Color4{0, 0, 0, 0},
 				BgColor:     math32.Color{0, 0.5, 1},
 				FgColor:     fgColor,
-				Icons:       [2]int{assets.ExpandMore, assets.ExpandLess},
+				Icons:       [2]int{icon.ExpandMore, icon.ExpandLess},
 			},
 			Over: &FolderStyle{
 				Margins:     BorderSizes{0, 0, 0, 0},
@@ -574,7 +575,7 @@ func setupDefaultStyle() {
 				BorderColor: math32.Color4{0, 0, 0, 0},
 				BgColor:     math32.Color{0, 0.5, 1},
 				FgColor:     fgColor,
-				Icons:       [2]int{assets.ExpandMore, assets.ExpandLess},
+				Icons:       [2]int{icon.ExpandMore, icon.ExpandLess},
 			},
 			Focus: &FolderStyle{
 				Margins:     BorderSizes{0, 0, 0, 0},
@@ -583,7 +584,7 @@ func setupDefaultStyle() {
 				BorderColor: math32.Color4{0, 0, 0, 0},
 				BgColor:     math32.Color{0, 0.5, 1},
 				FgColor:     fgColor,
-				Icons:       [2]int{assets.ExpandMore, assets.ExpandLess},
+				Icons:       [2]int{icon.ExpandMore, icon.ExpandLess},
 			},
 			Disabled: &FolderStyle{
 				Margins:     BorderSizes{0, 0, 0, 0},
@@ -592,7 +593,7 @@ func setupDefaultStyle() {
 				BorderColor: math32.Color4{0, 0, 0, 0},
 				BgColor:     math32.Color{0, 0.5, 1},
 				FgColor:     fgColor,
-				Icons:       [2]int{assets.ExpandMore, assets.ExpandLess},
+				Icons:       [2]int{icon.ExpandMore, icon.ExpandLess},
 			},
 		},
 		Tree: &TreeStyles{
@@ -665,7 +666,7 @@ func setupDefaultStyle() {
 					BorderColor: borderColor,
 					BgColor:     bgColor4,
 					FgColor:     fgColor,
-					Icons:       [2]int{assets.ExpandMore, assets.ExpandLess},
+					Icons:       [2]int{icon.ExpandMore, icon.ExpandLess},
 				},
 			},
 			Padlevel: 2.0,

+ 4 - 4
gui/table.go

@@ -10,7 +10,7 @@ import (
 	"sort"
 	"strconv"
 
-	"github.com/g3n/engine/gui/assets"
+	"github.com/g3n/engine/gui/assets/icon"
 	"github.com/g3n/engine/math32"
 	"github.com/g3n/engine/window"
 )
@@ -43,9 +43,9 @@ const (
 )
 
 const (
-	tableSortedNoneIcon = assets.SwapVert
-	tableSortedAscIcon  = assets.ArrowDownward
-	tableSortedDescIcon = assets.ArrowUpward
+	tableSortedNoneIcon = icon.SwapVert
+	tableSortedAscIcon  = icon.ArrowDownward
+	tableSortedDescIcon = icon.ArrowUpward
 	tableSortedNone     = 0
 	tableSortedAsc      = 1
 	tableSortedDesc     = 2

+ 16 - 3
gui/assets/genicodes/main.go

@@ -16,11 +16,11 @@ import (
 
 // Command line options
 var (
-	oPackage = flag.String("p", "assets", "Package name")
+	oPackage = flag.String("pkg", "icon", "Package name")
 )
 
 const (
-	PROGNAME = "genicodes"
+	PROGNAME = "g3nicodes"
 	VMAJOR   = 0
 	VMINOR   = 1
 )
@@ -60,8 +60,8 @@ func main() {
 			log.Fatal(err)
 			return
 		}
+		defer fout.Close()
 	}
-	defer fout.Close()
 
 	// Parse input file
 	var td TemplateData
@@ -157,4 +157,17 @@ const (
 	{{- end}}
 )
 
+// IconCodepoint returns the codepoint for the specified icon name.
+// Returns 0 if the name not found
+func Codepoint(name string) uint {
+
+	return name2Codepoint[name]
+}
+
+// Maps icon name to codepoint
+var name2Codepoint = map[string]uint{
+	{{range .Consts}}
+		"{{.Name}}": {{.Value}},	
+	{{- end}}
+}
 `