diff --git a/app/src/main/java/code/name/monkey/retromusic/Constants.kt b/app/src/main/java/code/name/monkey/retromusic/Constants.kt
index 0757c507c..057c47fb1 100644
--- a/app/src/main/java/code/name/monkey/retromusic/Constants.kt
+++ b/app/src/main/java/code/name/monkey/retromusic/Constants.kt
@@ -160,4 +160,5 @@ const val PLAYBACK_PITCH = "playback_pitch"
const val CUSTOM_FONT = "custom_font"
const val APPBAR_MODE = "appbar_mode"
const val WALLPAPER_ACCENT = "wallpaper_accent"
-const val SCREEN_ON_LYRICS = "screen_on_lyrics"
\ No newline at end of file
+const val SCREEN_ON_LYRICS = "screen_on_lyrics"
+const val CIRCLE_PLAY_BUTTON = "circle_play_button"
\ No newline at end of file
diff --git a/app/src/main/java/code/name/monkey/retromusic/activities/MainActivity.kt b/app/src/main/java/code/name/monkey/retromusic/activities/MainActivity.kt
index e8880114f..934a38b01 100644
--- a/app/src/main/java/code/name/monkey/retromusic/activities/MainActivity.kt
+++ b/app/src/main/java/code/name/monkey/retromusic/activities/MainActivity.kt
@@ -147,7 +147,7 @@ class MainActivity : AbsCastActivity(), OnSharedPreferenceChangeListener {
}
override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) {
- if (key == GENERAL_THEME || key == MATERIAL_YOU || key == WALLPAPER_ACCENT || key == BLACK_THEME || key == ADAPTIVE_COLOR_APP || key == USER_NAME || key == TOGGLE_FULL_SCREEN || key == TOGGLE_VOLUME || key == ROUND_CORNERS || key == CAROUSEL_EFFECT || key == NOW_PLAYING_SCREEN_ID || key == TOGGLE_GENRE || key == BANNER_IMAGE_PATH || key == PROFILE_IMAGE_PATH || key == CIRCULAR_ALBUM_ART || key == KEEP_SCREEN_ON || key == TOGGLE_SEPARATE_LINE || key == TOGGLE_HOME_BANNER || key == TOGGLE_ADD_CONTROLS || key == ALBUM_COVER_STYLE || key == HOME_ARTIST_GRID_STYLE || key == ALBUM_COVER_TRANSFORM || key == DESATURATED_COLOR || key == EXTRA_SONG_INFO || key == TAB_TEXT_MODE || key == LANGUAGE_NAME || key == LIBRARY_CATEGORIES || key == CUSTOM_FONT|| key == APPBAR_MODE) {
+ if (key == GENERAL_THEME || key == MATERIAL_YOU || key == WALLPAPER_ACCENT || key == BLACK_THEME || key == ADAPTIVE_COLOR_APP || key == USER_NAME || key == TOGGLE_FULL_SCREEN || key == TOGGLE_VOLUME || key == ROUND_CORNERS || key == CAROUSEL_EFFECT || key == NOW_PLAYING_SCREEN_ID || key == TOGGLE_GENRE || key == BANNER_IMAGE_PATH || key == PROFILE_IMAGE_PATH || key == CIRCULAR_ALBUM_ART || key == KEEP_SCREEN_ON || key == TOGGLE_SEPARATE_LINE || key == TOGGLE_HOME_BANNER || key == TOGGLE_ADD_CONTROLS || key == ALBUM_COVER_STYLE || key == HOME_ARTIST_GRID_STYLE || key == ALBUM_COVER_TRANSFORM || key == DESATURATED_COLOR || key == EXTRA_SONG_INFO || key == TAB_TEXT_MODE || key == LANGUAGE_NAME || key == LIBRARY_CATEGORIES || key == CUSTOM_FONT || key == APPBAR_MODE || key == CIRCLE_PLAY_BUTTON) {
postRecreate()
}
}
diff --git a/app/src/main/java/code/name/monkey/retromusic/activities/base/AbsThemeActivity.kt b/app/src/main/java/code/name/monkey/retromusic/activities/base/AbsThemeActivity.kt
index a8e021699..a12487561 100644
--- a/app/src/main/java/code/name/monkey/retromusic/activities/base/AbsThemeActivity.kt
+++ b/app/src/main/java/code/name/monkey/retromusic/activities/base/AbsThemeActivity.kt
@@ -16,7 +16,6 @@ package code.name.monkey.retromusic.activities.base
import android.content.Context
import android.content.res.Resources
-import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.view.KeyEvent
@@ -57,6 +56,9 @@ abstract class AbsThemeActivity : ATHToolbarActivity(), Runnable {
if (PreferenceUtil.isCustomFont) {
setTheme(R.style.FontThemeOverlay)
}
+ if (PreferenceUtil.circlePlayButton) {
+ setTheme(R.style.CircleFABOverlay)
+ }
}
override fun onWindowFocusChanged(hasFocus: Boolean) {
diff --git a/app/src/main/java/code/name/monkey/retromusic/util/PreferenceUtil.kt b/app/src/main/java/code/name/monkey/retromusic/util/PreferenceUtil.kt
index d05efe9a8..d47aa1717 100644
--- a/app/src/main/java/code/name/monkey/retromusic/util/PreferenceUtil.kt
+++ b/app/src/main/java/code/name/monkey/retromusic/util/PreferenceUtil.kt
@@ -705,6 +705,9 @@ object PreferenceUtil {
val lyricsScreenOn
get() = sharedPreferences.getBoolean(SCREEN_ON_LYRICS, false)
+
+ val circlePlayButton
+ get() = sharedPreferences.getBoolean(CIRCLE_PLAY_BUTTON, false)
}
enum class LyricsType {
REPLACE_LYRICS, OVER_LYRICS
diff --git a/app/src/main/res/values-night-v27/styles.xml b/app/src/main/res/values-night-v27/styles.xml
index f5a25647c..1945d2ca8 100644
--- a/app/src/main/res/values-night-v27/styles.xml
+++ b/app/src/main/res/values-night-v27/styles.xml
@@ -24,9 +24,6 @@
- @color/darkColorSurface
- @style/Widget.MaterialComponents.CardView
- @color/elevationOverlayDark
- -
- @style/Widget.MaterialComponents.FloatingActionButton
-
- @drawable/popup_background
\ No newline at end of file
diff --git a/app/src/main/res/values-night/styles.xml b/app/src/main/res/values-night/styles.xml
index 626123296..b09adfb63 100644
--- a/app/src/main/res/values-night/styles.xml
+++ b/app/src/main/res/values-night/styles.xml
@@ -23,11 +23,7 @@
- @style/Widget.ActionButton.Overflow
- @color/darkColorPrimary
- @color/darkColorSurface
- - @android:color/transparent
- @style/Widget.Material3.CardView.Elevated
- -
- @style/Widget.MaterialComponents.FloatingActionButton
-
- @drawable/popup_background
diff --git a/app/src/main/res/values-v27/styles_parents.xml b/app/src/main/res/values-v27/styles_parents.xml
index e354682b4..398dc66ec 100644
--- a/app/src/main/res/values-v27/styles_parents.xml
+++ b/app/src/main/res/values-v27/styles_parents.xml
@@ -23,9 +23,6 @@
- @style/MaterialButtonTheme
- @style/Widget.Material3.CardView.Elevated
- @color/elevationOverlay
- -
- @style/Widget.MaterialComponents.FloatingActionButton
-
- @drawable/popup_background
@@ -41,9 +38,6 @@
- @color/window_color_dark
- @style/Widget.Material3.CardView.Elevated
- @color/elevationOverlay
- -
- @style/Widget.MaterialComponents.FloatingActionButton
-
- @drawable/popup_background
@@ -57,9 +51,6 @@
- @style/MaterialButtonTheme
- @style/Widget.Material3.CardView.Elevated
- @color/elevationOverlayLight
- -
- @style/Widget.MaterialComponents.FloatingActionButton
-
- @drawable/popup_background
\ No newline at end of file
diff --git a/app/src/main/res/values-v31/styles.xml b/app/src/main/res/values-v31/styles.xml
index d3844ba15..af723c1e8 100644
--- a/app/src/main/res/values-v31/styles.xml
+++ b/app/src/main/res/values-v31/styles.xml
@@ -7,9 +7,6 @@
- @drawable/rect_selector
- @style/Widget.Material3.CardView.Elevated
- @style/MaterialButtonTheme
- -
- @style/Widget.MaterialComponents.FloatingActionButton
-
- @drawable/popup_background
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index d92e31cc8..45494b2eb 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,4 +1,3 @@
-
About %s
Team, social links
@@ -73,10 +72,10 @@
Top Tracks
Full Image
Card
+ @string/circle
Classic
MD3
Small
- @string/circle
Minimal Text
Artist
Artists
@@ -244,6 +243,7 @@
Name
Most played
Never
+ New Music Mix
New playlist
%s is the new start directory.
Next Song
@@ -349,18 +349,21 @@
Start playing immediately after headphones are connected
Shuffle mode will turn off when playing a new list of songs
If enough space is available, show volume controls in the now playing screen
+ Extract accent color from wallpaper
Only show music from /Music Folder
Show album cover
Navigate by Album Artist
Album cover theme
Album cover skip
Colored app shortcuts
+ App bar mode
Reduce volume on focus loss
Fade Audio
Auto-download artist images
Blacklist
Bluetooth playback
Blur album cover
+ Circular play button
Classic notification design
Adaptive color
Colored notification
@@ -378,6 +381,7 @@
Ignore Media Store covers
Last added playlist interval
Fullscreen controls
+ Keep screen on when showing lyrics
Lyrics type
Now playing theme
Open source licences
@@ -390,6 +394,7 @@
Auto-play
Shuffle mode
Volume controls
+ Wallpaper accent color
Whitelist Music
Pro
Black theme, Now playing themes, Carousel effect and more..
@@ -532,9 +537,4 @@
You have to select at least one category.
You will be forwarded to the issue tracker website.
Your account data is only used for authentication.
- New Music Mix
- App bar mode
- Wallpaper accent color
- Extract accent color from wallpaper
- Keep screen on when showing lyrics
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index e0afc2874..5a11aca98 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -251,5 +251,11 @@
- @font/manrope
+
+
diff --git a/app/src/main/res/values/styles_parents.xml b/app/src/main/res/values/styles_parents.xml
index 1675dbc38..18c71ebb8 100644
--- a/app/src/main/res/values/styles_parents.xml
+++ b/app/src/main/res/values/styles_parents.xml
@@ -11,9 +11,6 @@
- @style/MaterialPopupMenuStyle
- @style/Widget.Material3.CardView.Elevated
T
- @color/elevationOverlay
- -
- @style/Widget.MaterialComponents.FloatingActionButton
-
- @drawable/popup_background
@@ -29,9 +26,6 @@
- @style/MaterialPopupMenuStyle
- @style/Widget.Material3.CardView.Elevated
- @color/elevationOverlay
- -
- @style/Widget.MaterialComponents.FloatingActionButton
-
- @drawable/popup_background
@@ -46,9 +40,6 @@
- @style/MaterialPopupMenuStyle
- @style/Widget.Material3.CardView.Elevated
- @color/elevationOverlayDark
- -
- @style/Widget.MaterialComponents.FloatingActionButton
-
- @drawable/popup_background
@@ -63,9 +54,6 @@
- @style/MaterialPopupMenuStyle
- @style/Widget.Material3.CardView.Elevated
- @color/elevationOverlayLight
- -
- @style/Widget.MaterialComponents.FloatingActionButton
-
- @drawable/popup_background
diff --git a/app/src/main/res/xml/pref_now_playing_screen.xml b/app/src/main/res/xml/pref_now_playing_screen.xml
index a424abd77..60a3348b8 100644
--- a/app/src/main/res/xml/pref_now_playing_screen.xml
+++ b/app/src/main/res/xml/pref_now_playing_screen.xml
@@ -33,8 +33,14 @@
android:defaultValue="false"
android:key="screen_on_lyrics"
android:layout="@layout/list_item_view_switch"
- android:title="@string/pref_title_lyrics_screen_on"
- android:summary="@string/pref_keep_screen_on_summary"/>
+ android:summary="@string/pref_keep_screen_on_summary"
+ android:title="@string/pref_title_lyrics_screen_on" />
+
+