0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-29 14:33:01 +00:00
This commit is contained in:
X1nto 2021-06-27 10:52:40 +04:00
parent 890944377f
commit 20cf7f11a3

View file

@ -1,46 +0,0 @@
package com.vanced.manager.ui.components
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.padding
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.em
import androidx.compose.ui.unit.sp
import com.vanced.manager.ui.theme.managerAccentColor
import java.util.*
@Composable
fun HeaderView(
modifier: Modifier = Modifier,
headerName: String,
headerPadding: Dp = 11.dp,
content: @Composable ColumnScope.() -> Unit
) {
Column(
modifier = modifier
) {
Header(headerName = headerName, headerPadding = headerPadding)
content()
}
}
@Composable
fun Header(
headerName: String,
headerPadding: Dp = 11.dp,
) {
Text(
headerName.uppercase(Locale.ROOT),
letterSpacing = 0.15.em,
color = MaterialTheme.colors.managerAccentColor,
modifier = Modifier.padding(horizontal = headerPadding),
fontWeight = FontWeight.Bold,
fontSize = 13.sp
)
}