Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,18 @@ fun ReaderDefaultsScreen(
title = stringResource(R.string.reader_upscale_title),
footer = stringResource(R.string.reader_upscale_hint),
) {
SettingsPickerRow(
title = stringResource(R.string.reader_upscale_mode_title),
selectedLabel = stringResource(divinaSettings.upscale.mode.labelRes),
options = UpscaleMode.entries.map { it to stringResource(it.labelRes) },
onSelect = { mode ->
// Off/auto is a binary choice, so the defaults page shows a switch instead of
// a two-item picker: on stores Auto (the only enabled trigger), off stores Off.
SettingsSwitchRow(
title = stringResource(R.string.reader_upscale_enable),
checked = divinaSettings.upscale.mode == UpscaleMode.Auto,
onCheckedChange = { enabled ->
readerSettingsViewModel.update {
it.copy(upscale = it.upscale.copy(mode = mode))
it.copy(
upscale = it.upscale.copy(
mode = if (enabled) UpscaleMode.Auto else UpscaleMode.Off,
),
)
}
},
icon = Icons.Outlined.PhotoFilter,
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-zh-rCN/strings_reader.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<string name="reader_group_image_processing">图像处理</string>
<string name="reader_crop_title">裁边模式</string>
<string name="reader_crop_hint">裁掉页面四周与底色相同的留白;关闭后按原图显示。</string>
<string name="reader_upscale_mode_title">超分模式</string>
<string name="reader_upscale_enable">低分辨率页面超分</string>
<string name="reader_upscale_auto_scale_title">自动触发阈值</string>
<string name="reader_upscale_auto_scale_hint">屏幕需要把源图放大超过该倍数才会超分。1.05 为 iOS 默认值,调高后处理的页面会变少。</string>
<string name="reader_upscale_title">Waifu2x 超分</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-zh-rTW/strings_reader.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<string name="reader_group_image_processing">影象處理</string>
<string name="reader_crop_title">裁邊模式</string>
<string name="reader_crop_hint">裁掉頁面四周與底色相同的留白;關閉後按原圖顯示。</string>
<string name="reader_upscale_mode_title">超分模式</string>
<string name="reader_upscale_enable">低解析度頁面超分</string>
<string name="reader_upscale_auto_scale_title">自動觸發閾值</string>
<string name="reader_upscale_auto_scale_hint">螢幕需要把來源圖放大超過該倍數才會超分。1.05 為 iOS 預設值,調高後處理的頁面會變少。</string>
<string name="reader_upscale_title">Waifu2x 超分</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings_reader.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<string name="reader_group_image_processing">Image processing</string>
<string name="reader_crop_title">Border cropping</string>
<string name="reader_crop_hint">Crops the margins around the page that match the background color; when off, pages are shown as-is.</string>
<string name="reader_upscale_mode_title">Upscaling mode</string>
<string name="reader_upscale_enable">Upscale low-resolution pages</string>
<string name="reader_upscale_auto_scale_title">Auto trigger threshold</string>
<string name="reader_upscale_auto_scale_hint">A page is upscaled when the screen enlarges it by more than this factor. 1.05 is the iOS default; raise it to process fewer pages.</string>
<string name="reader_upscale_title">Waifu2x upscaling</string>
Expand Down