From 20cf7f11a3eb5e0b1bf40d176468190c58fee2cf Mon Sep 17 00:00:00 2001 From: X1nto Date: Sun, 27 Jun 2021 10:52:40 +0400 Subject: [PATCH] cleanup --- .../ui/components/GlobalComposables.kt | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 app/src/main/java/com/vanced/manager/ui/components/GlobalComposables.kt diff --git a/app/src/main/java/com/vanced/manager/ui/components/GlobalComposables.kt b/app/src/main/java/com/vanced/manager/ui/components/GlobalComposables.kt deleted file mode 100644 index 727d97eb..00000000 --- a/app/src/main/java/com/vanced/manager/ui/components/GlobalComposables.kt +++ /dev/null @@ -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 - ) -} \ No newline at end of file