settings: enable theme customization on >31
Enable theme customization on API 31. Some people prefer some themes over others, so enable it. Not like it increases complexity. Resolves #243.
This commit is contained in:
parent
c3de8fe4fd
commit
adf85a8fab
5 changed files with 14 additions and 19 deletions
|
@ -17,6 +17,7 @@
|
||||||
- Added support for compilation sub-release-types like (DJ) Mix
|
- Added support for compilation sub-release-types like (DJ) Mix
|
||||||
- Album dates now start from the earliest date instead of latest date
|
- Album dates now start from the earliest date instead of latest date
|
||||||
- Reshuffling the queue will no longer drop any songs you have added/removed
|
- Reshuffling the queue will no longer drop any songs you have added/removed
|
||||||
|
- Allowed light/dark theme to be customized on Android 12+
|
||||||
|
|
||||||
#### What's Fixed
|
#### What's Fixed
|
||||||
- Fixed issue where the scroll popup would not display correctly in landscape mode [#230]
|
- Fixed issue where the scroll popup would not display correctly in landscape mode [#230]
|
||||||
|
|
|
@ -205,20 +205,21 @@ sealed class MusicParent : Music() {
|
||||||
* @author OxygenCobalt
|
* @author OxygenCobalt
|
||||||
*/
|
*/
|
||||||
class Song constructor(raw: Raw, settings: Settings) : Music() {
|
class Song constructor(raw: Raw, settings: Settings) : Music() {
|
||||||
override val uid = raw.musicBrainzId?.toUuidOrNull()?.let { UID.musicBrainz(MusicMode.SONGS, it) } ?: UID.auxio(MusicMode.SONGS) {
|
override val uid = raw.musicBrainzId?.toUuidOrNull()?.let { UID.musicBrainz(MusicMode.SONGS, it) }
|
||||||
// Song UIDs are based on the raw data without parsing so that they remain
|
?: UID.auxio(MusicMode.SONGS) {
|
||||||
// consistent across music setting changes. Parents are not held up to the
|
// Song UIDs are based on the raw data without parsing so that they remain
|
||||||
// same standard since grouping is already inherently linked to settings.
|
// consistent across music setting changes. Parents are not held up to the
|
||||||
update(raw.name)
|
// same standard since grouping is already inherently linked to settings.
|
||||||
update(raw.albumName)
|
update(raw.name)
|
||||||
update(raw.date)
|
update(raw.albumName)
|
||||||
|
update(raw.date)
|
||||||
|
|
||||||
update(raw.track)
|
update(raw.track)
|
||||||
update(raw.disc)
|
update(raw.disc)
|
||||||
|
|
||||||
update(raw.artistNames)
|
update(raw.artistNames)
|
||||||
update(raw.albumArtistNames)
|
update(raw.albumArtistNames)
|
||||||
}
|
}
|
||||||
|
|
||||||
override val rawName = requireNotNull(raw.name) { "Invalid raw: No title" }
|
override val rawName = requireNotNull(raw.name) { "Invalid raw: No title" }
|
||||||
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
<bool name="enable_theme_settings">false</bool>
|
|
||||||
</resources>
|
|
|
@ -1,7 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<bool name="enable_theme_settings">true</bool>
|
|
||||||
|
|
||||||
<!-- Note: The old way of naming keys was to prefix them with KEY_. Now it's to prefix them with auxio_. -->
|
<!-- Note: The old way of naming keys was to prefix them with KEY_. Now it's to prefix them with auxio_. -->
|
||||||
<string name="set_key_theme" translatable="false">KEY_THEME2</string>
|
<string name="set_key_theme" translatable="false">KEY_THEME2</string>
|
||||||
<string name="set_key_black_theme" translatable="false">KEY_BLACK_THEME</string>
|
<string name="set_key_black_theme" translatable="false">KEY_BLACK_THEME</string>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
app:entryIcons="@array/icons_theme"
|
app:entryIcons="@array/icons_theme"
|
||||||
app:entryValues="@array/values_theme"
|
app:entryValues="@array/values_theme"
|
||||||
app:icon="@drawable/ic_light_24"
|
app:icon="@drawable/ic_light_24"
|
||||||
app:isPreferenceVisible="@bool/enable_theme_settings"
|
|
||||||
app:key="@string/set_key_theme"
|
app:key="@string/set_key_theme"
|
||||||
app:title="@string/set_theme" />
|
app:title="@string/set_theme" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue