Skip to content

Commit 4733040

Browse files
committed
refactor: code sample (#521)
Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
1 parent 6b07f57 commit 4733040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DesignToolbox/DesignToolbox/Pages/Components/ColoredBackground/ColoredBackgroundConfiguration.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ final class ColoredBackgroundConfigurationModel: ComponentConfiguration {
3939
override func updateCode() {
4040
code =
4141
"""
42-
OUDSColoredSurface(color: .\(selectedColor.description)) {
42+
OUDSColoredSurface(color: theme.colorModes.\(selectedColor.description)) {
4343
Text("\(selectedColor.formattedName)")
4444
.oudsForegroundColor(theme.colors.colorContentDefault)
4545

0 commit comments

Comments
 (0)