commonMain.io.github.lyxnx.compose.pine.ToolbarDefaults.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pine Show documentation
Show all versions of pine Show documentation
Jetpack Compose Pine Theme
package io.github.lyxnx.compose.pine
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.WindowInsetsSides
import androidx.compose.foundation.layout.only
import androidx.compose.foundation.layout.systemBars
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
/**
* Contains the default values used by a [Toolbar]
*/
public object ToolbarDefaults {
/**
* Default background color of a toolbar container
*/
public val BackgroundColor: Color
@Composable
get() = PineTheme.colors.background
/**
* Default color of a toolbar's content
*/
public val ContentColor: Color
@Composable
get() = PineTheme.colors.grey900
/**
* Default window insets for a toolbar
*/
public val Insets: WindowInsets
@Composable
get() = WindowInsets.systemBars.only(WindowInsetsSides.Horizontal + WindowInsetsSides.Top)
/**
* Default text style for a toolbar title
*/
public val TitleStyle: TextStyle
@Composable
get() = PineTheme.typography.heading5
/**
* Default text style for a toolbar text-based action button
*/
public val ButtonStyle: TextStyle
@Composable
get() = PineTheme.typography.bodyExtraSmall
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy