design: Adjust some colors in inputbar

pull/969/head
krille-chan 2 years ago
parent a8606f18b6
commit f42509f710
No known key found for this signature in database

@ -42,9 +42,8 @@ class ChatEmojiPicker extends StatelessWidget {
onBackspacePressed: controller.emojiPickerBackspace, onBackspacePressed: controller.emojiPickerBackspace,
config: Config( config: Config(
backspaceColor: theme.colorScheme.primary, backspaceColor: theme.colorScheme.primary,
bgColor: theme.brightness == Brightness.light bgColor:
? Colors.white Theme.of(context).colorScheme.onInverseSurface,
: Colors.black,
iconColor: iconColor:
theme.colorScheme.primary.withOpacity(0.5), theme.colorScheme.primary.withOpacity(0.5),
iconColorSelected: theme.colorScheme.primary, iconColorSelected: theme.colorScheme.primary,

@ -10,12 +10,14 @@ class ReplyContent extends StatelessWidget {
final Event replyEvent; final Event replyEvent;
final bool ownMessage; final bool ownMessage;
final Timeline? timeline; final Timeline? timeline;
final Color? backgroundColor;
const ReplyContent( const ReplyContent(
this.replyEvent, { this.replyEvent, {
this.ownMessage = false, this.ownMessage = false,
super.key, super.key,
this.timeline, this.timeline,
this.backgroundColor,
}); });
static const BorderRadius borderRadius = BorderRadius.only( static const BorderRadius borderRadius = BorderRadius.only(
@ -34,7 +36,8 @@ class ReplyContent extends StatelessWidget {
: Theme.of(context).colorScheme.primary; : Theme.of(context).colorScheme.primary;
return Material( return Material(
color: Theme.of(context) color: backgroundColor ??
Theme.of(context)
.colorScheme .colorScheme
.background .background
.withOpacity(ownMessage ? 0.2 : 0.33), .withOpacity(ownMessage ? 0.2 : 0.33),

@ -60,7 +60,7 @@ class ReactionsPicker extends StatelessWidget {
Expanded( Expanded(
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context).secondaryHeaderColor, color: Theme.of(context).colorScheme.onInverseSurface,
borderRadius: const BorderRadius.only( borderRadius: const BorderRadius.only(
bottomRight: Radius.circular(AppConfig.borderRadius), bottomRight: Radius.circular(AppConfig.borderRadius),
), ),
@ -92,7 +92,7 @@ class ReactionsPicker extends StatelessWidget {
width: 36, width: 36,
height: 56, height: 56,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context).secondaryHeaderColor, color: Theme.of(context).colorScheme.onInverseSurface,
shape: BoxShape.circle, shape: BoxShape.circle,
), ),
child: const Icon(Icons.add_outlined), child: const Icon(Icons.add_outlined),

@ -21,9 +21,9 @@ class ReplyDisplay extends StatelessWidget {
? 56 ? 56
: 0, : 0,
clipBehavior: Clip.hardEdge, clipBehavior: Clip.hardEdge,
decoration: const BoxDecoration(), decoration: BoxDecoration(
child: Material( color: Theme.of(context).colorScheme.onInverseSurface,
color: Theme.of(context).secondaryHeaderColor, ),
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
IconButton( IconButton(
@ -36,15 +36,14 @@ class ReplyDisplay extends StatelessWidget {
? ReplyContent( ? ReplyContent(
controller.replyEvent!, controller.replyEvent!,
timeline: controller.timeline!, timeline: controller.timeline!,
backgroundColor: Colors.transparent,
) )
: _EditContent( : _EditContent(
controller.editEvent controller.editEvent?.getDisplayEvent(controller.timeline!),
?.getDisplayEvent(controller.timeline!),
), ),
), ),
], ],
), ),
),
); );
} }
} }

@ -100,6 +100,7 @@ class StickerPickerDialogState extends State<StickerPickerDialog> {
}; };
return Scaffold( return Scaffold(
backgroundColor: Theme.of(context).colorScheme.onInverseSurface,
body: SizedBox( body: SizedBox(
width: double.maxFinite, width: double.maxFinite,
child: CustomScrollView( child: CustomScrollView(
@ -108,7 +109,7 @@ class StickerPickerDialogState extends State<StickerPickerDialog> {
floating: true, floating: true,
pinned: true, pinned: true,
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
backgroundColor: Theme.of(context).dialogBackgroundColor, backgroundColor: Colors.transparent,
title: SizedBox( title: SizedBox(
height: 42, height: 42,
child: TextField( child: TextField(

Loading…
Cancel
Save