System

object System : Theme

System theme mode that follows the system's theme preference.

When in system mode, the application adapts to the user's device-wide theme setting (light or dark). The opposite function returns the theme that would be opposite to the current system preference.

Properties

Link copied to clipboard
open override val ordinal: Int = 2

The unique ordinal identifier for this theme mode.

Functions

Link copied to clipboard

Determines if this theme resolves to a dark appearance.

Link copied to clipboard
open override fun opposite(isSystemInDarkTheme: Boolean): Theme

Returns the opposite theme based on the current theme and system settings.