From c8d8c162a29b13d9f16cfacdb1d4df1a078bd81a Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Fri, 21 Oct 2022 22:02:19 +0200 Subject: [PATCH] Adjusted commit changes design --- .../com/jetpackduba/gitnuro/ui/CommitChanges.kt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/ui/CommitChanges.kt b/src/main/kotlin/com/jetpackduba/gitnuro/ui/CommitChanges.kt index 7200c31..810f19c 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/ui/CommitChanges.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/ui/CommitChanges.kt @@ -3,11 +3,13 @@ package com.jetpackduba.gitnuro.ui import androidx.compose.foundation.* import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.items +import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.foundation.text.selection.SelectionContainer import androidx.compose.material.* import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip import androidx.compose.ui.platform.LocalClipboardManager import androidx.compose.ui.text.AnnotatedString import androidx.compose.ui.text.font.FontFamily @@ -85,6 +87,7 @@ fun CommitChangesView( Column( modifier = Modifier + .padding(bottom = 4.dp) .fillMaxWidth() .weight(1f, fill = true) .background(MaterialTheme.colors.background) @@ -117,16 +120,10 @@ fun CommitChangesView( ) } - - Box(modifier = Modifier - .fillMaxWidth() - .height(2.dp) - .background(MaterialTheme.colors.secondaryTextColor.copy(alpha = 0.1f)) - ) - Column( modifier = Modifier .fillMaxWidth() + .clip(RoundedCornerShape(4.dp)) .background(MaterialTheme.colors.background), ) { SelectionContainer {