Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update link text color in dark mode #1716

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/pages/chat/events/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ class Message extends StatelessWidget {
// ? theme.colorScheme.primaryFixed
// : theme.colorScheme.onTertiaryContainer
// : theme.colorScheme.primary;
final linkColor = theme.colorScheme.primary;
final linkColor = theme.brightness == Brightness.light
? theme.colorScheme.primary
: theme.colorScheme.onPrimary;
// Pangea#

final rowMainAxisAlignment =
Expand Down
5 changes: 4 additions & 1 deletion lib/pangea/activity_planner/activity_plan_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ class ActivityPlanMessage extends StatelessWidget {
controller: controller,
immersionMode: false,
timeline: timeline,
linkColor: theme.colorScheme.primary,
linkColor:
theme.brightness == Brightness.light
? theme.colorScheme.primary
: theme.colorScheme.onPrimary,
),
if (event.hasAggregatedEvents(
timeline,
Expand Down
5 changes: 4 additions & 1 deletion lib/pangea/toolbar/widgets/message_audio_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ class MessageAudioCardState extends State<MessageAudioCard> {
chatController:
widget.overlayController.widget.chatController,
overlayController: widget.overlayController,
linkColor: Theme.of(context).colorScheme.primary,
linkColor:
Theme.of(context).brightness == Brightness.light
? Theme.of(context).colorScheme.primary
: Theme.of(context).colorScheme.onPrimary,
)
: const CardErrorWidget(
error: "Null audio file in message_audio_card",
Expand Down
4 changes: 3 additions & 1 deletion lib/pangea/toolbar/widgets/message_token_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ class MessageTextWidget extends StatelessWidget {
),
linkStyle: TextStyle(
decoration: TextDecoration.underline,
color: Theme.of(context).colorScheme.primary,
color: Theme.of(context).brightness == Brightness.light
? Theme.of(context).colorScheme.primary
: Theme.of(context).colorScheme.onPrimary,
),
onOpen: (url) =>
UrlLauncher(context, url.url).launchUrl(),
Expand Down
4 changes: 3 additions & 1 deletion lib/pangea/toolbar/widgets/overlay_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ class OverlayMessage extends StatelessWidget {
prevEvent: prevEvent,
borderRadius: borderRadius,
timeline: timeline,
linkColor: theme.colorScheme.primary,
linkColor: theme.brightness == Brightness.light
? theme.colorScheme.primary
: theme.colorScheme.onPrimary,
),
if (event.hasAggregatedEvents(
timeline,
Expand Down
Loading