feat: add note to the LibrarySortSubcategory
This commit is contained in:
parent
f2b2b04bac
commit
b28e6e7858
4 changed files with 30 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ import androidx.compose.ui.res.stringResource
|
||||||
import ua.acclorite.book_story.R
|
import ua.acclorite.book_story.R
|
||||||
import ua.acclorite.book_story.ui.settings.components.SettingsSubcategory
|
import ua.acclorite.book_story.ui.settings.components.SettingsSubcategory
|
||||||
import ua.acclorite.book_story.ui.settings.library.sort.components.LibraryPerCategorySortOption
|
import ua.acclorite.book_story.ui.settings.library.sort.components.LibraryPerCategorySortOption
|
||||||
|
import ua.acclorite.book_story.ui.settings.library.sort.components.LibraryPerCategorySortOptionNote
|
||||||
|
|
||||||
fun LazyListScope.LibrarySortSubcategory(
|
fun LazyListScope.LibrarySortSubcategory(
|
||||||
titleColor: @Composable () -> Color = { MaterialTheme.colorScheme.primary },
|
titleColor: @Composable () -> Color = { MaterialTheme.colorScheme.primary },
|
||||||
|
|
@ -32,5 +33,9 @@ fun LazyListScope.LibrarySortSubcategory(
|
||||||
item {
|
item {
|
||||||
LibraryPerCategorySortOption()
|
LibraryPerCategorySortOption()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
item {
|
||||||
|
LibraryPerCategorySortOptionNote()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
/*
|
||||||
|
* Book's Story — free and open-source Material You eBook reader.
|
||||||
|
* Copyright (C) 2024-2025 Acclorite
|
||||||
|
* SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
package ua.acclorite.book_story.ui.settings.library.sort.components
|
||||||
|
|
||||||
|
import androidx.compose.runtime.Composable
|
||||||
|
import androidx.compose.ui.res.stringResource
|
||||||
|
import ua.acclorite.book_story.R
|
||||||
|
import ua.acclorite.book_story.ui.settings.components.SettingsSubcategoryNote
|
||||||
|
|
||||||
|
@Composable
|
||||||
|
fun LibraryPerCategorySortOptionNote() {
|
||||||
|
SettingsSubcategoryNote(
|
||||||
|
text = stringResource(id = R.string.library_per_category_sort_option_note)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
@ -150,6 +150,9 @@
|
||||||
Видалення категорії тут не видалить книги з Бібліотеки.
|
Видалення категорії тут не видалить книги з Бібліотеки.
|
||||||
Затисніть і перетягніть іконку категорії, щоб змінити порядок категорій.
|
Затисніть і перетягніть іконку категорії, щоб змінити порядок категорій.
|
||||||
</string>
|
</string>
|
||||||
|
<string name="library_per_category_sort_option_note">
|
||||||
|
Сортування може бути змінено в Бібліотеці.
|
||||||
|
</string>
|
||||||
|
|
||||||
<!-- Settings options -->
|
<!-- Settings options -->
|
||||||
<!-- General -->
|
<!-- General -->
|
||||||
|
|
|
||||||
|
|
@ -171,6 +171,9 @@
|
||||||
Removing a category here will not delete books from the Library.
|
Removing a category here will not delete books from the Library.
|
||||||
Hold and move the category icon to rearrange the categories.
|
Hold and move the category icon to rearrange the categories.
|
||||||
</string>
|
</string>
|
||||||
|
<string name="library_per_category_sort_option_note">
|
||||||
|
Sorting can be changed in the Library.
|
||||||
|
</string>
|
||||||
|
|
||||||
<!-- Settings options -->
|
<!-- Settings options -->
|
||||||
<!-- General -->
|
<!-- General -->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue