diff --git a/lib/forez/main_forez_dev.dart b/lib/forez/main_forez_dev.dart index 605d00e..36b3dfe 100644 --- a/lib/forez/main_forez_dev.dart +++ b/lib/forez/main_forez_dev.dart @@ -34,6 +34,7 @@ void main() { primaryColorDark: Colors.green.shade900, appName: "#Forez", appQuickDescription: tr("Events organisation in Forez plain"), + unreadConversationColor: Colors.green.shade900, toursEntriesBuilder: buildTour, additionalLoading: () => ForezGroupHelper.refreshInfo(), mainRouteBuilder: (c, k) => ForezRoute(key: k), diff --git a/lib/models/config.dart b/lib/models/config.dart index 208881e..2310e1e 100644 --- a/lib/models/config.dart +++ b/lib/models/config.dart @@ -23,6 +23,7 @@ class Config { final Color primaryColorDark; final String appName; final String appQuickDescription; + final Color unreadConversationColor; // Entries for the welcome tour final TourEntriesBuilder toursEntriesBuilder; @@ -43,6 +44,7 @@ class Config { this.primaryColorDark, this.appName = "Comunic", this.appQuickDescription, + this.unreadConversationColor, this.toursEntriesBuilder, this.additionalLoading, this.mainRouteBuilder, diff --git a/lib/ui/tiles/conversation_tile.dart b/lib/ui/tiles/conversation_tile.dart index b70f376..39d2a37 100644 --- a/lib/ui/tiles/conversation_tile.dart +++ b/lib/ui/tiles/conversation_tile.dart @@ -1,6 +1,7 @@ import 'package:comunic/helpers/conversations_helper.dart'; import 'package:comunic/lists/groups_list.dart'; import 'package:comunic/lists/users_list.dart'; +import 'package:comunic/models/config.dart'; import 'package:comunic/models/conversation.dart'; import 'package:comunic/ui/routes/main_route/main_route.dart'; import 'package:comunic/ui/widgets/conversation_image_widget.dart'; @@ -76,7 +77,10 @@ class ConversationTile extends StatelessWidget { // Tile color tileColor: conversation.sawLastMessage ? null - : (conversation.color ?? Colors.blue).withOpacity(0.2), + : (conversation.color ?? + config().unreadConversationColor ?? + Colors.blue) + .withOpacity(0.2), // Leading icon leading: ConversationImageWidget(