浏览代码

Adjust UI on Home Screen TV

Khubaib 9 月之前
父节点
当前提交
913af69e30
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7 7
      app/src/main/java/com/vpn/fastestvpnservice/screensTV/HomeScreenTV.kt

+ 7 - 7
app/src/main/java/com/vpn/fastestvpnservice/screensTV/HomeScreenTV.kt

@@ -96,11 +96,11 @@ fun HomeTV(navHostController: NavHostController) {
         ConstraintLayout(modifier = Modifier
             .fillMaxSize()
             .weight(0.6f)
-//            .background(Color.Green)
+            .background(Color.Transparent)
         )
         {
             val (firstComposable, secondComposable) = createRefs()
-            val guideline = createGuidelineFromTop(0.6f)
+            val guideline = createGuidelineFromTop(0.7f)
             Box(
                 modifier = Modifier
                     .constrainAs(firstComposable) {
@@ -309,7 +309,7 @@ fun HomeTV(navHostController: NavHostController) {
                     },
                     modifier = Modifier
                         .padding(bottom = 0.dp)
-                        .size(234.dp),
+                        .size(200.dp),
                 )
                 {
                     if (isConnect == App.CONNECTED) {
@@ -354,7 +354,7 @@ fun HomeTV(navHostController: NavHostController) {
                         .fillMaxWidth(fraction = if (isTablet()) 0.5f else 1f)
                         .padding(horizontal = 20.dp)
                         .padding(vertical = 5.dp)
-                        .height(120.dp)
+                        .height(100.dp)
                         .border(
                             border = BorderStroke(2.dp, colorResource(id = R.color.white)),
                             shape = RoundedCornerShape(28.dp)
@@ -430,7 +430,7 @@ fun HomeTV(navHostController: NavHostController) {
 
                         },
                         modifier = Modifier
-                            .padding(start = 14.dp, end = 14.dp, bottom = 12.dp, top = 16.dp)
+                            .padding(start = 14.dp, end = 14.dp, bottom = 8.dp, top = 16.dp)
                             .align(Alignment.BottomCenter)
                             .background(colorResource(id = R.color.transparent))
                             .fillMaxWidth()
@@ -461,7 +461,7 @@ fun HomeTV(navHostController: NavHostController) {
                         .fillMaxWidth(fraction = if (isTablet()) 0.5f else 1f)
                         .padding(horizontal = 20.dp, vertical = 5.dp)
                         .padding(top = 0.dp)
-                        .height(70.dp)
+                        .height(60.dp)
                         .border(
                             border = BorderStroke(2.dp, colorResource(id = R.color.white)),
                             shape = RoundedCornerShape(28.dp)
@@ -539,7 +539,7 @@ fun BoxScope.AddRowSmartTV(
     Row(
         modifier = Modifier
             .fillMaxWidth()
-            .padding(15.dp)
+            .padding(horizontal = 15.dp, vertical = 5.dp)
             .background(Color.Transparent),
         horizontalArrangement = Arrangement.Start,
         verticalAlignment = Alignment.CenterVertically