add KMK comment

This commit is contained in:
Cuong-Tran 2024-06-19 22:43:20 +07:00
parent e9807b2131
commit fdefea9af2
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2
3 changed files with 8 additions and 0 deletions

View file

@ -41,11 +41,13 @@ fun BrowseSourceSimpleToolbar(
actions = persistentListOf(
AppBar.Action(
title = stringResource(MR.strings.action_display_mode),
// KMK -->
icon = if (displayMode == LibraryDisplayMode.List) {
Icons.AutoMirrored.Filled.ViewList
} else {
Icons.Filled.ViewModule
},
// KMK <--
onClick = { selectingDisplayMode = true },
),
// KMK -->
@ -57,6 +59,7 @@ fun BrowseSourceSimpleToolbar(
expanded = selectingDisplayMode,
onDismissRequest = { selectingDisplayMode = false },
) {
// KMK -->
RadioMenuItem(
text = { Text(text = stringResource(MR.strings.action_display_comfortable_grid)) },
isChecked = displayMode == LibraryDisplayMode.ComfortableGrid,
@ -78,6 +81,7 @@ fun BrowseSourceSimpleToolbar(
selectingDisplayMode = false
onDisplayModeChange(LibraryDisplayMode.List)
}
// KMK <--
}
},
scrollBehavior = scrollBehavior,

View file

@ -31,10 +31,12 @@ fun MangaInfoButtons(
}
}
if (showRecommendsButton) {
// KMK -->
OutlinedButtonWithArrow(
text = stringResource(SYMR.strings.az_recommends),
onClick = onRecommendClicked,
)
// KMK <--
}
}
}

View file

@ -147,6 +147,7 @@ class GetApplicationRelease(
}
}
// KMK --.
internal fun List<Release>.getLatest(): Release? {
val checksumRegex = """---(\R|.)*Checksums(\R|.)*""".toRegex()
@ -158,3 +159,4 @@ internal fun List<Release>.getLatest(): Release? {
}
)
}
// KMK <--