lemma emoji picker style updates
This commit is contained in:
parent
cede48569c
commit
3bbf6e4f6c
4 changed files with 17 additions and 30 deletions
|
|
@ -27,7 +27,7 @@ abstract class AppConfig {
|
|||
static const bool allowOtherHomeservers = true;
|
||||
static const bool enableRegistration = true;
|
||||
// #Pangea
|
||||
static const double toolbarMaxHeight = 225.0;
|
||||
static const double toolbarMaxHeight = 235.0;
|
||||
static const double toolbarMinHeight = 150.0;
|
||||
static const double toolbarMinWidth = 350.0;
|
||||
static const double toolbarMenuHeight = 50.0;
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ class LemmaHighlightEmojiRowState extends State<LemmaHighlightEmojiRow> {
|
|||
}
|
||||
|
||||
return SizedBox(
|
||||
height: 60.0,
|
||||
height: 70.0,
|
||||
child: Row(
|
||||
spacing: 4.0,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
|
|
@ -176,16 +176,16 @@ class EmojiChoiceItemState extends State<EmojiChoiceItem> {
|
|||
link: layerLink,
|
||||
child: AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 200),
|
||||
padding: const EdgeInsets.all(8),
|
||||
padding: const EdgeInsets.all(10),
|
||||
decoration: BoxDecoration(
|
||||
color: hovered
|
||||
? Theme.of(context).colorScheme.primary.withAlpha(50)
|
||||
color: hovered || widget.selected
|
||||
? Theme.of(context).colorScheme.secondary.withAlpha(30)
|
||||
: Colors.transparent,
|
||||
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
||||
border: widget.selected
|
||||
? Border.all(
|
||||
color: AppConfig.goldLight.withAlpha(200),
|
||||
width: 2,
|
||||
color: Colors.transparent,
|
||||
width: 4,
|
||||
)
|
||||
: null,
|
||||
),
|
||||
|
|
@ -198,8 +198,8 @@ class EmojiChoiceItemState extends State<EmojiChoiceItem> {
|
|||
),
|
||||
if (widget.badge != null)
|
||||
Positioned(
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
right: 6,
|
||||
bottom: 6,
|
||||
child: widget.badge!,
|
||||
),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -104,17 +104,11 @@ class TokenEmojiButtonState extends State<TokenEmojiButton>
|
|||
}
|
||||
|
||||
final child = widget.enabled
|
||||
? _emoji != null
|
||||
? Text(
|
||||
_emoji!,
|
||||
style: TextStyle(fontSize: buttonSize - 8.0),
|
||||
textScaler: TextScaler.noScaling,
|
||||
)
|
||||
: Icon(
|
||||
Icons.add_reaction_outlined,
|
||||
size: buttonSize - 8.0,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
)
|
||||
? Text(
|
||||
_emoji ?? "-",
|
||||
style: TextStyle(fontSize: buttonSize - 8.0),
|
||||
textScaler: TextScaler.noScaling,
|
||||
)
|
||||
: null;
|
||||
|
||||
final content = ValueListenableBuilder(
|
||||
|
|
|
|||
|
|
@ -121,16 +121,9 @@ class LemmaReactionPickerState extends State<LemmaReactionPicker>
|
|||
selectedEmojiBadge: widget.event != null &&
|
||||
_selectedEmoji != null &&
|
||||
_sentReaction(_selectedEmoji!) == null
|
||||
? CircleAvatar(
|
||||
backgroundColor: Theme.of(context).colorScheme.onSurface,
|
||||
radius: 8.0,
|
||||
child: Center(
|
||||
child: Icon(
|
||||
Icons.send,
|
||||
size: 12.0,
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
),
|
||||
),
|
||||
? const Icon(
|
||||
Icons.add_reaction,
|
||||
size: 12.0,
|
||||
)
|
||||
: null,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue