Skip to content

Commit 2769a07

Browse files
committed
Add rounded corners to buttons in PDEWelcome
Introduced a RoundedCornerShape with 12.dp radius and applied it to various buttons in the PDEWelcome screen for improved UI consistency and aesthetics.
1 parent 8e32abf commit 2769a07

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

app/src/processing/app/ui/PDEWelcome.kt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import androidx.compose.foundation.lazy.LazyColumn
3434
import androidx.compose.foundation.lazy.items
3535
import androidx.compose.foundation.lazy.rememberLazyListState
3636
import androidx.compose.foundation.rememberScrollbarAdapter
37+
import androidx.compose.foundation.shape.RoundedCornerShape
3738
import androidx.compose.material.icons.Icons
3839
import androidx.compose.material.icons.filled.ArrowDropDown
3940
import androidx.compose.material.icons.filled.Language
@@ -103,6 +104,7 @@ fun PDEWelcome(base: Base? = null) {
103104
.fillMaxSize()
104105
.background(MaterialTheme.colorScheme.surfaceContainerLow),
105106
){
107+
val shape = RoundedCornerShape(12.dp)
106108
val xsPadding = PaddingValues(horizontal = 8.dp, vertical = 4.dp)
107109
val xsModifier = Modifier
108110
.defaultMinSize(minHeight = 1.dp)
@@ -149,7 +151,8 @@ fun PDEWelcome(base: Base? = null) {
149151
showLanguageMenu.value = !showLanguageMenu.value
150152
},
151153
contentPadding = xsPadding,
152-
modifier = xsModifier
154+
modifier = xsModifier,
155+
shape = shape
153156
){
154157
Icon(Icons.Default.Language, contentDescription = "", modifier = Modifier.size(20.dp))
155158
Spacer(Modifier.width(4.dp))
@@ -183,7 +186,8 @@ fun PDEWelcome(base: Base? = null) {
183186
base?.handleNew() ?: noBaseWarning()
184187
},
185188
colors = colors,
186-
modifier = medModifier
189+
modifier = medModifier,
190+
shape = shape
187191
) {
188192
Icon(Icons.Outlined.NoteAdd, contentDescription = "")
189193
Spacer(Modifier.width(12.dp))
@@ -196,7 +200,8 @@ fun PDEWelcome(base: Base? = null) {
196200
} ?: noBaseWarning()
197201
},
198202
colors = colors,
199-
modifier = medModifier
203+
modifier = medModifier,
204+
shape = shape
200205
) {
201206
Icon(Icons.Outlined.FolderSpecial, contentDescription = "")
202207
Spacer(Modifier.width(12.dp))
@@ -209,7 +214,8 @@ fun PDEWelcome(base: Base? = null) {
209214
} ?: noBaseWarning()
210215
},
211216
colors = colors,
212-
modifier = medModifier
217+
modifier = medModifier,
218+
shape = shape
213219
) {
214220
Icon(Icons.Outlined.FolderOpen, contentDescription = "")
215221
Spacer(Modifier.width(12.dp))

0 commit comments

Comments
 (0)