Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Aligning the application icon with the title #1262

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading