mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 17:37:05 +05:30
common: add CommentTreeColors for nested comment tracking
This commit is contained in:
parent
f5eb62f20f
commit
3418606e09
1 changed files with 30 additions and 0 deletions
|
@ -0,0 +1,30 @@
|
|||
package dev.msfjarvis.claw.common.comments
|
||||
|
||||
import androidx.compose.ui.graphics.Color
|
||||
|
||||
object CommentTreeColor {
|
||||
private val colors =
|
||||
arrayOf(
|
||||
Color(0xFFFFC40D),
|
||||
Color(0xFF2D89EF),
|
||||
Color(0xFFB91D47),
|
||||
Color(0xFF00ABA9),
|
||||
Color(0xFFE3A21A),
|
||||
Color(0xFF99B433),
|
||||
Color(0xFF7E3878),
|
||||
Color(0xFFFFB300),
|
||||
Color(0xFFFFFFFF),
|
||||
Color(0xFF00A300),
|
||||
Color(0xFF2B5797),
|
||||
Color(0xFF9F00A7),
|
||||
Color(0xFF603CBA),
|
||||
Color(0xFFEE1111),
|
||||
Color(0xFFEFF4FF),
|
||||
Color(0xFFDA532C),
|
||||
Color(0xFFFF0097),
|
||||
Color(0xFF1E7145),
|
||||
)
|
||||
private val size = colors.size
|
||||
|
||||
operator fun get(idx: Int): Color = colors[idx % size]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue