Skip to content

Commit ae2a94a

Browse files
authored
#149 - UI updates (#150)
* notifications offset options translation, ru translation fix * Various ui updates
1 parent 9fc35cc commit ae2a94a

File tree

11 files changed

+20
-15
lines changed

11 files changed

+20
-15
lines changed

App/Extensions/Presentation/View/ViewExtensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extension View {
3333

3434
func searchBox() -> some View {
3535
padding(10)
36-
.background(Color.gray.opacity(0.3))
36+
.background(Color.gray.opacity(0.2))
3737
.cornerRadius(10)
3838
}
3939

App/Presentation/Views/Account/User/ResourceSection/Booking/Events/EventCardButton.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ struct EventCardButton: View {
2525
Text(event.title ?? NSLocalizedString("No title", comment: ""))
2626
.font(.system(size: 17, weight: .medium))
2727
.foregroundColor(.onSurface)
28-
.lineLimit(1)
2928
.truncationMode(.tail)
3029
}
3130
HStack {

App/Presentation/Views/Account/User/ResourceSection/Booking/Events/UpcomingEventCardButton.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ struct UpcomingEventCardButton: View {
1717
Text(event.title)
1818
.font(.system(size: 17, weight: .medium))
1919
.foregroundColor(.onSurface)
20-
.lineLimit(1)
2120
.truncationMode(.tail)
2221
}
2322
HStack {

App/Presentation/Views/Bookmarks/EventDetails/EventDetailsBody.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct EventDetailsBody: View {
5454
DetailsBuilder(title: NSLocalizedString("Locations", comment: ""), image: "mappin.and.ellipse") {
5555
if event.locations.count > 0 {
5656
HStack {
57-
VStack {
57+
VStack(alignment: .leading) {
5858
ForEach(event.locations, id: \.self) { location in
5959
Text(location.locationId.capitalized)
6060
.font(.system(size: 16))

App/Presentation/Views/Buttons/CloseCoverButton.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ struct CloseCoverButton: View {
1313

1414
var body: some View {
1515
Button(action: onClick, label: {
16-
Image(systemName: "xmark")
17-
.foregroundColor(.onBackground)
18-
.font(.system(size: 24, weight: .medium))
16+
Image(systemName: "xmark.circle.fill")
17+
.foregroundColor(.onBackground.opacity(0.6))
18+
.font(.system(size: 28, weight: .medium))
19+
.symbolRenderingMode(.hierarchical)
1920
})
20-
.padding()
21+
.padding(.trailing, Spacing.medium)
22+
.padding(.top, Spacing.small)
2123
}
2224
}
2325

App/Presentation/Views/General/SearchField.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ struct SearchField: View {
4545
}
4646
.buttonStyle(SearchMenuActionStyle())
4747
}
48+
.transition(AnyTransition.move(edge: .trailing).combined(with: .opacity))
4849
}
4950
}
5051
}

App/Presentation/Views/Home/Available/NextClass.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ struct NextClass: View {
1414
var body: some View {
1515
VStack(alignment: .leading, spacing: Spacing.medium) {
1616
HStack {
17+
Text(NSLocalizedString("Next class", comment: ""))
18+
.font(.system(size: 18, weight: .semibold))
19+
.foregroundColor(.onBackground)
20+
Spacer()
1721
if let nextClass = nextClass {
1822
Text(nextClass.from.formatDate() ?? "")
1923
.font(.system(size: 16, weight: .medium))
2024
.foregroundColor(.gray)
2125
}
22-
Spacer()
23-
Text(NSLocalizedString("Next class", comment: ""))
24-
.font(.system(size: 18, weight: .semibold))
25-
.foregroundColor(.onBackground)
2626
}
2727
if let nextClass = nextClass, let course = nextClass.course {
2828
let color: Color = course.color.toColor()

App/Presentation/Views/Home/Available/NextLocation.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ struct NextLocation: View {
1313

1414
var body: some View {
1515
Button(action: {
16+
HapticsController.triggerHapticLight()
1617
sheetOpen = true
1718
}, label: {
1819
HStack(alignment: .center) {

App/Presentation/Views/Search/Preview/BookmarkButton.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ struct BookmarkButton: View {
5151
}
5252
}
5353
.buttonStyle(PillStyle(color: .primary))
54-
.padding(Spacing.medium)
54+
.padding(.leading, Spacing.medium)
55+
.padding(.top, Spacing.extraSmall)
5556
}
5657
}

App/Presentation/Views/Search/Preview/SearchPreviewList.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ struct SearchPreviewList: View {
3838
}
3939
}
4040
}
41-
.padding(.horizontal, Spacing.medium)
4241
}
42+
.cornerRadius(15)
43+
.padding(.horizontal, Spacing.medium)
44+
.ignoresSafeArea()
4345
}
4446

4547
func createDays() -> [Response.Day]? {

0 commit comments

Comments
 (0)