mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-12 03:58:56 +01:00
Restore chapter description alpha (#8345)
Restore "Darken the description colors" Restores #3858, with new values based on current standards (0.78f rather than 0.62f) I wanted to accomplish this without having to call a const, but that felt like a logical solution as well Of course, if you got cleaner methods do tell, thanks
This commit is contained in:
@@ -12,3 +12,4 @@ val verticalPadding = vertical
|
||||
val topPaddingValues = PaddingValues(top = vertical)
|
||||
|
||||
const val ReadItemAlpha = .38f
|
||||
const val SecondaryItemAlpha = .78f
|
||||
|
||||
@@ -29,7 +29,7 @@ fun Modifier.selectedBackground(isSelected: Boolean): Modifier = composed {
|
||||
}
|
||||
}
|
||||
|
||||
fun Modifier.secondaryItemAlpha(): Modifier = this.alpha(.78f)
|
||||
fun Modifier.secondaryItemAlpha(): Modifier = this.alpha(SecondaryItemAlpha)
|
||||
|
||||
fun Modifier.clickableNoIndication(
|
||||
onLongClick: (() -> Unit)? = null,
|
||||
|
||||
Reference in New Issue
Block a user