Skip to content

Commit

Permalink
Audio recorder and player icons and style
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasn committed Jun 22, 2023
1 parent fbbc2ff commit b357065
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 16 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- Audio recorder and player icons and style

## [0.8.382] - 2023-06-21
### Changed:
- Upgraded dependencies

Expand Down
12 changes: 6 additions & 6 deletions lib/widgets/audio/audio_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class AudioPlayerWidget extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: <Widget>[
IconButton(
icon: const Icon(Icons.play_arrow),
icon: const Icon(Icons.play_arrow_rounded),
iconSize: 32,
tooltip: 'Play',
color: (state.status == AudioPlayerStatus.playing && isActive)
Expand All @@ -74,28 +74,28 @@ class AudioPlayerWidget extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: <Widget>[
IconButton(
icon: const Icon(Icons.fast_rewind),
icon: const Icon(Icons.fast_rewind_rounded),
iconSize: 32,
tooltip: 'Rewind 15s',
color: Theme.of(context).colorScheme.outline,
onPressed: cubit.rew,
),
IconButton(
icon: const Icon(Icons.pause),
icon: const Icon(Icons.pause_rounded),
iconSize: 32,
tooltip: 'Pause',
color: Theme.of(context).colorScheme.outline,
onPressed: cubit.pause,
),
IconButton(
icon: const Icon(Icons.fast_forward),
icon: const Icon(Icons.fast_forward_rounded),
iconSize: 32,
tooltip: 'Fast forward 15s',
color: Theme.of(context).colorScheme.outline,
onPressed: cubit.fwd,
),
IconButton(
icon: const Icon(Icons.stop),
icon: const Icon(Icons.stop_rounded),
iconSize: 32,
tooltip: 'Stop',
color: Theme.of(context).colorScheme.outline,
Expand All @@ -122,7 +122,7 @@ class AudioPlayerWidget extends StatelessWidget {
),
if (Platform.isMacOS || Platform.isIOS)
IconButton(
icon: const Icon(Icons.transcribe_outlined),
icon: const Icon(Icons.transcribe_rounded),
iconSize: 20,
tooltip: 'Transcribe',
color: Theme.of(context).colorScheme.outline,
Expand Down
10 changes: 8 additions & 2 deletions lib/widgets/audio/audio_recorder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ class AudioRecorderWidget extends StatelessWidget {
children: <Widget>[
IconButton(
key: const Key('pauseIcon'),
icon: const Icon(Icons.pause),
icon: Icon(
Icons.pause_rounded,
color: Theme.of(context).colorScheme.outline,
),
padding: const EdgeInsets.only(
left: 8,
top: 8,
Expand All @@ -67,7 +70,10 @@ class AudioRecorderWidget extends StatelessWidget {
),
IconButton(
key: const Key('stopIcon'),
icon: const Icon(Icons.stop_outlined),
icon: Icon(
Icons.stop_rounded,
color: Theme.of(context).colorScheme.outline,
),
padding: const EdgeInsets.only(
left: 29,
top: 8,
Expand Down
8 changes: 4 additions & 4 deletions lib/widgets/audio/vu_meter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ class VuMeterButtonWidget extends StatelessWidget {
alignment: Alignment.bottomCenter,
children: [
Icon(
Icons.mic,
Icons.mic_rounded,
size: iconSize,
color: Theme.of(context).colorScheme.outline.withOpacity(0.5),
color: Theme.of(context).colorScheme.outline,
semanticLabel: 'Microphone',
),
if (!hot)
ClipRect(
key: Key(state.decibels.toString()),
clipper: CustomRect(audioLevel),
child: Icon(
Icons.mic,
Icons.mic_rounded,
size: iconSize,
color: Theme.of(context).colorScheme.error.withOpacity(0.6),
semanticLabel: 'Microphone',
Expand All @@ -63,7 +63,7 @@ class VuMeterButtonWidget extends StatelessWidget {
key: Key(state.decibels.toString()),
clipper: CustomRect(audioLevel),
child: Icon(
Icons.mic,
Icons.mic_rounded,
size: iconSize,
color: Theme.of(context).colorScheme.error,
semanticLabel: 'Microphone',
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/journal/entry_details/delete_icon_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class DeleteIconWidget extends StatelessWidget {
return SizedBox(
width: 40,
child: IconButton(
icon: const Icon(Icons.delete_outline),
icon: const Icon(Icons.delete_outline_rounded),
splashColor: Colors.transparent,
tooltip: localizations.journalDeleteHint,
padding: EdgeInsets.zero,
Expand Down
4 changes: 2 additions & 2 deletions lib/widgets/journal/entry_details/entry_detail_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class EntryDetailHeader extends StatelessWidget {
tooltip: localizations.journalFavoriteTooltip,
onPressed: cubit.toggleStarred,
value: item.meta.starred ?? false,
icon: Icons.star_outline,
activeIcon: Icons.star,
icon: Icons.star_outline_rounded,
activeIcon: Icons.star_rounded,
activeColor: starredGold,
),
SwitchIconWidget(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: lotti
description: Achieve your goals and keep your data private with Lotti.
publish_to: 'none'
version: 0.9.383+2267
version: 0.9.384+2268

msix_config:
display_name: LottiApp
Expand Down

0 comments on commit b357065

Please sign in to comment.