状态栏透明 拿到SystemUiController的setStatusBarColor()方法来改变状态栏,也可以修改底部导航栏 setContent {UseComposeTheme{//状态栏改为透明,参数:color(状态栏颜色),darkIcons(是否为深色图标)rememberSystemUiController().setStatusBarColor(Color.Transpa
Avoid using <StatusBar> on iOS as the system has built-in support for changing the color better than most custom solutions. Enable OS-changing with: { "expo": { "userInterfaceStyle": "automatic", "ios": { "infoPlist": { "UIViewControllerBasedStatusBarAppearance": true, } } } } This...
One thing people like to do is change a button to look like the buttons on a video game controller, which can make playing a game on tablet or phone a lot more like playing a traditional game. You can learn how to create a user interface for video games as well as how to create ...
import androidx.core.view.WindowInsetsControllerCompat import li.songe.gkd.MainActivity import li.songe.gkd.util.LocalMainViewModel val LightColorScheme = lightColorScheme() val DarkColorScheme = darkColorScheme() Expand All @@ -28,9 +28,10 @@ fun AppTheme( content: @Composable () -> Unit...