From b28e6e785899d8da78cbbde07221cf8eeb211a83 Mon Sep 17 00:00:00 2001 From: Acclorite <2ma0bhpk@anonaddy.com> Date: Wed, 1 Oct 2025 13:51:28 +0300 Subject: [PATCH] feat: add note to the LibrarySortSubcategory --- .../library/sort/LibrarySortSubcategory.kt | 5 +++++ .../LibraryPerCategorySortOptionNote.kt | 19 +++++++++++++++++++ app/src/main/res/values-uk/strings.xml | 3 +++ app/src/main/res/values/strings.xml | 3 +++ 4 files changed, 30 insertions(+) create mode 100644 app/src/main/java/ua/acclorite/book_story/ui/settings/library/sort/components/LibraryPerCategorySortOptionNote.kt diff --git a/app/src/main/java/ua/acclorite/book_story/ui/settings/library/sort/LibrarySortSubcategory.kt b/app/src/main/java/ua/acclorite/book_story/ui/settings/library/sort/LibrarySortSubcategory.kt index c084f183..629cfd51 100644 --- a/app/src/main/java/ua/acclorite/book_story/ui/settings/library/sort/LibrarySortSubcategory.kt +++ b/app/src/main/java/ua/acclorite/book_story/ui/settings/library/sort/LibrarySortSubcategory.kt @@ -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() + } } } \ No newline at end of file diff --git a/app/src/main/java/ua/acclorite/book_story/ui/settings/library/sort/components/LibraryPerCategorySortOptionNote.kt b/app/src/main/java/ua/acclorite/book_story/ui/settings/library/sort/components/LibraryPerCategorySortOptionNote.kt new file mode 100644 index 00000000..08233823 --- /dev/null +++ b/app/src/main/java/ua/acclorite/book_story/ui/settings/library/sort/components/LibraryPerCategorySortOptionNote.kt @@ -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) + ) +} \ No newline at end of file diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml index 9e1c29ae..31efe6c1 100644 --- a/app/src/main/res/values-uk/strings.xml +++ b/app/src/main/res/values-uk/strings.xml @@ -150,6 +150,9 @@ Видалення категорії тут не видалить книги з Бібліотеки. Затисніть і перетягніть іконку категорії, щоб змінити порядок категорій. + + Сортування може бути змінено в Бібліотеці. + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 70915486..1b5e0c86 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -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. + + Sorting can be changed in the Library. +