Package-level declarations

Types

Link copied to clipboard
class SnabblePrimaryButton @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : MaterialButton

A default Materialbutton which automatically sets the remote theme colors of the current checked in project.

Link copied to clipboard
class SnabblePrimaryTextView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = android.R.attr.textViewStyle) : AppCompatTextView

A default AppCompatTextView which automatically sets the primary color from the remote theme of the current checked in project as text color.

Link copied to clipboard
class SnabbleSecondaryButton @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.buttonStyle) : MaterialButton

A default Materialbutton which automatically sets the primary color from the remote theme of the current checked in project as text color.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Context.onPrimaryColorForProject(project: Project?, action: (Int) -> Unit? = null): Int
Link copied to clipboard
fun Context.onSecondaryColorForProject(project: Project?, action: (Int) -> Unit? = null): Int
Link copied to clipboard
fun Context.primaryColorForProject(project: Project?, action: (Int) -> Unit? = null): Int
Link copied to clipboard
fun Context.secondaryColorForProject(project: Project?, action: (Int) -> Unit? = null): Int