File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,13 @@ func Style() *StyleSetter {
38
38
}
39
39
40
40
// Add merges two StyleSetters.
41
- // It does not modify neither "ss" nor "other" StyleSetters.
42
41
// Add puts other "on top" of ss, meaning, "other" is applied after "ss".
43
42
// e.g. if both StyleSetters set imgui.StyleVarAlpha, the value from "other" will be used.
44
43
// NOTE: font value "nil" is treated as "not set" and will not be changed if declared by other.
45
44
// NOTE: true is preffered over false for disabled field.
46
45
// NOTE: layout field will be reset.
47
46
func (ss * StyleSetter ) Add (other * StyleSetter ) * StyleSetter {
48
- result := * ss
47
+ result := ss
49
48
for k , v := range other .colors {
50
49
result .colors [k ] = v
51
50
}
@@ -72,7 +71,7 @@ func (ss *StyleSetter) Add(other *StyleSetter) *StyleSetter {
72
71
73
72
result .layout = nil
74
73
75
- return & result
74
+ return result
76
75
}
77
76
78
77
// SetColor sets colorID's color.
You can’t perform that action at this time.
0 commit comments