macOS widgets
This commit is contained in:
parent
34a6d960a2
commit
f5813b513c
|
|
@ -332,6 +332,7 @@ struct DashboardWidgetEntryView : View {
|
||||||
let formatter = NumberFormatter()
|
let formatter = NumberFormatter()
|
||||||
formatter.numberStyle = .currency
|
formatter.numberStyle = .currency
|
||||||
formatter.currencyCode = currency?.code ?? "USD"
|
formatter.currencyCode = currency?.code ?? "USD"
|
||||||
|
formatter.locale = Locale(identifier: "en_US")
|
||||||
|
|
||||||
formatter.minimumFractionDigits = 0
|
formatter.minimumFractionDigits = 0
|
||||||
formatter.maximumFractionDigits = 0
|
formatter.maximumFractionDigits = 0
|
||||||
|
|
@ -348,7 +349,7 @@ struct DashboardWidgetEntryView : View {
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
VStack {
|
VStack (spacing: 4) {
|
||||||
Text(entry.configuration.dashboardField?.displayString ?? "")
|
Text(entry.configuration.dashboardField?.displayString ?? "")
|
||||||
.font(.body)
|
.font(.body)
|
||||||
.bold()
|
.bold()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue