Skip to content

Commit

Permalink
Add missing colors to catalog app
Browse files Browse the repository at this point in the history
  • Loading branch information
wmontwe committed Sep 27, 2023
1 parent 3b7111d commit d90beed
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import app.k9mail.core.ui.compose.theme.MainTheme
import app.k9mail.ui.catalog.ui.common.list.itemDefaultPadding
import app.k9mail.ui.catalog.ui.common.list.sectionHeaderItem

@Suppress("LongMethod")
fun LazyGridScope.colorItems() {
sectionHeaderItem(text = "Material theme colors")
item {
Expand Down Expand Up @@ -52,12 +53,30 @@ fun LazyGridScope.colorItems() {
color = MainTheme.colors.surface,
)
}
item {
ColorContent(
name = "Success",
color = MainTheme.colors.success,
)
}
item {
ColorContent(
name = "Error",
color = MainTheme.colors.error,
)
}
item {
ColorContent(
name = "Warning",
color = MainTheme.colors.warning,
)
}
item {
ColorContent(
name = "Info",
color = MainTheme.colors.info,
)
}
}

@Composable
Expand Down

0 comments on commit d90beed

Please sign in to comment.