leboncoin/spark-android

[FR]: Fix theming.md dim-level examples to show composable context

Aperta

#2113 aperta il 27 lug 2026

 (0 commenti) (0 reazioni) (0 assegnatari)Kotlin (31 fork)auto 404
contribution welcomeddocumentationgood first issuepriority:MEDIUM

Metriche repository

Star
 (85 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Describe the problem

The "Dim levels" section in theming.md shows code like:

val disabledColour = SparkTheme.colors.onSurface.disabled

Both .disabled and .dim2 are @Composable getters. The code shown has no @Composable context and will not compile.

Describe the solution

Wrap the examples in a @Composable function or show the properties used inside a composable body.

Additional context

Priority: Medium. Effort: XS.

Guida contributor