This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typealias LogElement = Triple<String, Int, String?> | |
| object LogController { | |
| private var flush = BehaviorSubject.create<Long>() | |
| private var flushCompleted = BehaviorSubject.create<Long>() | |
| private var LOG_LEVELS = arrayOf("", "", "VERBOSE", | |
| "DEBUG", | |
| "INFO", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import androidx.compose.foundation.Indication | |
| import androidx.compose.foundation.LocalIndication | |
| import androidx.compose.foundation.clickable | |
| import androidx.compose.foundation.combinedClickable | |
| import androidx.compose.foundation.interaction.MutableInteractionSource | |
| import androidx.compose.foundation.lazy.LazyListState | |
| import androidx.compose.runtime.remember | |
| import androidx.compose.runtime.staticCompositionLocalOf | |
| import androidx.compose.ui.Modifier |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val colorScheme = when { | |
| dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> { | |
| val context = LocalContext.current | |
| if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context) | |
| } | |
| darkTheme -> DarkColorScheme | |
| else -> LightColorScheme | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @RequiresApi(34) | |
| internal fun dynamicDarkColorScheme34(context: Context) = darkColorScheme( | |
| primary = ColorResourceHelper.getColor(context, android.R.color.system_primary_dark), |
OlderNewer