From a01b14a51e538c9f0d9aada29e259b1b8839b021 Mon Sep 17 00:00:00 2001 From: mykdavies Date: Thu, 13 Jul 2023 13:22:10 +0200 Subject: [PATCH] Colour-tweaks (#374) To work with Lasath's PR --------- Co-authored-by: Lasath Fernando Co-authored-by: @mykdavies --- lib/liftoff_action.dart | 4 ++-- lib/widgets/comment/comment_actions.dart | 2 +- lib/widgets/post/post_voting.dart | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/liftoff_action.dart b/lib/liftoff_action.dart index 5f7a81d0..ab80f5ef 100644 --- a/lib/liftoff_action.dart +++ b/lib/liftoff_action.dart @@ -78,7 +78,7 @@ abstract class _UpvoteAction implements LiftoffAction { }); @override - Color get activeColor => Theme.of(context).colorScheme.secondary; + Color get activeColor => Colors.blue.withAlpha(180); @override IconData get icon => Icons.arrow_upward; @@ -124,7 +124,7 @@ abstract class _SaveAction implements LiftoffAction { const _SaveAction(); @override - Color get activeColor => Colors.green; + Color get activeColor => Colors.green.withAlpha(180); @override IconData get icon => Icons.bookmark; diff --git a/lib/widgets/comment/comment_actions.dart b/lib/widgets/comment/comment_actions.dart index 2cda32fc..7bc0f0b8 100644 --- a/lib/widgets/comment/comment_actions.dart +++ b/lib/widgets/comment/comment_actions.dart @@ -90,7 +90,7 @@ class CommentActions extends HookWidget { TileToggle( icon: Icons.arrow_upward, activated: store.myVote == VoteType.up, - activeColor: Theme.of(context).colorScheme.secondary, + activeColor: Colors.blue, onPressed: loggedInAction(store.upVote), tooltip: 'upvote', ), diff --git a/lib/widgets/post/post_voting.dart b/lib/widgets/post/post_voting.dart index 07d07666..c503b6cd 100644 --- a/lib/widgets/post/post_voting.dart +++ b/lib/widgets/post/post_voting.dart @@ -25,7 +25,7 @@ class PostVoting extends HookWidget { TileToggle( icon: Icons.arrow_upward, activated: store.postView.myVote == VoteType.up, - activeColor: Theme.of(context).colorScheme.secondary, + activeColor: Colors.blue, onPressed: loggedInAction(store.upVote), tooltip: 'upvote', ),