Skip to content

Commit

Permalink
light theme contrast fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed Nov 19, 2023
1 parent 81f2e53 commit fdeb781
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ class _PlaybackHistoryListTileState extends State<PlaybackHistoryListTile> {
padding: const EdgeInsets.only(top: 6.0),
child: Text(
processArtist(widget.item.item.item.artist, context),
style: const TextStyle(
color: Colors.white70,
style: TextStyle(
color: Theme.of(context).textTheme.bodyMedium!.color!,
fontSize: 13,
fontFamily: 'Lexend Deca',
fontWeight: FontWeight.w300,
Expand Down
20 changes: 10 additions & 10 deletions lib/components/PlayerScreen/queue_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,14 @@ Future<dynamic> showQueueBottomSheet(BuildContext context) {
width: 40,
height: 3.5,
decoration: BoxDecoration(
color: Colors.white,
color: Theme.of(context).textTheme.bodySmall!.color!,
borderRadius: BorderRadius.circular(3.5),
),
),
const SizedBox(height: 10),
Text(AppLocalizations.of(context)!.queue,
style: const TextStyle(
color: Colors.white,
style: TextStyle(
color: Theme.of(context).textTheme.bodyLarge!.color!,
fontFamily: 'Lexend Deca',
fontSize: 18,
fontWeight: FontWeight.w300)),
Expand Down Expand Up @@ -694,13 +694,13 @@ class _CurrentTrackState extends State<CurrentTrack> {
flexibleSpace: Container(
// width: 58,
height: albumImageSize,
padding: EdgeInsets.symmetric(horizontal: horizontalPadding),
padding: const EdgeInsets.symmetric(horizontal: horizontalPadding),
child: Container(
clipBehavior: Clip.antiAlias,
decoration: ShapeDecoration(
color: Color.alphaBlend(
IconTheme.of(context).color!.withOpacity(0.35),
Colors.black),
Theme.of(context).brightness == Brightness.dark ? IconTheme.of(context).color!.withOpacity(0.35) : IconTheme.of(context).color!.withOpacity(0.5),
Theme.of(context).brightness == Brightness.dark ? Colors.black : Colors.white),
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(12.0)),
),
Expand Down Expand Up @@ -1414,16 +1414,16 @@ class PreviousTracksSectionHeader extends SliverPersistentHeaderDelegate {
stream: isRecentTracksExpanded,
builder: (context, snapshot) {
if (snapshot.hasData && snapshot.data!) {
return const Icon(
return Icon(
TablerIcons.chevron_up,
size: 28.0,
color: Colors.white,
color: Theme.of(context).iconTheme.color!,
);
} else {
return const Icon(
return Icon(
TablerIcons.chevron_down,
size: 28.0,
color: Colors.white,
color: Theme.of(context).iconTheme.color!,
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/components/PlayerScreen/queue_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ class _QueueListItemState extends State<QueueListItem>
padding: const EdgeInsets.only(top: 6.0),
child: Text(
processArtist(widget.item.item.artist, context),
style: const TextStyle(
color: Colors.white70,
style: TextStyle(
color: Theme.of(context).textTheme.bodyMedium!.color!,
fontSize: 13,
fontFamily: 'Lexend Deca',
fontWeight: FontWeight.w300,
Expand Down
4 changes: 2 additions & 2 deletions lib/components/now_playing_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ class NowPlayingBar extends ConsumerWidget {
clipBehavior: Clip.antiAlias,
decoration: ShapeDecoration(
color: Color.alphaBlend(
IconTheme.of(context).color!.withOpacity(0.35),
Colors.black),
Theme.of(context).brightness == Brightness.dark ? IconTheme.of(context).color!.withOpacity(0.35) : IconTheme.of(context).color!.withOpacity(0.5),
Theme.of(context).brightness == Brightness.dark ? Colors.black : Colors.white),
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(12.0)),
),
Expand Down

0 comments on commit fdeb781

Please sign in to comment.