Can’t read ‘Logged’ status for expenses
This commit is contained in:
parent
9fd3bc8658
commit
b9afe3a0ae
|
|
@ -12,13 +12,13 @@ class InvoiceStatusColors {
|
||||||
|
|
||||||
Map<String, Color> get colors {
|
Map<String, Color> get colors {
|
||||||
return {
|
return {
|
||||||
kInvoiceStatusDraft: _colorTheme.colorDarkGray,
|
kInvoiceStatusDraft: _colorTheme.colorGray,
|
||||||
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.colorLightGray,
|
kInvoiceStatusCancelled: _colorTheme.colorGray,
|
||||||
kInvoiceStatusReversed: _colorTheme.colorLightGray,
|
kInvoiceStatusReversed: _colorTheme.colorGray,
|
||||||
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.colorDarkGray,
|
kRecurringInvoiceStatusDraft: _colorTheme.colorGray,
|
||||||
kRecurringInvoiceStatusActive: _colorTheme.colorSuccess,
|
kRecurringInvoiceStatusActive: _colorTheme.colorSuccess,
|
||||||
kRecurringInvoiceStatusPaused: _colorTheme.colorLightGray,
|
kRecurringInvoiceStatusPaused: _colorTheme.colorGray,
|
||||||
kRecurringInvoiceStatusCompleted: _colorTheme.colorSuccess,
|
kRecurringInvoiceStatusCompleted: _colorTheme.colorSuccess,
|
||||||
kRecurringInvoiceStatusPending: _colorTheme.colorLightGray,
|
kRecurringInvoiceStatusPending: _colorTheme.colorGray,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -47,7 +47,7 @@ class CreditStatusColors {
|
||||||
|
|
||||||
Map<String, Color> get colors {
|
Map<String, Color> get colors {
|
||||||
return {
|
return {
|
||||||
kCreditStatusDraft: _colorTheme.colorDarkGray,
|
kCreditStatusDraft: _colorTheme.colorGray,
|
||||||
kCreditStatusSent: _colorTheme.colorInfo,
|
kCreditStatusSent: _colorTheme.colorInfo,
|
||||||
kCreditStatusPartial: _colorTheme.colorPrimary,
|
kCreditStatusPartial: _colorTheme.colorPrimary,
|
||||||
kCreditStatusApplied: _colorTheme.colorSuccess,
|
kCreditStatusApplied: _colorTheme.colorSuccess,
|
||||||
|
|
@ -62,7 +62,7 @@ class QuoteStatusColors {
|
||||||
|
|
||||||
Map<String, Color> get colors {
|
Map<String, Color> get colors {
|
||||||
return {
|
return {
|
||||||
kQuoteStatusDraft: _colorTheme.colorDarkGray,
|
kQuoteStatusDraft: _colorTheme.colorGray,
|
||||||
kQuoteStatusSent: _colorTheme.colorInfo,
|
kQuoteStatusSent: _colorTheme.colorInfo,
|
||||||
kQuoteStatusApproved: _colorTheme.colorPrimary,
|
kQuoteStatusApproved: _colorTheme.colorPrimary,
|
||||||
kQuoteStatusConverted: _colorTheme.colorSuccess,
|
kQuoteStatusConverted: _colorTheme.colorSuccess,
|
||||||
|
|
@ -79,14 +79,14 @@ class PaymentStatusColors {
|
||||||
|
|
||||||
Map<String, Color> get colors {
|
Map<String, Color> get colors {
|
||||||
return {
|
return {
|
||||||
kPaymentStatusPending: _colorTheme.colorDarkGray,
|
kPaymentStatusPending: _colorTheme.colorGray,
|
||||||
kPaymentStatusCancelled: _colorTheme.colorLightGray,
|
kPaymentStatusCancelled: _colorTheme.colorGray,
|
||||||
kPaymentStatusFailed: _colorTheme.colorDanger,
|
kPaymentStatusFailed: _colorTheme.colorDanger,
|
||||||
kPaymentStatusCompleted: _colorTheme.colorSuccess,
|
kPaymentStatusCompleted: _colorTheme.colorSuccess,
|
||||||
kPaymentStatusPartiallyRefunded: _colorTheme.colorPrimary,
|
kPaymentStatusPartiallyRefunded: _colorTheme.colorPrimary,
|
||||||
kPaymentStatusRefunded: _colorTheme.colorLightGray,
|
kPaymentStatusRefunded: _colorTheme.colorGray,
|
||||||
kPaymentStatusUnapplied: _colorTheme.colorDarkGray,
|
kPaymentStatusUnapplied: _colorTheme.colorGray,
|
||||||
kPaymentStatusPartiallyUnapplied: _colorTheme.colorDarkGray,
|
kPaymentStatusPartiallyUnapplied: _colorTheme.colorGray,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -98,7 +98,7 @@ class ExpenseStatusColors {
|
||||||
|
|
||||||
Map<String, Color> get colors {
|
Map<String, Color> get colors {
|
||||||
return {
|
return {
|
||||||
kExpenseStatusLogged: _colorTheme.colorDarkGray,
|
kExpenseStatusLogged: _colorTheme.colorGray,
|
||||||
kExpenseStatusPending: _colorTheme.colorPrimary,
|
kExpenseStatusPending: _colorTheme.colorPrimary,
|
||||||
kExpenseStatusInvoiced: _colorTheme.colorSuccess,
|
kExpenseStatusInvoiced: _colorTheme.colorSuccess,
|
||||||
};
|
};
|
||||||
|
|
@ -112,7 +112,7 @@ class TaskStatusColors {
|
||||||
|
|
||||||
Map<String, Color> get colors {
|
Map<String, Color> get colors {
|
||||||
return {
|
return {
|
||||||
kTaskStatusLogged: _colorTheme.colorDarkGray,
|
kTaskStatusLogged: _colorTheme.colorGray,
|
||||||
kTaskStatusRunning: _colorTheme.colorPrimary,
|
kTaskStatusRunning: _colorTheme.colorPrimary,
|
||||||
kTaskStatusInvoiced: _colorTheme.colorSuccess,
|
kTaskStatusInvoiced: _colorTheme.colorSuccess,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,22 +5,21 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:invoiceninja_flutter/constants.dart';
|
import 'package:invoiceninja_flutter/constants.dart';
|
||||||
|
|
||||||
class ColorTheme {
|
class ColorTheme {
|
||||||
ColorTheme(
|
ColorTheme({
|
||||||
{this.colorPrimary,
|
this.colorPrimary,
|
||||||
this.colorInfo,
|
this.colorInfo,
|
||||||
this.colorSuccess,
|
this.colorSuccess,
|
||||||
this.colorWarning,
|
this.colorWarning,
|
||||||
this.colorDanger,
|
this.colorDanger,
|
||||||
this.colorLightGray = const Color(0xff888888),
|
this.colorGray = const Color(0xff888888),
|
||||||
this.colorDarkGray = const Color(0xff333333)});
|
});
|
||||||
|
|
||||||
Color colorPrimary;
|
Color colorPrimary;
|
||||||
Color colorInfo;
|
Color colorInfo;
|
||||||
Color colorSuccess;
|
Color colorSuccess;
|
||||||
Color colorWarning;
|
Color colorWarning;
|
||||||
Color colorDanger;
|
Color colorDanger;
|
||||||
Color colorLightGray;
|
Color colorGray;
|
||||||
Color colorDarkGray;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, ColorTheme> colorThemesMap = {
|
Map<String, ColorTheme> colorThemesMap = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue