Skip to content

Commit

Permalink
Add missing UiConfiguration docs. (#2220)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite authored Jul 31, 2024
1 parent 4010e12 commit 37fa255
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ import kotlinx.serialization.Serializable
@Serializable
@Poko
public class UiConfiguration(
/**
* True if the device is configured to use a dark color palette.
*/
public val darkMode: Boolean = false,
/**
* A set of distances from the edges of the display where system UI and other elements will be
* drawn.
*
* Use this margin to inset your content to avoid drawing under system UI elements.
*/
public val safeAreaInsets: Margin = Margin.Zero,
/**
* The size of the viewport into which the composition is rendering. This could be as lage as the
Expand Down

0 comments on commit 37fa255

Please sign in to comment.