diff options
Diffstat (limited to 'engine/UI/Style.go')
| -rw-r--r-- | engine/UI/Style.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engine/UI/Style.go b/engine/UI/Style.go index 1901e4b..091a6a3 100644 --- a/engine/UI/Style.go +++ b/engine/UI/Style.go @@ -4,10 +4,14 @@ import ( rl "github.com/gen2brain/raylib-go/raylib" ) +// Arguments that UI elements use to render type Style struct { BacgroundColor *rl.Color FontColor *rl.Color Padding *float32 + + // Used in the drawing rectangles. Works like border-radius + Roundness *float32 } // Fills up not specifiend elements with default ones @@ -21,4 +25,7 @@ func (base *Style) FillMissing(defaultStyle *Style) { if base.FontColor == nil { base.FontColor = defaultLabelStyle.FontColor } + if base.Roundness == nil { + base.Roundness = defaultLabelStyle.Roundness + } } |
