Skip to content

Commit

Permalink
Make ToS and privacy links in Dialog visible in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyrat committed Jul 11, 2023
1 parent 471d4a2 commit 8197601
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/widgets/free_user_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ class FreeUserTermsDialog extends StatelessWidget with DialogMixin<bool> {
onTap: followLink,
child: Text(
tosLink,
style: theme.textTheme.bodyMedium!.copyWith(color: theme.primaryColor),
style: theme.textTheme.bodyMedium!
.copyWith(color: theme.brightness == Brightness.light ? theme.primaryColor : Colors.white),
),
);
},
Expand All @@ -58,7 +59,8 @@ class FreeUserTermsDialog extends StatelessWidget with DialogMixin<bool> {
onTap: followLink,
child: Text(
privacyLink,
style: theme.textTheme.bodyMedium!.copyWith(color: theme.primaryColor),
style: theme.textTheme.bodyMedium!
.copyWith(color: theme.brightness == Brightness.light ? theme.primaryColor : Colors.white),
),
);
},
Expand Down
6 changes: 4 additions & 2 deletions lib/widgets/subscriber_terms_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ class SubscriberTermsDialog extends StatelessWidget with DialogMixin<bool> {
onTap: followLink,
child: Text(
tosLink,
style: theme.textTheme.bodyMedium!.copyWith(color: theme.primaryColor),
style: theme.textTheme.bodyMedium!
.copyWith(color: theme.brightness == Brightness.light ? theme.primaryColor : Colors.white),
),
);
},
Expand All @@ -78,7 +79,8 @@ class SubscriberTermsDialog extends StatelessWidget with DialogMixin<bool> {
onTap: followLink,
child: Text(
privacyLink,
style: theme.textTheme.bodyMedium!.copyWith(color: theme.primaryColor),
style: theme.textTheme.bodyMedium!
.copyWith(color: theme.brightness == Brightness.light ? theme.primaryColor : Colors.white),
),
);
},
Expand Down

0 comments on commit 8197601

Please sign in to comment.