chore: Follow up message bubbles

This commit is contained in:
krille-chan 2024-11-03 12:00:31 +01:00
commit 769baa3d9f
No known key found for this signature in database
2 changed files with 10 additions and 4 deletions

View file

@ -319,9 +319,12 @@ class Message extends StatelessWidget {
gradient: ownMessage && !noBubble gradient: ownMessage && !noBubble
? LinearGradient( ? LinearGradient(
colors: [ colors: [
theme.colorScheme.primary, theme.brightness ==
theme.colorScheme Brightness.light
.onPrimaryFixedVariant, ? theme.colorScheme
.onPrimaryFixedVariant
: theme.colorScheme
.primaryFixed,
], ],
begin: Alignment.centerLeft, begin: Alignment.centerLeft,
end: Alignment.bottomRight, end: Alignment.bottomRight,

View file

@ -216,7 +216,10 @@ class SettingsStyleView extends StatelessWidget {
gradient: LinearGradient( gradient: LinearGradient(
colors: [ colors: [
theme.colorScheme.primary, theme.colorScheme.primary,
theme.colorScheme.onPrimaryFixedVariant, theme.brightness == Brightness.light
? theme.colorScheme
.onPrimaryFixedVariant
: theme.colorScheme.primaryFixed,
], ],
begin: Alignment.centerLeft, begin: Alignment.centerLeft,
end: Alignment.bottomRight, end: Alignment.bottomRight,