Skip to content

Commit

Permalink
ui: add horizontal divider back for touch area dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
plateaukao committed Jun 23, 2022
1 parent d22810a commit 11104d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ fun ToggleItem(

@Preview
@Composable
private fun previewItem() {
private fun PreviewItem() {
MyTheme {
ToggleItem(true, R.string.title, R.drawable.ic_location) {}
}
}

@Preview
@Composable
private fun previewItemList() {
private fun PreviewItemList() {
MyTheme {
FastToggleItemList(onClicked = {})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ fun TouchAreaContent(
) {
Column(Modifier.width(300.dp)) {
Text(
modifier = Modifier.padding(6.dp).fillMaxWidth(),
modifier = Modifier
.padding(6.dp)
.fillMaxWidth(),
text = "Touch Area",
color = MaterialTheme.colors.onBackground,
style = MaterialTheme.typography.h6,
Expand All @@ -86,6 +88,7 @@ fun TouchAreaContent(
ToggleItem(state = switchTouchArea, titleResId = R.string.switch_touch_area_action, iconResId = -1, onClicked ={ onSwitchAreaClick() } )

Spacer(modifier = Modifier.height(10.dp))
HorizontalSeparator()

Row(modifier = Modifier
.fillMaxWidth()
Expand Down

0 comments on commit 11104d1

Please sign in to comment.