mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-10-07 19:11:27 -04:00
fix(mirror): mark the D-pad colour helper ReadOnlyComposable
This commit is contained in:
1 parent
399c66504d
commit
c5f093fd02
1 file changed
+2
+2
@@ -18,6 +18,7 @@ package org.meshtastic.feature.settings.debugging
|
||||
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.ReadOnlyComposable
|
||||
import androidx.compose.ui.geometry.Offset
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import org.meshtastic.core.repository.MirrorFrame
|
||||
@@ -87,5 +88,6 @@ private const val LOW_SURROGATE_BASE = 0xDC00
|
||||
private const val SURROGATE_SHIFT = 10
|
||||
|
||||
@Composable
|
||||
@ReadOnlyComposable
|
||||
internal fun dpadContentColor(enabled: Boolean): Color =
|
||||
if (enabled) MaterialTheme.colorScheme.onSecondaryContainer else MaterialTheme.colorScheme.onSurfaceVariant
|
||||
Reference in new issue
Block a user