We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2ce0c8 commit 3ad98fbCopy full SHA for 3ad98fb
StyleSetter.go
@@ -38,14 +38,13 @@ func Style() *StyleSetter {
38
}
39
40
// Add merges two StyleSetters.
41
-// It does not modify neither "ss" nor "other" StyleSetters.
42
// Add puts other "on top" of ss, meaning, "other" is applied after "ss".
43
// e.g. if both StyleSetters set imgui.StyleVarAlpha, the value from "other" will be used.
44
// NOTE: font value "nil" is treated as "not set" and will not be changed if declared by other.
45
// NOTE: true is preffered over false for disabled field.
46
// NOTE: layout field will be reset.
47
func (ss *StyleSetter) Add(other *StyleSetter) *StyleSetter {
48
- result := *ss
+ result := ss
49
for k, v := range other.colors {
50
result.colors[k] = v
51
0 commit comments