Use different color than gray for canceled invoices
This commit is contained in:
parent
3105492c10
commit
82dbb7b2ea
|
|
@ -12,13 +12,13 @@ class InvoiceStatusColors {
|
||||||
|
|
||||||
Map<String, Color> get colors {
|
Map<String, Color> get colors {
|
||||||
return {
|
return {
|
||||||
kInvoiceStatusDraft: _colorTheme.colorGray,
|
kInvoiceStatusDraft: _colorTheme.colorLightGray,
|
||||||
kInvoiceStatusSent: _colorTheme.colorInfo,
|
kInvoiceStatusSent: _colorTheme.colorInfo,
|
||||||
kInvoiceStatusPartial: _colorTheme.colorPrimary,
|
kInvoiceStatusPartial: _colorTheme.colorPrimary,
|
||||||
kInvoiceStatusPaid: _colorTheme.colorSuccess,
|
kInvoiceStatusPaid: _colorTheme.colorSuccess,
|
||||||
kInvoiceStatusPastDue: _colorTheme.colorDanger,
|
kInvoiceStatusPastDue: _colorTheme.colorDanger,
|
||||||
kInvoiceStatusCancelled: _colorTheme.colorGray,
|
kInvoiceStatusCancelled: _colorTheme.colorDarkGray,
|
||||||
kInvoiceStatusReversed: _colorTheme.colorGray,
|
kInvoiceStatusReversed: _colorTheme.colorDarkGray,
|
||||||
kInvoiceStatusViewed: _colorTheme.colorWarning,
|
kInvoiceStatusViewed: _colorTheme.colorWarning,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -31,11 +31,11 @@ class RecurringInvoiceStatusColors {
|
||||||
|
|
||||||
Map<String, Color> get colors {
|
Map<String, Color> get colors {
|
||||||
return {
|
return {
|
||||||
kRecurringInvoiceStatusDraft: _colorTheme.colorGray,
|
kRecurringInvoiceStatusDraft: _colorTheme.colorLightGray,
|
||||||
kRecurringInvoiceStatusActive: _colorTheme.colorSuccess,
|
kRecurringInvoiceStatusActive: _colorTheme.colorSuccess,
|
||||||
kRecurringInvoiceStatusPaused: _colorTheme.colorGray,
|
kRecurringInvoiceStatusPaused: _colorTheme.colorDarkGray,
|
||||||
kRecurringInvoiceStatusCompleted: _colorTheme.colorSuccess,
|
kRecurringInvoiceStatusCompleted: _colorTheme.colorInfo,
|
||||||
kRecurringInvoiceStatusPending: _colorTheme.colorGray,
|
kRecurringInvoiceStatusPending: _colorTheme.colorPrimary,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -47,7 +47,7 @@ class CreditStatusColors {
|
||||||
|
|
||||||
Map<String, Color> get colors {
|
Map<String, Color> get colors {
|
||||||
return {
|
return {
|
||||||
kCreditStatusDraft: _colorTheme.colorGray,
|
kCreditStatusDraft: _colorTheme.colorLightGray,
|
||||||
kCreditStatusSent: _colorTheme.colorInfo,
|
kCreditStatusSent: _colorTheme.colorInfo,
|
||||||
kCreditStatusPartial: _colorTheme.colorPrimary,
|
kCreditStatusPartial: _colorTheme.colorPrimary,
|
||||||
kCreditStatusApplied: _colorTheme.colorSuccess,
|
kCreditStatusApplied: _colorTheme.colorSuccess,
|
||||||
|
|
@ -63,7 +63,7 @@ class PurchaseOrderStatusColors {
|
||||||
|
|
||||||
Map<String, Color> get colors {
|
Map<String, Color> get colors {
|
||||||
return {
|
return {
|
||||||
kPurchaseOrderStatusDraft: _colorTheme.colorGray,
|
kPurchaseOrderStatusDraft: _colorTheme.colorLightGray,
|
||||||
kPurchaseOrderStatusSent: _colorTheme.colorInfo,
|
kPurchaseOrderStatusSent: _colorTheme.colorInfo,
|
||||||
kPurchaseOrderStatusAccepted: _colorTheme.colorPrimary,
|
kPurchaseOrderStatusAccepted: _colorTheme.colorPrimary,
|
||||||
kPurchaseOrderStatusReceived: _colorTheme.colorSuccess,
|
kPurchaseOrderStatusReceived: _colorTheme.colorSuccess,
|
||||||
|
|
@ -94,7 +94,7 @@ class QuoteStatusColors {
|
||||||
|
|
||||||
Map<String, Color> get colors {
|
Map<String, Color> get colors {
|
||||||
return {
|
return {
|
||||||
kQuoteStatusDraft: _colorTheme.colorGray,
|
kQuoteStatusDraft: _colorTheme.colorLightGray,
|
||||||
kQuoteStatusSent: _colorTheme.colorInfo,
|
kQuoteStatusSent: _colorTheme.colorInfo,
|
||||||
kQuoteStatusApproved: _colorTheme.colorPrimary,
|
kQuoteStatusApproved: _colorTheme.colorPrimary,
|
||||||
kQuoteStatusConverted: _colorTheme.colorSuccess,
|
kQuoteStatusConverted: _colorTheme.colorSuccess,
|
||||||
|
|
@ -111,14 +111,14 @@ class PaymentStatusColors {
|
||||||
|
|
||||||
Map<String, Color> get colors {
|
Map<String, Color> get colors {
|
||||||
return {
|
return {
|
||||||
kPaymentStatusPending: _colorTheme.colorGray,
|
kPaymentStatusPending: _colorTheme.colorLightGray,
|
||||||
kPaymentStatusCancelled: _colorTheme.colorGray,
|
kPaymentStatusCancelled: _colorTheme.colorDarkGray,
|
||||||
kPaymentStatusFailed: _colorTheme.colorDanger,
|
kPaymentStatusFailed: _colorTheme.colorDanger,
|
||||||
kPaymentStatusCompleted: _colorTheme.colorSuccess,
|
kPaymentStatusCompleted: _colorTheme.colorSuccess,
|
||||||
kPaymentStatusPartiallyRefunded: _colorTheme.colorPrimary,
|
kPaymentStatusPartiallyRefunded: _colorTheme.colorPrimary,
|
||||||
kPaymentStatusRefunded: _colorTheme.colorGray,
|
kPaymentStatusRefunded: _colorTheme.colorDarkGray,
|
||||||
kPaymentStatusUnapplied: _colorTheme.colorGray,
|
kPaymentStatusUnapplied: _colorTheme.colorInfo,
|
||||||
kPaymentStatusPartiallyUnapplied: _colorTheme.colorGray,
|
kPaymentStatusPartiallyUnapplied: _colorTheme.colorInfo,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -130,7 +130,7 @@ class ExpenseStatusColors {
|
||||||
|
|
||||||
Map<String, Color> get colors {
|
Map<String, Color> get colors {
|
||||||
return {
|
return {
|
||||||
kExpenseStatusLogged: _colorTheme.colorGray,
|
kExpenseStatusLogged: _colorTheme.colorLightGray,
|
||||||
kExpenseStatusPending: _colorTheme.colorPrimary,
|
kExpenseStatusPending: _colorTheme.colorPrimary,
|
||||||
kExpenseStatusInvoiced: _colorTheme.colorSuccess,
|
kExpenseStatusInvoiced: _colorTheme.colorSuccess,
|
||||||
kExpenseStatusPaid: _colorTheme.colorInfo,
|
kExpenseStatusPaid: _colorTheme.colorInfo,
|
||||||
|
|
@ -145,7 +145,7 @@ class TaskStatusColors {
|
||||||
|
|
||||||
Map<String, Color> get colors {
|
Map<String, Color> get colors {
|
||||||
return {
|
return {
|
||||||
kTaskStatusLogged: _colorTheme.colorGray,
|
kTaskStatusLogged: _colorTheme.colorLightGray,
|
||||||
kTaskStatusRunning: _colorTheme.colorPrimary,
|
kTaskStatusRunning: _colorTheme.colorPrimary,
|
||||||
kTaskStatusInvoiced: _colorTheme.colorSuccess,
|
kTaskStatusInvoiced: _colorTheme.colorSuccess,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@ class ColorTheme {
|
||||||
this.colorSuccess,
|
this.colorSuccess,
|
||||||
this.colorWarning,
|
this.colorWarning,
|
||||||
this.colorDanger,
|
this.colorDanger,
|
||||||
this.colorGray = const Color(0xff888888),
|
this.colorLightGray = const Color(0xff888888),
|
||||||
|
this.colorDarkGray = const Color(0xff444444),
|
||||||
});
|
});
|
||||||
|
|
||||||
Color colorPrimary;
|
Color colorPrimary;
|
||||||
|
|
@ -19,7 +20,8 @@ class ColorTheme {
|
||||||
Color colorSuccess;
|
Color colorSuccess;
|
||||||
Color colorWarning;
|
Color colorWarning;
|
||||||
Color colorDanger;
|
Color colorDanger;
|
||||||
Color colorGray;
|
Color colorLightGray;
|
||||||
|
Color colorDarkGray;
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, ColorTheme> colorThemesMap = {
|
Map<String, ColorTheme> colorThemesMap = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue