@ file : Jvm Name (" Play ground Theme Android ") Ċ Ċ package Ġio . ash dav ies . playground Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . os . Build Ċ import Ġandroidx . annotation . Requires Api Ċ import Ġandroidx . compose . material 3 . Color Scheme Ċ import Ġandroidx . compose . material 3 . dynamic Dark Color Scheme Ċ import Ġandroidx . compose . material 3 . dynamic Light Color Scheme Ċ import Ġandroidx . compose . runtime . Composable Ċ import Ġandroidx . compose . ui . platform . Local Context Ċ Ċ @ Composable Ċ public Ġactual Ġfun Ġdynamic Color Scheme ( dark Theme : ĠBoolean ): ĠColor Scheme Ġ= Ġwhen Ġ{ ĊĠĠĠ ĠBuild . VERSION . SDK _ INT Ġ>= ĠBuild . VERSION _ CODES . S Ġ-> Ġdynamic Color Scheme ( Local Context . current , Ġdark Theme ) ĊĠĠĠ Ġelse Ġ-> Ġdefault Color Scheme ( dark Theme ) Ċ } Ċ Ċ @ Composable Ċ @ Requires Api ( Build . VERSION _ CODES . S ) Ċ private Ġfun Ġdynamic Color Scheme ( context : ĠContext , Ġdark Theme : ĠBoolean ): ĠColor Scheme Ġ= Ġwhen Ġ{ ĊĠĠĠ Ġdark Theme Ġ-> Ġdynamic Dark Color Scheme ( context ) ĊĠĠĠ Ġelse Ġ-> Ġdynamic Light Color Scheme ( context ) Ċ } Ċ