mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-28 05:53:59 +02:00
Update:Default to alt view and rename setting to use bookshelf view
This commit is contained in:
parent
bd5229941b
commit
a7227acbc3
3 changed files with 13 additions and 4 deletions
|
@ -109,7 +109,7 @@ data class DeviceSettings(
|
||||||
fun default():DeviceSettings {
|
fun default():DeviceSettings {
|
||||||
return DeviceSettings(
|
return DeviceSettings(
|
||||||
disableAutoRewind = false,
|
disableAutoRewind = false,
|
||||||
enableAltView = false,
|
enableAltView = true,
|
||||||
jumpBackwardsTime = 10,
|
jumpBackwardsTime = 10,
|
||||||
jumpForwardTime = 10,
|
jumpForwardTime = 10,
|
||||||
disableShakeToResetSleepTimer = false,
|
disableShakeToResetSleepTimer = false,
|
||||||
|
|
|
@ -10,7 +10,7 @@ import RealmSwift
|
||||||
|
|
||||||
class DeviceSettings: Object {
|
class DeviceSettings: Object {
|
||||||
@Persisted var disableAutoRewind: Bool = false
|
@Persisted var disableAutoRewind: Bool = false
|
||||||
@Persisted var enableAltView: Bool = false
|
@Persisted var enableAltView: Bool = true
|
||||||
@Persisted var jumpBackwardsTime: Int = 10
|
@Persisted var jumpBackwardsTime: Int = 10
|
||||||
@Persisted var jumpForwardTime: Int = 10
|
@Persisted var jumpForwardTime: Int = 10
|
||||||
@Persisted var lockOrientation: String = "NONE"
|
@Persisted var lockOrientation: String = "NONE"
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
<p class="uppercase text-xs font-semibold text-gray-300 mb-2">User Interface Settings</p>
|
<p class="uppercase text-xs font-semibold text-gray-300 mb-2">User Interface Settings</p>
|
||||||
<div class="flex items-center py-3" @click="toggleEnableAltView">
|
<div class="flex items-center py-3" @click="toggleEnableAltView">
|
||||||
<div class="w-10 flex justify-center">
|
<div class="w-10 flex justify-center">
|
||||||
<ui-toggle-switch v-model="settings.enableAltView" @input="saveSettings" />
|
<ui-toggle-switch v-model="enableBookshelfView" @input="saveSettings" />
|
||||||
</div>
|
</div>
|
||||||
<p class="pl-4">Alternative bookshelf view</p>
|
<p class="pl-4">Use bookshelf view</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center py-3" @click.stop="toggleLockOrientation">
|
<div class="flex items-center py-3" @click.stop="toggleLockOrientation">
|
||||||
<div class="w-10 flex justify-center pointer-events-none">
|
<div class="w-10 flex justify-center pointer-events-none">
|
||||||
|
@ -165,6 +165,15 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
// This is flipped because alt view was the default until v0.9.61-beta
|
||||||
|
enableBookshelfView: {
|
||||||
|
get() {
|
||||||
|
return !this.settings.enableAltView
|
||||||
|
},
|
||||||
|
set(val) {
|
||||||
|
this.settings.enableAltView = !val
|
||||||
|
}
|
||||||
|
},
|
||||||
isiOS() {
|
isiOS() {
|
||||||
return this.$platform === 'ios'
|
return this.$platform === 'ios'
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue