分离紧凑模式,现在可分别调整封面大小和精简详情
This commit is contained in:
@@ -142,14 +142,17 @@ fun BookshelfConfigSheet(
|
|||||||
val folderListCount =
|
val folderListCount =
|
||||||
if (isLandscape) BookshelfConfig.bookshelfFolderLayoutListLandscape
|
if (isLandscape) BookshelfConfig.bookshelfFolderLayoutListLandscape
|
||||||
else BookshelfConfig.bookshelfFolderLayoutListPortrait
|
else BookshelfConfig.bookshelfFolderLayoutListPortrait
|
||||||
|
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||||
CompactSliderSettingItem(
|
CompactSliderSettingItem(
|
||||||
title = stringResource(R.string.number_rows_columns),
|
title = stringResource(R.string.number_rows_columns),
|
||||||
value = folderListCount.toFloat(),
|
value = folderListCount.toFloat(),
|
||||||
valueRange = 1f..5f,
|
valueRange = 1f..5f,
|
||||||
steps = 4,
|
steps = 4,
|
||||||
onValueChange = {
|
onValueChange = {
|
||||||
if (isLandscape) BookshelfConfig.bookshelfFolderLayoutListLandscape = it.toInt()
|
if (isLandscape) BookshelfConfig.bookshelfFolderLayoutListLandscape =
|
||||||
else BookshelfConfig.bookshelfFolderLayoutListPortrait = it.toInt()
|
it.toInt()
|
||||||
|
else BookshelfConfig.bookshelfFolderLayoutListPortrait =
|
||||||
|
it.toInt()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -158,9 +161,12 @@ fun BookshelfConfigSheet(
|
|||||||
value = BookshelfConfig.bookshelfListCoverWidth.toFloat(),
|
value = BookshelfConfig.bookshelfListCoverWidth.toFloat(),
|
||||||
valueRange = 40f..120f,
|
valueRange = 40f..120f,
|
||||||
steps = 80,
|
steps = 80,
|
||||||
onValueChange = { BookshelfConfig.bookshelfListCoverWidth = it.toInt() }
|
onValueChange = {
|
||||||
|
BookshelfConfig.bookshelfListCoverWidth = it.toInt()
|
||||||
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
AnimatedVisibility(
|
AnimatedVisibility(
|
||||||
visible = BookshelfConfig.bookGroupStyle == 2 && folderLayoutMode == 0
|
visible = BookshelfConfig.bookGroupStyle == 2 && folderLayoutMode == 0
|
||||||
|
|||||||
Reference in New Issue
Block a user