Skip to content

Commit

Permalink
🐛 Aligning the application icon with the title (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
guiyanakuang authored Jun 15, 2024
1 parent de50d92 commit f619f49
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions composeApp/src/commonMain/kotlin/com/clipevery/ui/HomeView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
Expand Down Expand Up @@ -114,31 +115,39 @@ fun TitleView() {
) {
Image(
modifier =
Modifier.padding(13.dp, 13.dp, 13.dp, 13.dp)
Modifier.padding(start = 13.dp, top = 13.dp, end = 10.dp, bottom = 13.dp)
.align(Alignment.CenterVertically)
.clip(RoundedCornerShape(3.dp))
.size(36.dp),
painter = painterResource("clipevery_icon.png"),
contentDescription = "clipevery icon",
)
Column(
Modifier.wrapContentWidth(),
Modifier.wrapContentWidth()
.height(36.dp),
horizontalAlignment = Alignment.CenterHorizontally,
) {
Text(
modifier = Modifier.align(Alignment.Start),
text = "Compile Future",
color = Color.White,
style = TextStyle(fontWeight = FontWeight.Light),
fontSize = 11.sp,
fontSize = 10.sp,
style =
TextStyle(
fontFamily = FontFamily.SansSerif,
fontWeight = FontWeight.Light,
),
)
Text(
modifier = Modifier.align(Alignment.Start),
text = "Clipevery",
color = Color.White,
fontSize = 25.sp,
style = TextStyle(fontWeight = FontWeight.Bold),
fontFamily = customFontFamily,
style =
TextStyle(
fontFamily = customFontFamily,
fontWeight = FontWeight.Bold,
),
)
}
}
Expand Down

0 comments on commit f619f49

Please sign in to comment.