From 572024da52f372629316e2552993495a848b9248 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Sat, 21 Dec 2019 15:07:18 -0500 Subject: [PATCH] Theme tweaks (3) --- .../fragments/NowPlayingFragment.java | 4 + app/src/main/res/layout/download.xml | 10 +-- app/src/main/res/layout/download_playlist.xml | 4 +- app/src/main/res/layout/download_slider.xml | 12 +-- app/src/main/res/xml/settings_appearance.xml | 78 +++++++++---------- 5 files changed, 45 insertions(+), 63 deletions(-) diff --git a/app/src/main/java/net/nullsum/audinaut/fragments/NowPlayingFragment.java b/app/src/main/java/net/nullsum/audinaut/fragments/NowPlayingFragment.java index 3f832fd..42a3edf 100644 --- a/app/src/main/java/net/nullsum/audinaut/fragments/NowPlayingFragment.java +++ b/app/src/main/java/net/nullsum/audinaut/fragments/NowPlayingFragment.java @@ -88,6 +88,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis private TextView songTitleTextView; private ImageView albumArtImageView; private ImageView albumArtBackgroundView; + private View nowPlayingView; private RecyclerView playlistView; private TextView positionTextView; private TextView durationTextView; @@ -155,6 +156,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis songTitleTextView = rootView.findViewById(R.id.download_song_title); albumArtImageView = rootView.findViewById(R.id.download_album_art_image); albumArtBackgroundView = rootView.findViewById(R.id.download_album_art_background); + nowPlayingView = rootView.findViewById(R.id.now_playing_top); positionTextView = rootView.findViewById(R.id.download_position); durationTextView = rootView.findViewById(R.id.download_duration); statusTextView = rootView.findViewById(R.id.download_status); @@ -937,9 +939,11 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis getImageLoader().loadImage(albumArtImageView, song, true, crossfade); if (Util.getPreferences(context).getBoolean(Constants.PREFERENCES_KEY_BLURRED_BACKGROUND, true)) { albumArtBackgroundView.setVisibility(ImageView.VISIBLE); + nowPlayingView.setBackgroundDrawable(context.getResources().getDrawable(R.drawable.gradient)); getImageLoader().loadBlurImage(albumArtBackgroundView, song, true, crossfade); } else { albumArtBackgroundView.setVisibility(ImageView.GONE); + nowPlayingView.setBackgroundResource(0); } } diff --git a/app/src/main/res/layout/download.xml b/app/src/main/res/layout/download.xml index 0e8beaf..1cfac4d 100644 --- a/app/src/main/res/layout/download.xml +++ b/app/src/main/res/layout/download.xml @@ -10,7 +10,7 @@ android:scaleType="centerCrop" /> @@ -70,10 +70,6 @@ android:layout_marginTop="6dp" android:ellipsize="end" android:maxLines="1" - android:shadowColor="@color/nowPlayingShadow" - android:shadowDx="1.0" - android:shadowDy="1.0" - android:shadowRadius="10.0" android:textColor="?android:textColorSecondary" /> + android:layout_height="1px" /> diff --git a/app/src/main/res/xml/settings_appearance.xml b/app/src/main/res/xml/settings_appearance.xml index 011cb75..548cf25 100644 --- a/app/src/main/res/xml/settings_appearance.xml +++ b/app/src/main/res/xml/settings_appearance.xml @@ -2,52 +2,46 @@ - + - + - - + - + - + - + - - - - - - +