Extracted
This commit is contained in:
parent
003b4b3b55
commit
5d88e51ab9
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue