@@ -9,14 +9,10 @@ import androidx.compose.material3.dynamicLightColorScheme
|
9 | 9 | import androidx.compose.runtime.Composable |
10 | 10 | import androidx.compose.runtime.CompositionLocalProvider |
11 | 11 | import androidx.compose.runtime.SideEffect |
12 | | -import androidx.compose.runtime.staticCompositionLocalOf |
13 | | -import androidx.compose.ui.graphics.Color |
14 | 12 | import androidx.compose.ui.platform.LocalContext |
15 | 13 | import androidx.compose.ui.platform.LocalView |
16 | 14 | import androidx.core.view.WindowCompat |
17 | 15 | |
18 | | -private val LocalOpenClawDarkTheme = staticCompositionLocalOf { true } |
19 | | - |
20 | 16 | /** |
21 | 17 | * App theme wrapper that installs dynamic Material colors and legacy mobile color tokens. |
22 | 18 | */ |
@@ -34,7 +30,6 @@ fun OpenClawTheme(
|
34 | 30 | |
35 | 31 | CompositionLocalProvider( |
36 | 32 | LocalMobileColors provides mobileColors, |
37 | | -LocalOpenClawDarkTheme provides isDark, |
38 | 33 | ) { |
39 | 34 | MaterialTheme(colorScheme = colorScheme, content = content) |
40 | 35 | } |
@@ -55,15 +50,3 @@ internal fun OpenClawSystemBarAppearance(lightAppearance: Boolean) {
|
55 | 50 | } |
56 | 51 | } |
57 | 52 | } |
58 | | - |
59 | | -/** |
60 | | - * Overlay background token tuned for panels floating over the mobile canvas. |
61 | | - */ |
62 | | -@Composable |
63 | | -fun overlayContainerColor(): Color { |
64 | | -val scheme = MaterialTheme.colorScheme |
65 | | -val isDark = LocalOpenClawDarkTheme.current |
66 | | -val base = if (isDark) scheme.surfaceContainerLow else scheme.surfaceContainerHigh |
67 | | -// Light mode keeps overlays away from pure-white glare on the app canvas. |
68 | | -return if (isDark) base else base.copy(alpha = 0.88f) |
69 | | -} |