fix: Pad 上顶栏左侧空白

This commit is contained in:
HuanCheng65 2023-10-05 00:06:07 +08:00
parent 46a42746dc
commit b3f767fd6b
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
1 changed files with 2 additions and 2 deletions

View File

@ -310,11 +310,11 @@ fun Toolbar(
actions() actions()
} }
}, },
navigationIcon = { navigationIcon = (@Composable {
ProvideContentColor(color = ExtendedTheme.colors.onTopBar) { ProvideContentColor(color = ExtendedTheme.colors.onTopBar) {
navigationIcon?.invoke() navigationIcon?.invoke()
} }
}, }).takeIf { navigationIcon != null },
backgroundColor = ExtendedTheme.colors.topBar, backgroundColor = ExtendedTheme.colors.topBar,
contentColor = ExtendedTheme.colors.onTopBar, contentColor = ExtendedTheme.colors.onTopBar,
elevation = 0.dp elevation = 0.dp