优化默认封面

pull/1336/head
gedoor 3 years ago
parent 5714b44f39
commit a98140b0c4
  1. 4
      app/src/main/java/io/legado/app/constant/PreferKey.kt
  2. 6
      app/src/main/java/io/legado/app/ui/config/CoverConfigFragment.kt
  3. 4
      app/src/main/res/values-es-rES/strings.xml
  4. 4
      app/src/main/res/values-ja-rJP/strings.xml
  5. 4
      app/src/main/res/values-pt-rBR/strings.xml
  6. 4
      app/src/main/res/values-zh-rHK/strings.xml
  7. 4
      app/src/main/res/values-zh-rTW/strings.xml
  8. 4
      app/src/main/res/values-zh/strings.xml
  9. 4
      app/src/main/res/values/strings.xml
  10. 35
      app/src/main/res/xml/pref_config_cover.xml

@ -7,6 +7,10 @@ object PreferKey {
const val showUnread = "showUnread"
const val bookGroupStyle = "bookGroupStyle"
const val useDefaultCover = "useDefaultCover"
const val coverShowName = "coverShowName"
const val coverShowAuthor = "coverShowAuthor"
const val coverShowNameN = "coverShowNameN"
const val coverShowAuthorN = "coverShowAuthorN"
const val hideStatusBar = "hideStatusBar"
const val clickActionTL = "clickActionTopLeft"
const val clickActionTC = "clickActionTopCenter"

@ -57,6 +57,12 @@ class CoverConfigFragment : BasePreferenceFragment(),
PreferKey.defaultCoverDark -> {
upPreferenceSummary(key, getPrefString(key))
}
PreferKey.coverShowName,
PreferKey.coverShowAuthor,
PreferKey.coverShowNameN,
PreferKey.coverShowAuthorN -> listView.post {
CoverImageView.upDefaultCover()
}
}
}

@ -876,5 +876,9 @@
<string name="summary">注释</string>
<string name="cover_config">封面设置</string>
<string name="cover_config_summary">设置默认封面样式</string>
<string name="cover_show_name">显示书名</string>
<string name="cover_show_name_summary">封面上显示书名</string>
<string name="cover_show_author">显示作者</string>
<string name="cover_show_author_summary">封面上显示作者</string>
</resources>

@ -880,5 +880,9 @@
<string name="summary">注释</string>
<string name="cover_config">封面设置</string>
<string name="cover_config_summary">设置默认封面样式</string>
<string name="cover_show_name">显示书名</string>
<string name="cover_show_name_summary">封面上显示书名</string>
<string name="cover_show_author">显示作者</string>
<string name="cover_show_author_summary">封面上显示作者</string>
</resources>

@ -880,5 +880,9 @@
<string name="summary">注释</string>
<string name="cover_config">封面设置</string>
<string name="cover_config_summary">设置默认封面样式</string>
<string name="cover_show_name">显示书名</string>
<string name="cover_show_name_summary">封面上显示书名</string>
<string name="cover_show_author">显示作者</string>
<string name="cover_show_author_summary">封面上显示作者</string>
</resources>

@ -877,5 +877,9 @@
<string name="summary">注释</string>
<string name="cover_config">封面设置</string>
<string name="cover_config_summary">设置默认封面样式</string>
<string name="cover_show_name">显示书名</string>
<string name="cover_show_name_summary">封面上显示书名</string>
<string name="cover_show_author">显示作者</string>
<string name="cover_show_author_summary">封面上显示作者</string>
</resources>

@ -879,5 +879,9 @@
<string name="summary">注释</string>
<string name="cover_config">封面设置</string>
<string name="cover_config_summary">设置默认封面样式</string>
<string name="cover_show_name">显示书名</string>
<string name="cover_show_name_summary">封面上显示书名</string>
<string name="cover_show_author">显示作者</string>
<string name="cover_show_author_summary">封面上显示作者</string>
</resources>

@ -879,5 +879,9 @@
<string name="summary">注释</string>
<string name="cover_config">封面设置</string>
<string name="cover_config_summary">设置默认封面样式</string>
<string name="cover_show_name">显示书名</string>
<string name="cover_show_name_summary">封面上显示书名</string>
<string name="cover_show_author">显示作者</string>
<string name="cover_show_author_summary">封面上显示作者</string>
</resources>

@ -880,5 +880,9 @@
<string name="summary">注释</string>
<string name="cover_config">封面设置</string>
<string name="cover_config_summary">设置默认封面样式</string>
<string name="cover_show_name">显示书名</string>
<string name="cover_show_name_summary">封面上显示书名</string>
<string name="cover_show_author">显示作者</string>
<string name="cover_show_author_summary">封面上显示作者</string>
</resources>

@ -26,6 +26,24 @@
app:allowDividerBelow="false"
app:iconSpaceReserved="false" />
<io.legado.app.ui.widget.prefs.SwitchPreference
android:defaultValue="false"
android:key="coverShowName"
android:title="@string/cover_show_name"
android:summary="@string/cover_show_name_summary"
app:allowDividerAbove="false"
app:allowDividerBelow="false"
app:iconSpaceReserved="false" />
<io.legado.app.ui.widget.prefs.SwitchPreference
android:defaultValue="false"
android:key="coverShowAuthor"
android:title="@string/cover_show_author"
android:summary="@string/cover_show_author_summary"
app:allowDividerAbove="false"
app:allowDividerBelow="false"
app:iconSpaceReserved="false" />
</io.legado.app.ui.widget.prefs.PreferenceCategory>
<io.legado.app.ui.widget.prefs.PreferenceCategory
@ -43,6 +61,23 @@
app:allowDividerBelow="false"
app:iconSpaceReserved="false" />
<io.legado.app.ui.widget.prefs.SwitchPreference
android:defaultValue="false"
android:key="coverShowNameN"
android:title="@string/cover_show_name"
android:summary="@string/cover_show_name_summary"
app:allowDividerAbove="false"
app:allowDividerBelow="false"
app:iconSpaceReserved="false" />
<io.legado.app.ui.widget.prefs.SwitchPreference
android:defaultValue="false"
android:key="coverShowAuthorN"
android:title="@string/cover_show_author"
android:summary="@string/cover_show_author_summary"
app:allowDividerAbove="false"
app:allowDividerBelow="false"
app:iconSpaceReserved="false" />
</io.legado.app.ui.widget.prefs.PreferenceCategory>

Loading…
Cancel
Save