Skip to content

Commit b35ee96

Browse files
committed
Updated map screen with new design
1 parent a729f03 commit b35ee96

File tree

6 files changed

+60
-16
lines changed

6 files changed

+60
-16
lines changed

GoInfoGame/GoInfoGame/Helpers/Generated/Strings+Generated.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ internal enum L10n {
208208
internal static let undoConfirmNegative = L10n.tr("Localizable", "undo_confirm_negative", fallback: "Cancel")
209209
/// Usually looks like this?
210210
internal static let usuallyLooksLikeThis = L10n.tr("Localizable", "usually_looks_like_this", fallback: "Usually looks like this?")
211+
/// Workspace
212+
internal static let workspace = L10n.tr("Localizable", "Workspace", fallback: "Workspace")
211213
}
212214
internal enum Main {
213215
internal enum _13PWzT0e {

GoInfoGame/GoInfoGame/UI/Map/MapView.swift

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ struct MapView: View {
181181
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .bottomLeading)
182182
Spacer()
183183
FloatingActionButtonStack()
184-
.padding(.bottom, 24)
184+
.padding(.bottom, 30)
185185
.padding(.trailing, 16)
186186
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .bottomLeading)
187187

@@ -223,9 +223,40 @@ struct MapView: View {
223223
.navigationBarItems(leading: EmptyView())
224224
.toolbar {
225225
ToolbarItem(placement: .topBarLeading) {
226-
Text(selectedWorkspace?.title ?? "")
227-
.font(.custom("Lato-Bold", size: 16))
228-
.foregroundStyle(Asset.Colors.huskyPurple.swiftUIColor)
226+
HStack(spacing: 10) {
227+
Button(action: {
228+
navigateToProfile = true
229+
}) {
230+
Image(systemName: "person.fill")
231+
.padding(8)
232+
.foregroundStyle(Color.white)
233+
.background {
234+
LinearGradient(gradient: Gradient(colors: [Asset.Colors._8F57DEProfileIcon.swiftUIColor, Asset.Colors._2D0369ProfileIcon.swiftUIColor,]), startPoint: .top, endPoint: .bottom)
235+
}
236+
.frame(width: 34, height: 34)
237+
.clipShape(Circle())
238+
}
239+
240+
Rectangle()
241+
.fill(Asset.Colors.ddddddLine.swiftUIColor)
242+
.frame(width: 1, height: 24)
243+
.cornerRadius(0.5)
244+
245+
VStack(alignment: .leading) {
246+
Text(L10n.Localizable.workspace)
247+
.font(FontFamily.Lato.regular.swiftUIFont(size: 12))
248+
.foregroundStyle(Asset.Colors._83879BTextFiledTitle.swiftUIColor)
249+
250+
Text(selectedWorkspace?.title ?? "")
251+
.font(FontFamily.Lato.bold.swiftUIFont(size: 14))
252+
.foregroundStyle(Asset.Colors.huskyPurple.swiftUIColor)
253+
}
254+
}
255+
256+
}
257+
ToolbarItem(placement: .topBarLeading) {
258+
259+
229260
}
230261

231262
ToolbarItem(placement: .navigationBarTrailing) {
@@ -243,8 +274,6 @@ struct MapView: View {
243274
viewModel.checkSyncStatus()
244275
}
245276
})
246-
.foregroundStyle(Asset.Colors.huskyPurple.swiftUIColor)
247-
.frame(width: 30, height: 30)
248277
}
249278

250279
ToolbarItem(placement: .navigationBarTrailing) {
@@ -254,19 +283,25 @@ struct MapView: View {
254283
viewModel.showSatellitePicker = true
255284
}) {
256285
Image(systemName: "square.2.layers.3d.bottom.filled")
286+
.padding(8)
257287
.foregroundStyle(Asset.Colors.huskyPurple.swiftUIColor)
288+
.background(Asset.Colors.e7E3EELightPurpuleBg.swiftUIColor)
289+
.frame(width: 34, height: 34)
290+
.clipShape(Circle())
258291
}
259-
.frame(width: 30, height: 30)
260292
}
261293
ToolbarItem(placement: .navigationBarTrailing) {
262294
Button(action: {
263295
print("Settings icon tapped")
264296
showUserSettingsSheet = true
265297
}) {
266298
Image(systemName: "gear")
299+
.padding(8)
267300
.foregroundStyle(Asset.Colors.huskyPurple.swiftUIColor)
301+
.background(Asset.Colors.e7E3EELightPurpuleBg.swiftUIColor)
302+
.frame(width: 34, height: 34)
303+
.clipShape(Circle())
268304
}
269-
.frame(width: 30, height: 30)
270305
}
271306
}
272307
.toolbarBackground(.visible, for: .navigationBar)

GoInfoGame/GoInfoGame/UI/Map/QuestSyncButton.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ struct QuestSyncButton: View {
1818
var body: some View {
1919
Button(action: action) {
2020
ZStack(alignment: .topTrailing) {
21-
Image("sync")
21+
Asset.sync.swiftUIImage
2222
.rotationEffect(.degrees(rotationAngle))
23+
.padding(8)
24+
.background(Asset.Colors.e7E3EELightPurpuleBg.swiftUIColor)
25+
.foregroundStyle(Asset.Colors.huskyPurple.swiftUIColor)
26+
.frame(width: 34, height: 34)
27+
.clipShape(Circle())
2328
.animation(isRotating ? .linear(duration: 1).repeatForever(autoreverses: false) : .default , value: isRotating)
2429
.onChange(of: isSyncing) { newValue in
2530
if newValue {

GoInfoGame/GoInfoGame/UI/Utils/FloatingActionButtonStack.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ struct FloatingActionButtonStack: View {
2222
}) {
2323
Image(systemName: "slider.horizontal.3")
2424
.font(.system(size: 25))
25-
.foregroundColor(.white)
26-
.frame(width: 40, height: 40)
27-
.background(Asset.Colors.huskyPurple.swiftUIColor)
28-
.cornerRadius(30)
25+
.foregroundColor(Asset.Colors.huskyPurple.swiftUIColor)
26+
.frame(width: 54, height: 54)
27+
.background(.white)
28+
.clipShape(Circle())
2929
.shadow(radius: 10)
3030

3131
}

GoInfoGame/GoInfoGame/UI/Utils/UndoButton.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,15 @@ struct UndoButton: View {
4343
}) {
4444
ZStack {
4545
Circle()
46-
.fill(Asset.Colors.huskyPurple.swiftUIColor)
47-
.frame(width: 40, height: 40)
46+
.fill(.white)
47+
.frame(width: 54, height: 54)
4848
.shadow(radius: 5)
4949

5050
Image(systemName: "arrow.uturn.backward")
5151
.font(.system(size: 28))
52-
.foregroundColor(.white)
52+
.foregroundColor(Asset.Colors.huskyPurple.swiftUIColor)
5353
}
54+
.shadow(radius: 10)
5455
}
5556
.padding(.leading, 12)
5657
.padding(.top, 20)

GoInfoGame/GoInfoGame/en.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,4 @@
106106
"App Name" = "AVIV ScoutRoute";
107107
"Preferences" = "Preferences";
108108
"My Profile" = "My Profile";
109+
"Workspace" = "Workspace";

0 commit comments

Comments
 (0)