Light theme
This commit is contained in:
parent
4e763bca52
commit
88f55bd769
|
|
@ -178,15 +178,15 @@ class InvoiceNinjaAppState extends State<InvoiceNinjaApp> {
|
||||||
indicatorColor: Colors.white,
|
indicatorColor: Colors.white,
|
||||||
backgroundColor: const Color(0xFFE7EBEE),
|
backgroundColor: const Color(0xFFE7EBEE),
|
||||||
canvasColor: const Color(0xFFE7EBEE),
|
canvasColor: const Color(0xFFE7EBEE),
|
||||||
|
scaffoldBackgroundColor: const Color(0xFFE7EBEE),
|
||||||
cardColor: Colors.white,
|
cardColor: Colors.white,
|
||||||
bottomAppBarColor: Colors.white,
|
bottomAppBarColor: Colors.white,
|
||||||
tabBarTheme: TabBarTheme(
|
tabBarTheme: TabBarTheme(
|
||||||
labelColor: Colors.black,
|
labelColor: Colors.black,
|
||||||
unselectedLabelColor: Colors.black.withOpacity(.65),
|
unselectedLabelColor: Colors.black.withOpacity(.65),
|
||||||
),
|
),
|
||||||
buttonTheme: ButtonThemeData(
|
buttonTheme:
|
||||||
textTheme: ButtonTextTheme.accent
|
ButtonThemeData(textTheme: ButtonTextTheme.accent),
|
||||||
),
|
|
||||||
appBarTheme: AppBarTheme(
|
appBarTheme: AppBarTheme(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
iconTheme: IconThemeData(
|
iconTheme: IconThemeData(
|
||||||
|
|
|
||||||
|
|
@ -75,8 +75,11 @@ EntityStats quoteStatsForClient(
|
||||||
String clientId, BuiltMap<String, InvoiceEntity> quoteMap) {
|
String clientId, BuiltMap<String, InvoiceEntity> quoteMap) {
|
||||||
int countActive = 0;
|
int countActive = 0;
|
||||||
int countArchived = 0;
|
int countArchived = 0;
|
||||||
|
print('## CLIENT ID: $clientId');
|
||||||
quoteMap.forEach((quoteId, quote) {
|
quoteMap.forEach((quoteId, quote) {
|
||||||
|
print('## QUOTE ID: $quoteId, ${quote.number} ${quote.amount}');
|
||||||
if (quote.clientId == clientId) {
|
if (quote.clientId == clientId) {
|
||||||
|
print('## MATCH');
|
||||||
if (quote.isActive) {
|
if (quote.isActive) {
|
||||||
countActive++;
|
countActive++;
|
||||||
} else if (quote.isArchived) {
|
} else if (quote.isArchived) {
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,9 @@ class AppBorder extends StatelessWidget {
|
||||||
final state = store.state;
|
final state = store.state;
|
||||||
final enableDarkMode = state.prefState.enableDarkMode;
|
final enableDarkMode = state.prefState.enableDarkMode;
|
||||||
const borderWidth = 1.5;
|
const borderWidth = 1.5;
|
||||||
final color = convertHexStringToColor(
|
final color = enableDarkMode
|
||||||
enableDarkMode ? kDefaultDarkBorderColor : kDefaultLightBorderColor);
|
? convertHexStringToColor(kDefaultDarkBorderColor)
|
||||||
|
: Colors.white;
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ class ViewScaffold extends StatelessWidget {
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: leading,
|
leading: leading,
|
||||||
automaticallyImplyLeading: isMobile(context) || isSettings,
|
automaticallyImplyLeading: isMobile(context) || isSettings,
|
||||||
title: FittedBox(child: Text(title)),
|
title: Text(title, maxLines: 2,),
|
||||||
bottom: appBarBottom,
|
bottom: appBarBottom,
|
||||||
actions: entity.isNew
|
actions: entity.isNew
|
||||||
? []
|
? []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue