Skip to content

Commit

Permalink
TopBar - Properly set top bar colors on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Tweener committed Oct 29, 2024
1 parent d4bd92a commit 0dd16ae
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import com.tweener.czan.designsystem.atom.bars.icon.CloseBackIconButton
import com.tweener.czan.designsystem.atom.icon.Icon
import com.tweener.czan.designsystem.atom.text.Text
import com.tweener.czan.theme.Size
import io.github.alexzhirkevich.cupertino.CupertinoTopAppBarDefaults
import io.github.alexzhirkevich.cupertino.adaptive.AdaptiveTopAppBar
import io.github.alexzhirkevich.cupertino.adaptive.ExperimentalAdaptiveApi
import org.jetbrains.compose.resources.DrawableResource
Expand Down Expand Up @@ -214,6 +215,16 @@ internal fun TopBarWithIcon(
actionIconContentColor = colors.actionIconColor(),
)
}

cupertino {
this.colors = CupertinoTopAppBarDefaults.topAppBarColors(
containerColor = colors.containerColor(),
titleContentColor = colors.titleColor(),
navigationIconContentColor = colors.navigationIconColor(),
actionIconContentColor = colors.actionIconColor(),
)
this.divider = {}
}
},
)
}
Expand Down

0 comments on commit 0dd16ae

Please sign in to comment.