diff options
| author | Physcik <mynameisgennadiy@vk.com> | 2026-02-06 01:55:27 +0500 |
|---|---|---|
| committer | Physcik <mynameisgennadiy@vk.com> | 2026-02-06 01:55:27 +0500 |
| commit | 85666467056ccae2011128e0d38ea2dbd1efee8a (patch) | |
| tree | fa91af8a8e9be05e6ef87a4ecddc6b3f0303dea4 /engine/UI/Style.go | |
| parent | e071f6670cf2d379237bf9cc66bd99696e48df8d (diff) | |
Menu description pt. 1
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 } } |
