diff --git a/app/src/main/java/code/name/monkey/retromusic/dialogs/SongDetailDialog.kt b/app/src/main/java/code/name/monkey/retromusic/dialogs/SongDetailDialog.kt index 14e6b31e..975a0104 100644 --- a/app/src/main/java/code/name/monkey/retromusic/dialogs/SongDetailDialog.kt +++ b/app/src/main/java/code/name/monkey/retromusic/dialogs/SongDetailDialog.kt @@ -26,7 +26,6 @@ import android.widget.TextView import androidx.annotation.NonNull import androidx.fragment.app.DialogFragment import code.name.monkey.retromusic.R -import code.name.monkey.retromusic.R.layout import code.name.monkey.retromusic.R.string import code.name.monkey.retromusic.model.Song import code.name.monkey.retromusic.util.MusicUtil @@ -59,7 +58,7 @@ class SongDetailDialog : DialogFragment() { val materialDialog = MaterialDialog(requireContext(), BottomSheet(LayoutMode.WRAP_CONTENT)) .show { - customView(layout.dialog_file_details, + customView(R.layout.dialog_file_details, scrollable = true) positiveButton(android.R.string.ok) title(string.action_details) diff --git a/app/src/main/java/code/name/monkey/retromusic/util/RetroColorUtil.java b/app/src/main/java/code/name/monkey/retromusic/util/RetroColorUtil.java index 7f7b69f9..fc456bfc 100644 --- a/app/src/main/java/code/name/monkey/retromusic/util/RetroColorUtil.java +++ b/app/src/main/java/code/name/monkey/retromusic/util/RetroColorUtil.java @@ -29,19 +29,13 @@ import java.util.Collections; import java.util.Comparator; import java.util.List; -import code.name.monkey.appthemehelper.ThemeStore; import code.name.monkey.appthemehelper.util.ATHUtil; import code.name.monkey.appthemehelper.util.ColorUtil; import code.name.monkey.retromusic.R; public class RetroColorUtil { public static int toolbarColor(@NonNull Context context) { - int color = ThemeStore.Companion.primaryColor(context); - if (ATHUtil.INSTANCE.isWindowBackgroundDark(context)) { - return ATHUtil.INSTANCE.resolveColor(context, R.attr.cardBackgroundColor); - } else { - return color; - } + return ATHUtil.INSTANCE.resolveColor(context, R.attr.colorSurface); } @Nullable diff --git a/app/src/main/res/layout-land/fragment_home.xml b/app/src/main/res/layout-land/fragment_home.xml index 27762bef..6609e3da 100644 --- a/app/src/main/res/layout-land/fragment_home.xml +++ b/app/src/main/res/layout-land/fragment_home.xml @@ -49,9 +49,7 @@ app:cardElevation="0dp" app:cardUseCompatPadding="true" app:layout_collapseMode="pin" - app:layout_scrollFlags="scroll|enterAlways" - app:strokeColor="?dividerColor" - app:strokeWidth="1dp"> + app:layout_scrollFlags="scroll|enterAlways"> + app:layout_scrollFlags="scroll|enterAlways"> + app:layout_collapseMode="pin" + app:layout_scrollFlags="scroll|enterAlways"> - - + android:text="@string/last_added" + android:textColor="?colorOnSecondary" /> @@ -121,12 +122,13 @@ app:iconBackgroundColor="@color/md_deep_purple_500" app:srcCompat="@drawable/ic_trending_up_white_24dp" /> - + android:text="@string/my_top_tracks" + android:textColor="?colorOnSecondary" /> @@ -148,12 +150,13 @@ app:iconBackgroundColor="@color/md_green_500" app:srcCompat="@drawable/ic_shuffle_white_24dp" /> - + android:text="@string/shuffle" + android:textColor="?colorOnSecondary" /> \ No newline at end of file diff --git a/app/src/main/res/layout/activity_playing_queue.xml b/app/src/main/res/layout/activity_playing_queue.xml index e1ae1c4a..f5f35c21 100755 --- a/app/src/main/res/layout/activity_playing_queue.xml +++ b/app/src/main/res/layout/activity_playing_queue.xml @@ -51,14 +51,16 @@ android:scrollbars="none" app:layout_behavior="@string/appbar_scrolling_view_behavior" /> - + android:textColor="?colorOnSecondary" + android:visibility="gone" + tools:visibility="visible" /> - + app:layout_scrollFlags="scroll|enterAlways"> - diff --git a/app/src/main/res/layout/fragment_card_player_playback_controls.xml b/app/src/main/res/layout/fragment_card_player_playback_controls.xml index 089bbe9f..9a120dcf 100644 --- a/app/src/main/res/layout/fragment_card_player_playback_controls.xml +++ b/app/src/main/res/layout/fragment_card_player_playback_controls.xml @@ -14,7 +14,7 @@ android:layout_height="@dimen/progress_container_height" android:background="@color/twenty_percent_black_overlay"> - - diff --git a/app/src/main/res/layout/fragment_flat_player_playback_controls.xml b/app/src/main/res/layout/fragment_flat_player_playback_controls.xml index ba829819..b8de6b3a 100644 --- a/app/src/main/res/layout/fragment_flat_player_playback_controls.xml +++ b/app/src/main/res/layout/fragment_flat_player_playback_controls.xml @@ -18,7 +18,7 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> - - diff --git a/app/src/main/res/layout/fragment_folder.xml b/app/src/main/res/layout/fragment_folder.xml index f393a56c..b907abab 100644 --- a/app/src/main/res/layout/fragment_folder.xml +++ b/app/src/main/res/layout/fragment_folder.xml @@ -42,9 +42,7 @@ app:cardCornerRadius="8dp" app:cardElevation="0dp" app:cardUseCompatPadding="true" - app:layout_collapseMode="pin" - app:strokeColor="?dividerColor" - app:strokeWidth="1dp"> + app:layout_collapseMode="pin"> - + android:textAppearance="@style/TextViewNormal" + android:textColor="?colorOnSecondary" /> diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml index e8c23ecc..c7173377 100755 --- a/app/src/main/res/layout/fragment_home.xml +++ b/app/src/main/res/layout/fragment_home.xml @@ -48,9 +48,7 @@ app:cardElevation="0dp" app:cardUseCompatPadding="true" app:layout_collapseMode="pin" - app:layout_scrollFlags="scroll|enterAlways" - app:strokeColor="?dividerColor" - app:strokeWidth="1dp"> + app:layout_scrollFlags="scroll|enterAlways"> + app:layout_collapseMode="pin"> - + android:visibility="gone" + tools:visibility="visible"> - + app:srcCompat="@drawable/ic_music_note_off_white_24dp" + app:tint="?colorOnSurface" /> - diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 0b14d9a0..6a10d75e 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -40,7 +40,6 @@