Skip to content

Commit

Permalink
Cleaned up the typography for Welcome Screen
Browse files Browse the repository at this point in the history
  • Loading branch information
nanashili committed Mar 19, 2022
1 parent 23a4084 commit 78b748b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CodeEdit/Welcome/WelcomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ struct WelcomeView: View {
.resizable()
.frame(width: 128, height: 128)
Text("Welcome to CodeEdit")
.font(.system(size: 38))
.font(Font.custom("SF Pro", size: 36))
Text("Version \(appVersion)(\(appBuild))")
.foregroundColor(.secondary)
.font(.system(size: 13))
.font(Font.custom("SF Pro", size: 14))
Spacer().frame(height: 20)
HStack {
VStack(alignment: .leading, spacing: 15) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ public struct RecentProjectItem: View {
.aspectRatio(contentMode: .fit)
.frame(width: 24)
VStack(alignment: .leading) {
Text(projectName).font(.system(size: 16, weight: .semibold))
Text(projectName)
.font(Font.custom("SF Pro", size: 16))
.fontWeight(.medium)
.lineLimit(1)
Text(projectPath)
.font(Font.custom("SF Pro", size: 13))
.foregroundColor(.secondary)
.lineLimit(1)
.truncationMode(.head)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ public struct WelcomeActionView: View {
.frame(width: 24)
VStack(alignment: .leading) {
Text(title)
.bold()
.font(.system(size: 13))
.fontWeight(.medium)
.font(Font.custom("SF Pro", size: 14))
Text(subtitle)
.font(.system(size: 12))
.font(Font.custom("SF Pro", size: 12))
}
Spacer()
}
Expand Down

0 comments on commit 78b748b

Please sign in to comment.