feat: add note to the LibrarySortSubcategory

This commit is contained in:
Acclorite 2025-10-01 13:51:28 +03:00
parent f2b2b04bac
commit b28e6e7858
No known key found for this signature in database
GPG key ID: 6E54C611F6EE8593
4 changed files with 30 additions and 0 deletions

View file

@ -16,6 +16,7 @@ import androidx.compose.ui.res.stringResource
import ua.acclorite.book_story.R
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.LibraryPerCategorySortOptionNote
fun LazyListScope.LibrarySortSubcategory(
titleColor: @Composable () -> Color = { MaterialTheme.colorScheme.primary },
@ -32,5 +33,9 @@ fun LazyListScope.LibrarySortSubcategory(
item {
LibraryPerCategorySortOption()
}
item {
LibraryPerCategorySortOptionNote()
}
}
}

View file

@ -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)
)
}

View file

@ -150,6 +150,9 @@
Видалення категорії тут не видалить книги з Бібліотеки.
Затисніть і перетягніть іконку категорії, щоб змінити порядок категорій.
</string>
<string name="library_per_category_sort_option_note">
Сортування може бути змінено в Бібліотеці.
</string>
<!-- Settings options -->
<!-- General -->

View file

@ -171,6 +171,9 @@
Removing a category here will not delete books from the Library.
Hold and move the category icon to rearrange the categories.
</string>
<string name="library_per_category_sort_option_note">
Sorting can be changed in the Library.
</string>
<!-- Settings options -->
<!-- General -->