All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.github.lyxnx.compose.pine.ToolbarDefaults.kt Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
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