Change Recommendation button style & enable default showing it
This commit is contained in:
parent
edf222e535
commit
a539028ec0
4 changed files with 13 additions and 12 deletions
|
|
@ -49,7 +49,7 @@ class UiPreferences(
|
|||
fun expandRelatedTitles() = preferenceStore.getBoolean("expand_related_titles", true)
|
||||
// KMK <--
|
||||
|
||||
fun recommendsInOverflow() = preferenceStore.getBoolean("recommends_in_overflow", true)
|
||||
fun recommendsInOverflow() = preferenceStore.getBoolean("recommends_in_overflow", false)
|
||||
|
||||
fun mergeInOverflow() = preferenceStore.getBoolean("merge_in_overflow", true)
|
||||
|
||||
|
|
|
|||
|
|
@ -624,7 +624,8 @@ private fun MangaScreenSmallImpl(
|
|||
contentType = MangaScreenItem.RELATED_TITLES,
|
||||
) {
|
||||
OutlinedButtonWithArrow(
|
||||
text = stringResource(KMR.strings.pref_source_related_mangas),
|
||||
text = stringResource(KMR.strings.pref_source_related_mangas)
|
||||
.uppercase(),
|
||||
onClick = onRelatedMangasScreenClick,
|
||||
)
|
||||
}
|
||||
|
|
@ -994,7 +995,8 @@ private fun MangaScreenLargeImpl(
|
|||
) {
|
||||
Column {
|
||||
RelatedMangaTitle(
|
||||
title = stringResource(KMR.strings.pref_source_related_mangas),
|
||||
title = stringResource(KMR.strings.pref_source_related_mangas)
|
||||
.uppercase(),
|
||||
subtitle = null,
|
||||
onClick = onRelatedMangasScreenClick,
|
||||
onLongClick = null,
|
||||
|
|
|
|||
|
|
@ -31,14 +31,10 @@ fun MangaInfoButtons(
|
|||
}
|
||||
}
|
||||
if (showRecommendsButton) {
|
||||
Button(
|
||||
OutlinedButtonWithArrow(
|
||||
text = stringResource(SYMR.strings.az_recommends),
|
||||
onClick = onRecommendClicked,
|
||||
Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 16.dp, vertical = 4.dp),
|
||||
) {
|
||||
Text(stringResource(SYMR.strings.az_recommends))
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,10 @@ fun OutlinedButtonWithArrow(
|
|||
onClick = onClick,
|
||||
modifier = modifier
|
||||
.fillMaxWidth()
|
||||
.padding(MaterialTheme.padding.small),
|
||||
.padding(
|
||||
horizontal = MaterialTheme.padding.medium,
|
||||
vertical = MaterialTheme.padding.small,
|
||||
),
|
||||
colors = ButtonDefaults.outlinedButtonColors(),
|
||||
shape = RoundedCornerShape(8.dp)
|
||||
) {
|
||||
|
|
@ -43,7 +46,7 @@ fun OutlinedButtonWithArrow(
|
|||
verticalAlignment = Alignment.CenterVertically
|
||||
) {
|
||||
Text(
|
||||
text = text.uppercase(),
|
||||
text = text,
|
||||
)
|
||||
Spacer(modifier = Modifier.width(4.dp))
|
||||
Icon(
|
||||
|
|
|
|||
Loading…
Reference in a new issue