EARHORNMUSIC UPnP · Android TV · Phones · Android Auto · GNU/Linux
Release 0.5.0

Theme.kt

package dev.stave.ui.theme

import androidx.compose.runtime.Composable
import androidx.tv.material3.MaterialTheme
import androidx.tv.material3.darkColorScheme

private val EarhornColorScheme = darkColorScheme(
    primary = AccentAmber,
    onPrimary = OnAmber,
    primaryContainer = AccentAmberSoft,
    onPrimaryContainer = OnPrimary,

    secondary = AccentSage,
    onSecondary = SurfaceBase,
    secondaryContainer = SurfaceHover,
    onSecondaryContainer = OnPrimary,

    tertiary = AccentRose,
    onTertiary = SurfaceBase,
    tertiaryContainer = AccentRoseSoft,
    onTertiaryContainer = OnPrimary,

    background = SurfaceBase,
    onBackground = OnPrimary,

    surface = SurfaceBase,
    onSurface = OnPrimary,
    surfaceVariant = SurfaceRaised,
    onSurfaceVariant = OnMuted,

    border = SurfaceDivider,
    borderVariant = SurfaceDivider
)

@Composable
fun EarhornTheme(useFraunces: Boolean = true, content: @Composable () -> Unit) {
    MaterialTheme(
        colorScheme = EarhornColorScheme,
        typography = staveTypography(useFraunces = useFraunces),
        shapes = EarhornShapes,
        content = content
    )
}