main
Laurent 3 years ago
parent f0850bea64
commit 29d310bb41
  1. 2
      LeCountdown/Utils/Tip.swift
  2. 2
      LeCountdown/Views/PresetsView.swift
  3. 10
      LeCountdown/Views/StartView.swift
  4. 1
      LeCountdown/en.lproj/Localizable.strings
  5. 4
      LeCountdown/fr.lproj/Localizable.strings

@ -15,7 +15,7 @@ enum Tip: Int, CaseIterable, Identifiable {
var localizedString: String { var localizedString: String {
switch self { switch self {
case .widget: return NSLocalizedString("You can add widget for your timers and countdowns by modifying your home or lock screen", comment: "") case .widget: return NSLocalizedString("Widget Tip", comment: "")
// case .siri: return NSLocalizedString("You can ask Siri to create and launch countdowns and stopwatches", comment: "") // case .siri: return NSLocalizedString("You can ask Siri to create and launch countdowns and stopwatches", comment: "")
} }
} }

@ -211,7 +211,7 @@ enum PresetSection: Int, Identifiable, CaseIterable {
case .tea: return [.greenTea, .blackTea] case .tea: return [.greenTea, .blackTea]
// case .workout: return [.runningSplits] // case .workout: return [.runningSplits]
case .mindfullness: return [.nap, .meditation, .writing, .reading] case .mindfullness: return [.nap, .meditation, .writing, .reading]
case .move: return [.workout, .stretching, .toothbrushing, .cleaning] case .move: return [.workout, .stretching, .toothbrushing]
} }
} }

@ -18,6 +18,13 @@ struct StartView: View {
var body: some View { var body: some View {
VStack(spacing: 0.5) { VStack(spacing: 0.5) {
Text("Select some of the predefined timers and customize them, or create your own")
.font(.callout)
.frame(maxWidth: .infinity)
.padding()
.background(Color.accentColor)
.foregroundColor(.white)
PresetSelectionView(model: self.model).monospaced() PresetSelectionView(model: self.model).monospaced()
Button { Button {
@ -45,7 +52,7 @@ struct StartView: View {
.background(.white) .background(.white)
} }
}.background(.gray) }
} }
@ -86,7 +93,6 @@ class Customization: ObservableObject {
func toggleAdd() { func toggleAdd() {
self.added = !self.added self.added = !self.added
Logger.log("ADDDED = \(self.added)")
} }
func createTimer() -> AbstractTimer { func createTimer() -> AbstractTimer {

@ -1,2 +1,3 @@
"You'll find your timers here. Start by creating them on the left screen" = "You'll find your timers here.\nStart by creating using the top right button!"; "You'll find your timers here. Start by creating them on the left screen" = "You'll find your timers here.\nStart by creating using the top right button!";
"Disclaimer" = "This is a beta version of Enchant.\n\nPlease don't depend on the app for critical events :)\n\n If you have some feedback or an issue, please tell me about it through the settings or within Testflight!"; "Disclaimer" = "This is a beta version of Enchant.\n\nPlease don't depend on the app for critical events :)\n\n If you have some feedback or an issue, please tell me about it through the settings or within Testflight!";
"Widget Tip" = "Quickly launch your timers with widget. You can add them by modifying your home or lock screen.";

@ -220,7 +220,7 @@
/* No comment provided by engineer. */ /* No comment provided by engineer. */
"Yes" = "Oui"; "Yes" = "Oui";
"You can add widget for your timers and countdowns by modifying your home or lock screen" = "Lancez rapidement vos minuteurs avec les widgets ! Ajoutez les à votre écran verrouillé ou votre page d'accueil"; "Widget Tip" = "Lancez rapidement vos minuteurs avec les widgets ! Ajoutez les à votre écran verrouillé ou votre page d'accueil.";
/* No comment provided by engineer. */ /* No comment provided by engineer. */
"You can ask Siri to create and launch countdowns and stopwatches" = "Vous pouvez demander à Siri de vous lancer les minuteurs et les chronos"; "You can ask Siri to create and launch countdowns and stopwatches" = "Vous pouvez demander à Siri de vous lancer les minuteurs et les chronos";
@ -276,3 +276,5 @@
"Cleaning" = "Nettoyage"; "Cleaning" = "Nettoyage";
"Done" = "OK"; "Done" = "OK";
"Create your own" = "Créez les vôtres"; "Create your own" = "Créez les vôtres";
"Select some of the predefined timers and customize them, or create your own" = "Sélectionnez et personnalisez les minuteurs, ou créez les vôtres";
"Learn more" = "En savoir plus...";

Loading…
Cancel
Save