package ui import ( rl "github.com/gen2brain/raylib-go/raylib" ) type Style struct { BacgroundColor *rl.Color FontColor *rl.Color Padding *float32 } // Fills up not specifiend elements with default ones func (base *Style) FillMissing(defaultStyle *Style) { if base.BacgroundColor == nil { base.BacgroundColor = defaultLabelStyle.BacgroundColor } if base.Padding == nil { base.Padding = defaultLabelStyle.Padding } if base.FontColor == nil { base.FontColor = defaultLabelStyle.FontColor } }