Skip to content

Commit

Permalink
fix: increase audio page header text readability (#817)
Browse files Browse the repository at this point in the history
* fix: increase audio page header text readability

* chore: bump version
  • Loading branch information
Feichtmeier authored Jul 31, 2024
1 parent ff413bf commit 1d84df9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 1 addition & 2 deletions lib/common/view/audio_page_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ class _AudioPageHeaderSubTitle extends StatelessWidget {
Widget build(BuildContext context) {
final theme = context.t;

final style =
theme.textTheme.labelMedium?.copyWith(fontWeight: FontWeight.w300);
final style = theme.pageHeaderSubtitleStyle;
return Row(
mainAxisSize: MainAxisSize.min,
children: [
Expand Down
4 changes: 3 additions & 1 deletion lib/common/view/audio_page_header_html_description.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import 'package:phoenix_theme/phoenix_theme.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:yaru/yaru.dart';

import '../../extensions/theme_data_x.dart';

class AudioPageHeaderHtmlDescription extends StatelessWidget {
const AudioPageHeaderHtmlDescription({
super.key,
Expand All @@ -18,7 +20,7 @@ class AudioPageHeaderHtmlDescription extends StatelessWidget {

@override
Widget build(BuildContext context) {
final descriptionStyle = context.t.textTheme.labelSmall;
final descriptionStyle = context.t.pageHeaderDescription;
return Padding(
padding: const EdgeInsets.symmetric(horizontal: kYaruPagePadding),
child: SizedBox(
Expand Down
5 changes: 4 additions & 1 deletion lib/extensions/theme_data_x.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ extension ThemeDataX on ThemeData {
);

TextStyle? get pageHeaderDescription =>
textTheme.labelSmall?.copyWith(fontWeight: FontWeight.w300);
textTheme.labelMedium?.copyWith(fontWeight: FontWeight.w500);

TextStyle? get pageHeaderSubtitleStyle =>
textTheme.labelLarge?.copyWith(fontWeight: FontWeight.w500);

Color get containerBg => colorScheme.background.scale(
lightness:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: musicpod
description: Ubuntu music, radio and podcast player.
version: 1.5.0
version: 1.5.1

publish_to: "none"

Expand Down

0 comments on commit 1d84df9

Please sign in to comment.