1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-26 06:49:22 +00:00

Apply conversation color

This commit is contained in:
Pierre HUBERT 2021-03-12 22:45:55 +01:00
parent e35a0d2fd4
commit b0cfeec513

View File

@ -88,10 +88,11 @@ class _ConversationScreenState extends SafeState<ConversationScreen> {
Color get _greyColor => Color(0xff8f8f8f); Color get _greyColor => Color(0xff8f8f8f);
Color get _gradientColorStart => Color get _gradientColorStart =>
darkTheme() ? Color(0xff00b6f3) : Colors.green; _conversation.color ?? (darkTheme() ? Color(0xff00b6f3) : Colors.green);
Color get _gradientColorEnd => Color get _gradientColorEnd =>
darkTheme() ? Color(0xff0184dc) : Colors.greenAccent; _conversation.color?.withOpacity(0.7) ??
(darkTheme() ? Color(0xff0184dc) : Colors.greenAccent);
Color get _separatorColor => Color get _separatorColor =>
darkTheme() ? Color(0xff272c35) : Color(0xffBEBEBE); darkTheme() ? Color(0xff272c35) : Color(0xffBEBEBE);
@ -469,7 +470,9 @@ class _ConversationScreenState extends SafeState<ConversationScreen> {
}, },
icon: Icon( icon: Icon(
Icons.face, Icons.face,
color: _showEmojiPicker ? Colors.green : null, color: _showEmojiPicker
? (_conversation.color ?? Colors.blue)
: null,
), ),
), ),
], ],
@ -495,8 +498,8 @@ class _ConversationScreenState extends SafeState<ConversationScreen> {
); );
Widget _buildEmojiContainer() => EmojiPicker( Widget _buildEmojiContainer() => EmojiPicker(
bgColor: Colors.green, bgColor: _conversation.color ?? Colors.blue,
indicatorColor: Colors.green, indicatorColor: _conversation.color ?? Colors.blue,
rows: 3, rows: 3,
columns: 7, columns: 7,
onEmojiSelected: (emoji, category) { onEmojiSelected: (emoji, category) {