1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 16:25:17 +00:00

Adapt conversations color for #Forez

This commit is contained in:
2021-04-25 16:35:50 +02:00
parent 616755aa38
commit ecd11fbf29
3 changed files with 9 additions and 2 deletions

View File

@ -7,6 +7,7 @@ import 'package:comunic/helpers/users_helper.dart';
import 'package:comunic/lists/conversation_messages_list.dart';
import 'package:comunic/lists/users_list.dart';
import 'package:comunic/models/api_request.dart';
import 'package:comunic/models/config.dart';
import 'package:comunic/models/conversation.dart';
import 'package:comunic/models/conversation_message.dart';
import 'package:comunic/models/new_conversation_message.dart';
@ -92,6 +93,7 @@ class _ConversationScreenState extends SafeState<ConversationScreen> {
// Colors definition
Color get _senderColor =>
_conversation.color ??
config().defaultConversationColor ??
/*(darkTheme() ? Color(0xff2b343b) :*/ Colors.blue.shade700; //);
Color get _receiverColor =>
@ -100,11 +102,13 @@ class _ConversationScreenState extends SafeState<ConversationScreen> {
Color get _greyColor => Color(0xff8f8f8f);
Color get _gradientColorStart =>
_conversation.color ??
(_conversation.color ?? config().defaultConversationColor)
?.withOpacity(0.7) ??
(darkTheme() ? Color(0xff00b6f3) : Colors.blue.shade300);
Color get _gradientColorEnd =>
_conversation.color?.withOpacity(0.7) ??
_conversation.color ??
config().defaultConversationColor ??
(darkTheme() ? Color(0xff0184dc) : Colors.blueAccent.shade700);
Color get _separatorColor =>