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

main.com.sceyt.chatuikit.styles.common.SearchToolbarStyle.kt Maven / Gradle / Ivy

There is a newer version: 1.7.2
Show newest version
package com.sceyt.chatuikit.styles.common

import android.graphics.drawable.Drawable
import androidx.annotation.ColorInt
import com.sceyt.chatuikit.presentation.custom_views.SearchableToolbar
import com.sceyt.chatuikit.styles.StyleConstants.UNSET_COLOR

data class SearchToolbarStyle(
        @ColorInt val backgroundColor: Int = UNSET_COLOR,
        @ColorInt val borderColor: Int = UNSET_COLOR,
        val navigationIcon: Drawable? = null,
        val titleTextStyle: TextStyle = TextStyle(),
        val searchInputStyle: SearchInputStyle = SearchInputStyle()
) {

    fun apply(toolbar: SearchableToolbar) {
        toolbar.setBackgroundColor(backgroundColor)
        toolbar.setTitleTextStyle(titleTextStyle)
        toolbar.setBorderColor(borderColor)
        toolbar.setNavigationIcon(navigationIcon)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy