diff options
Diffstat (limited to 'engine/UI/Style.go')
| -rw-r--r-- | engine/UI/Style.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/UI/Style.go b/engine/UI/Style.go index 1e05bcf..f308fba 100644 --- a/engine/UI/Style.go +++ b/engine/UI/Style.go @@ -17,16 +17,16 @@ type Style struct { // Fills up not specifiend elements with default ones func (base *Style) FillMissing(defaultStyle *Style) { if base.BacgroundColor == nil { - base.BacgroundColor = defaultLabelStyle.BacgroundColor + base.BacgroundColor = defaultStyle.BacgroundColor } if base.Padding == nil { - base.Padding = defaultLabelStyle.Padding + base.Padding = defaultStyle.Padding } if base.FontColor == nil { - base.FontColor = defaultLabelStyle.FontColor + base.FontColor = defaultStyle.FontColor } if base.Roundness == nil { - base.Roundness = defaultLabelStyle.Roundness + base.Roundness = defaultStyle.Roundness } } |
