Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c07309e1 authored by Wes Okuhara's avatar Wes Okuhara
Browse files

Screen capture: Update UI colors based on theme

This will ensure the Composables respond to changes in the colors in the
theme, including light and dark mode

Bug: 430350331
Test: Manually verify UI
Flag: com.android.systemui.desktop_screen_capture
Change-Id: I2304af4aa0568e18ca87acd34cf1b116bad5f253
parent 5a077e1a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.lifecycle.lifecycleScope
import com.android.compose.theme.PlatformTheme
import com.android.systemui.screencapture.common.ScreenCaptureComponent
import com.android.systemui.screencapture.common.shared.model.ScreenCaptureActivityIntentParameters
import com.android.systemui.screencapture.common.shared.model.ScreenCaptureType
@@ -55,7 +56,7 @@ constructor(

        component =
            builder.setParameters(intentParameters).setScope(lifecycleScope).build().also {
                setContent { it.screenCaptureContent.Content() }
                setContent { PlatformTheme { it.screenCaptureContent.Content() } }
            }
    }