Extracted

This commit is contained in:
dankito 2020-08-24 12:18:47 +02:00
parent 003b4b3b55
commit 5d88e51ab9
2 changed files with 7 additions and 3 deletions

View File

@ -73,6 +73,10 @@ extension View {
.detailForegroundColor()
}
func systemGroupedBackground() -> some View {
return self.background(Color(UIColor.systemGroupedBackground))
}
func styleAmount(amount: CommonBigDecimal) -> some View {
let amountColor = amount.decimal.isPositive() ? Styles.PositiveAmountColor : Styles.NegativeAmountColor

View File

@ -115,11 +115,11 @@ struct AccountTransactionsDialog: View {
}
}
.frame(maxWidth: .infinity, minHeight: 40)
.background(Color(UIColor.systemGroupedBackground))
.systemGroupedBackground()
.listRowInsets(EdgeInsets())
}
}
.background(Color(UIColor.systemGroupedBackground))
.systemGroupedBackground()
if showFetchAllTransactionsOverlay {
VStack {
@ -144,7 +144,7 @@ struct AccountTransactionsDialog: View {
}
.frame(height: 40)
.padding(.horizontal, 6)
.background(Color(UIColor.systemGroupedBackground))
.systemGroupedBackground()
}
}
.alert(item: $errorMessage) { message in