Skip to content

Commit

Permalink
Colour-tweaks (#374)
Browse files Browse the repository at this point in the history
To work with Lasath's PR

---------

Co-authored-by: Lasath Fernando <[email protected]>
Co-authored-by: @mykdavies <[email protected]>
  • Loading branch information
3 people authored Jul 13, 2023
1 parent f66568e commit a01b14a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/liftoff_action.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/comment/comment_actions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
),
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/post/post_voting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
),
Expand Down

0 comments on commit a01b14a

Please sign in to comment.