Skip to content

Commit

Permalink
Update icons
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Jun 8, 2023
1 parent 5ac3e2f commit 92f38cb
Show file tree
Hide file tree
Showing 29 changed files with 169 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .swiftformat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
--swiftversion 5.8
--swiftversion 5.7
--disable preferKeyPath
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 5.8
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ public struct AttachmentView: View {
SectionView {
VStack(spacing: .zero) {
Row("Add investment") {
Icon(.paperclip)
IconDeprecated(.paperclip)
.iconColor(.onSurfaceHighEmphasis)
}

Row("Add link") {
Icon(.link)
IconDeprecated(.link)
.iconColor(.onSurfaceHighEmphasis)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public struct CreateEventView: View {
Row(viewModel.repitRule.title, subtitle: repeatSubtitleText) {
viewModel.present(.repeat)
} leading: {
Icon(.refresh)
IconDeprecated(.refresh)
.iconColor(.onSurfaceHighEmphasis)
}
.rowClearButton(style: .onSurface) {
Expand All @@ -213,7 +213,7 @@ public struct CreateEventView: View {
Row(email) {
viewModel.present(.invites)
} leading: {
Icon(.user)
IconDeprecated(.user)
.iconColor(.onSurfaceHighEmphasis)
}
.rowClearButton(style: .onSurface) {
Expand Down Expand Up @@ -247,7 +247,7 @@ public struct CreateEventView: View {
Row(alarm.title) {
viewModel.present(.alarm)
} leading: {
Icon(.bell)
IconDeprecated(.bell)
.iconColor(.onSurfaceHighEmphasis)
}
.rowClearButton(style: .onSurface) {
Expand Down Expand Up @@ -281,7 +281,7 @@ public struct CreateEventView: View {
Row(locationName) {
viewModel.present(.location)
} leading: {
Icon(.mapPin)
IconDeprecated(.mapPin)
.iconColor(.onSurfaceHighEmphasis)
}
.rowClearButton(style: .onSurface) {
Expand Down Expand Up @@ -426,33 +426,33 @@ public struct CreateEventView: View {
if viewModel.isFetchUpdatePositon {
ProgressView()
} else {
Icon(.mapPin)
IconDeprecated(.mapPin)
// Icon.Solid.NavigationandTravel.location
// .renderingMode(.template)
}
}
.disabled(viewModel.isFetchUpdatePositon)

Button { viewModel.present(.alarm) } label: {
Icon(.bell)
IconDeprecated(.bell)
// Icon.Solid.UserInterface.bell
// .renderingMode(.template)
}

Button { viewModel.present(.repeat) } label: {
Icon(.refresh)
IconDeprecated(.refresh)
}

/*
Button { viewModel.present(.attachment) } label: {
Icon(.moreHorizontal)
IconDeprecated(.moreHorizontal)
}
*/

Spacer()

Button { viewModel.present(.invites) } label: {
Icon(.userPlus)
IconDeprecated(.userPlus)
}

// Icon.Solid.UserInterface.plusCrFr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

import Contacts
import EventKit
import Factory
import OversizeContactsService
import OversizeCore
import OversizeServices
import SwiftUI
import Factory

@MainActor
class AttendeesViewModel: ObservableObject {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
//

import Contacts
import Factory
import OversizeContactsService
import OversizeCore
import OversizeServices
import SwiftUI
import Factory

@MainActor
public class ContactsListsViewModel: ObservableObject {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
//

import Contacts
import Factory
import OversizeContactsService
import OversizeCore
import OversizeServices
import SwiftUI
import Factory

@MainActor
class EmailPickerViewModel: ObservableObject {
Expand Down
8 changes: 4 additions & 4 deletions Sources/OversizeKit/LauncherKit/RateAppScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// RateAppScreen.swift
//

import Factory
import OversizeResources
import OversizeServices
import Factory
import OversizeUI
import SwiftUI

Expand Down Expand Up @@ -36,7 +36,7 @@ struct RateAppScreen: View {
if let reviewUrl = Info.url.appStoreReview {
HStack(spacing: .large) {
Link(destination: reviewUrl) {
Icon(.thumbsUp, color: .onPrimaryHighEmphasis)
IconDeprecated(.thumbsUp, color: .onPrimaryHighEmphasis)
}
.buttonStyle(.primary(infinityWidth: false))
.accent()
Expand All @@ -49,7 +49,7 @@ struct RateAppScreen: View {
reviewService.estimate(goodRating: false)
dismiss()
} label: {
Icon(.thumbsDown, color: .onSurfaceHighEmphasis)
IconDeprecated(.thumbsDown, color: .onSurfaceHighEmphasis)
}
.buttonStyle(.secondary(infinityWidth: false))
}
Expand All @@ -65,7 +65,7 @@ struct RateAppScreen: View {
reviewService.rewiewBunnerClosed()
dismiss()
} label: {
Icon(.xMini, color: .onSurfaceHighEmphasis)
IconDeprecated(.xMini, color: .onSurfaceHighEmphasis)
}
.buttonStyle(.tertiary(infinityWidth: false))
.controlSize(.mini)
Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeKit/LockscreenKit/LockscreenView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public struct LockscreenView: View {
} else if pinCode.isEmpty, !biometricEnabled {
EmptyView()
} else {
Icon(.delete)
IconDeprecated(.delete)
}
} // .opacity(pinCode.isEmpty && biometricEnabled ? 1 : 0)
}
Expand Down
3 changes: 1 addition & 2 deletions Sources/OversizeKit/SettingsKit/Views/About/AboutView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import OversizeComponents
import OversizeLocalizable
import OversizeResources
import OversizeServices

import OversizeUI
import SwiftUI

Expand Down Expand Up @@ -238,7 +237,7 @@ import SwiftUI
.foregroundColor(.surfaceSecondary)
.frame(width: 74, height: 74)

Icon(.externalLink)
IconDeprecated(.externalLink)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ import SwiftUI
.padding(.vertical, .medium)

if appearance == theme.appearance {
Icon(.checkCircle, color: Color.accent)
IconDeprecated(.checkCircle, color: Color.accent)
} else {
Icon(.circle, color: .onSurfaceMediumEmphasis)
IconDeprecated(.circle, color: .onSurfaceMediumEmphasis)
}
}
Spacer()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import OversizeLocalizable
import OversizeServices

import OversizeUI
import SwiftUI

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
//

import OversizeLocalizable

import OversizeUI
import SwiftUI

public struct SetPINCodeView: View {
@ObservedObject var viewModel: SetPINCodeViewModel
@EnvironmentObject private var hud: HUD
@EnvironmentObject private var hud: HUDDeprecated
@Environment(\.dismiss) var dismiss

public init(action: PINCodeAction) {
Expand All @@ -25,7 +24,7 @@ public struct SetPINCodeView: View {
Button {
dismiss()
} label: {
Icon(.xMini, color: .onSurfaceHighEmphasis)
IconDeprecated(.xMini, color: .onSurfaceHighEmphasis)
}
.buttonStyle(.secondary)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
// SecuritySettingsView.swift
//

import Factory
import OversizeLocalizable
import OversizeServices
import OversizeUI
import SwiftUI
import Factory

// swiftlint:disable line_length
#if os(iOS)
Expand Down Expand Up @@ -61,7 +61,7 @@ import Factory
})
) {
Row(biometricService.biometricType.rawValue) {
Icon(.file)
IconDeprecated(.file)
// leadingType: .systemImage(biometricImageName)
}
}
Expand All @@ -80,7 +80,7 @@ import Factory
})
) {
Row(biometricService.biometricType.rawValue) {
Icon(.lock)
IconDeprecated(.lock)
}
}.sheet(item: $isSetPINCodeSheet) { sheet in
SetPINCodeView(action: sheet)
Expand Down
11 changes: 1 addition & 10 deletions Sources/OversizeKit/SettingsKit/Views/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import SwiftUI
@Environment(\.iconStyle) var iconStyle: IconStyle
@Environment(\.theme) var theme: ThemeSettings
@StateObject var settingsService = SettingsService()
@EnvironmentObject var hudState: HUD
@EnvironmentObject var hudState: HUDDeprecated

let appSection: AppSection
let headSection: HeadSection
Expand Down Expand Up @@ -292,15 +292,6 @@ import SwiftUI
FeedbackView()
.presentationDetents([.medium])
}

//
// // Telegramm chat
// if let telegramChatUrl = AppInfo.url.appTelegramChat, let id = AppInfo.app.telegramChatID, !id.isEmpty {
// Link(destination: telegramChatUrl) {
// Row(L10n.Settings.telegramChat, leadingType: .image(chatIcon), trallingType: rowType)
// }
// .buttonStyle(.row)
// }
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ import SwiftUI
if FeatureFlags.app.sounds.valueOrFalse {
Switch(isOn: $settingsService.soundsEnabled) {
Row(L10n.Settings.sounds) {
Icon(.music)
IconDeprecated(.music)
}
}
}

if FeatureFlags.app.vibration.valueOrFalse {
Switch(isOn: $settingsService.vibrationEnabled) {
Row(L10n.Settings.vibration) {
Icon(.radio)
IconDeprecated(.radio)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import OversizeLocalizable
import OversizeServices

import OversizeUI
import SwiftUI

Expand Down Expand Up @@ -48,7 +47,7 @@ import SwiftUI
if FeatureFlags.app.сloudKit.valueOrFalse {
Switch(isOn: $settingsService.cloudKitEnabled) {
Row(L10n.Settings.iCloudSync) {
Icon(.cloud)
IconDeprecated(.cloud)
}
.premium()
.onPremiumTap()
Expand All @@ -67,7 +66,7 @@ import SwiftUI
if FeatureFlags.app.healthKit.valueOrFalse {
Switch(isOn: $settingsService.healthKitEnabled) {
Row("HealthKit synchronization", subtitle: "After switching on, data from the Health app will be downloaded") {
Icon(.heart)
IconDeprecated(.heart)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
// StoreViewModel.swift
//

import Factory
import OversizeCore
import OversizeLocalizable
import OversizeServices
import OversizeStoreService
import StoreKit
import SwiftUI
import Factory

@MainActor
class StoreViewModel: ObservableObject {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct StoreFeatureDetailView: View {
Button {
dismiss()
} label: {
Icon(.xMini, color: selection.screenURL != nil ? .onPrimaryHighEmphasis : .onSurfaceDisabled)
IconDeprecated(.xMini, color: selection.screenURL != nil ? .onPrimaryHighEmphasis : .onSurfaceDisabled)
.padding(.xxSmall)
.background {
Circle()
Expand Down
4 changes: 2 additions & 2 deletions Sources/OversizeKit/StoreKit/Views/StoreProductView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public struct StoreProductView: View {
.fill(Color.onPrimaryHighEmphasis)
.frame(width: 20, height: 20)
.overlay {
Icon(.checkMini, color: topLabelbackgroundColor)
IconDeprecated(.checkMini, color: topLabelbackgroundColor)
}
.padding(.trailing, .xxSmall)
}
Expand Down Expand Up @@ -210,7 +210,7 @@ public struct StoreProductView: View {
.fill(topLabelbackgroundColor)
.frame(width: 20, height: 20)
.overlay {
Icon(.checkMini, color: Color.onPrimaryHighEmphasis)
IconDeprecated(.checkMini, color: Color.onPrimaryHighEmphasis)
}
.padding(.top, .xxxSmall)
.padding(.trailing, .xxxSmall)
Expand Down
Loading

0 comments on commit 92f38cb

Please sign in to comment.