design: Adjust some colors in inputbar

This commit is contained in:
krille-chan 2024-04-01 10:32:11 +02:00
parent a8606f18b6
commit f42509f710
No known key found for this signature in database
5 changed files with 35 additions and 33 deletions

View file

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

View file

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

View file

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

View file

@ -21,29 +21,28 @@ class ReplyDisplay extends StatelessWidget {
? 56
: 0,
clipBehavior: Clip.hardEdge,
decoration: const BoxDecoration(),
child: Material(
color: Theme.of(context).secondaryHeaderColor,
child: Row(
children: <Widget>[
IconButton(
tooltip: L10n.of(context)!.close,
icon: const Icon(Icons.close),
onPressed: controller.cancelReplyEventAction,
),
Expanded(
child: controller.replyEvent != null
? ReplyContent(
controller.replyEvent!,
timeline: controller.timeline!,
)
: _EditContent(
controller.editEvent
?.getDisplayEvent(controller.timeline!),
),
),
],
),
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.onInverseSurface,
),
child: Row(
children: <Widget>[
IconButton(
tooltip: L10n.of(context)!.close,
icon: const Icon(Icons.close),
onPressed: controller.cancelReplyEventAction,
),
Expanded(
child: controller.replyEvent != null
? ReplyContent(
controller.replyEvent!,
timeline: controller.timeline!,
backgroundColor: Colors.transparent,
)
: _EditContent(
controller.editEvent?.getDisplayEvent(controller.timeline!),
),
),
],
),
);
}

View file

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