From 6e92693966b9c2c7ec41ecb40bf204dba8c264c9 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sun, 3 Nov 2024 09:41:45 +0100 Subject: [PATCH] chore: Follow up chat bubble design --- lib/pages/chat/events/message.dart | 3 ++- lib/pages/settings_style/settings_style_view.dart | 15 +++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/pages/chat/events/message.dart b/lib/pages/chat/events/message.dart index eb314996d..5d5b01484 100644 --- a/lib/pages/chat/events/message.dart +++ b/lib/pages/chat/events/message.dart @@ -320,7 +320,8 @@ class Message extends StatelessWidget { ? LinearGradient( colors: [ theme.colorScheme.primary, - theme.colorScheme.secondary, + theme.colorScheme + .onPrimaryFixedVariant, ], begin: Alignment.centerLeft, end: Alignment.bottomRight, diff --git a/lib/pages/settings_style/settings_style_view.dart b/lib/pages/settings_style/settings_style_view.dart index 1ea22f0ec..ed8e5289e 100644 --- a/lib/pages/settings_style/settings_style_view.dart +++ b/lib/pages/settings_style/settings_style_view.dart @@ -216,7 +216,7 @@ class SettingsStyleView extends StatelessWidget { gradient: LinearGradient( colors: [ theme.colorScheme.primary, - theme.colorScheme.secondary, + theme.colorScheme.onPrimaryFixedVariant, ], begin: Alignment.centerLeft, end: Alignment.bottomRight, @@ -253,8 +253,10 @@ class SettingsStyleView extends StatelessWidget { bottom: 12, ), child: Material( - color: theme - .colorScheme.surfaceContainerHighest, + color: accountConfig.wallpaperUrl == null + ? theme + .colorScheme.surfaceContainerHighest + : theme.colorScheme.surfaceBright, borderRadius: BorderRadius.circular( AppConfig.borderRadius, ), @@ -281,7 +283,12 @@ class SettingsStyleView extends StatelessWidget { ), ), ListTile( - title: OutlinedButton( + title: TextButton( + style: TextButton.styleFrom( + backgroundColor: theme.colorScheme.secondaryContainer, + foregroundColor: + theme.colorScheme.onSecondaryContainer, + ), onPressed: controller.setWallpaper, child: Text(L10n.of(context).setWallpaper), ),