Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions App/Shared/Resources/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
"Open Settings" = "Einstellungen öffnen";
"Log your weight" = "Gewicht eintragen";
"Open LogWeight to record today's weight." = "Öffne LogWeight, um dein heutiges Gewicht zu erfassen.";
"Display" = "Anzeige";
"Show trend arrow" = "Trendpfeil anzeigen";
"Trending up" = "Steigender Trend";
"Trending down" = "Fallender Trend";
"Weight stable" = "Gewicht stabil";
"Cannot Delete Entry" = "Eintrag kann nicht gelöscht werden";
"OK" = "OK";
"Delete" = "Löschen";
Expand Down
5 changes: 0 additions & 5 deletions App/Shared/Resources/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
"Open Settings" = "Open Settings";
"Log your weight" = "Log your weight";
"Open LogWeight to record today's weight." = "Open LogWeight to record today's weight.";
"Display" = "Display";
"Show trend arrow" = "Show trend arrow";
"Trending up" = "Trending up";
"Trending down" = "Trending down";
"Weight stable" = "Weight stable";
"Cannot Delete Entry" = "Cannot Delete Entry";
"OK" = "OK";
"Delete" = "Delete";
Expand Down
5 changes: 0 additions & 5 deletions App/Shared/Resources/es.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
"Open Settings" = "Abrir Ajustes";
"Log your weight" = "Registra tu peso";
"Open LogWeight to record today's weight." = "Abre LogWeight para registrar el peso de hoy.";
"Display" = "Visualización";
"Show trend arrow" = "Mostrar flecha de tendencia";
"Trending up" = "Tendencia al alza";
"Trending down" = "Tendencia a la baja";
"Weight stable" = "Peso estable";
"Cannot Delete Entry" = "No se puede eliminar el registro";
"OK" = "OK";
"Delete" = "Eliminar";
Expand Down
5 changes: 0 additions & 5 deletions App/Shared/Resources/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
"Open Settings" = "Ouvrir Réglages";
"Log your weight" = "Enregistrez votre poids";
"Open LogWeight to record today's weight." = "Ouvrez LogWeight pour enregistrer le poids du jour.";
"Display" = "Affichage";
"Show trend arrow" = "Afficher la flèche de tendance";
"Trending up" = "Tendance à la hausse";
"Trending down" = "Tendance à la baisse";
"Weight stable" = "Poids stable";
"Cannot Delete Entry" = "Impossible de supprimer l’entrée";
"OK" = "OK";
"Delete" = "Supprimer";
Expand Down
5 changes: 0 additions & 5 deletions App/Shared/Resources/it.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
"Open Settings" = "Apri Impostazioni";
"Log your weight" = "Registra il peso";
"Open LogWeight to record today's weight." = "Apri LogWeight per registrare il peso di oggi.";
"Display" = "Visualizzazione";
"Show trend arrow" = "Mostra freccia di tendenza";
"Trending up" = "In aumento";
"Trending down" = "In diminuzione";
"Weight stable" = "Peso stabile";
"Cannot Delete Entry" = "Impossibile eliminare la voce";
"OK" = "OK";
"Delete" = "Elimina";
Expand Down
5 changes: 0 additions & 5 deletions App/Shared/Resources/ja.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
"Open Settings" = "設定を開く";
"Log your weight" = "体重を記録しましょう";
"Open LogWeight to record today's weight." = "LogWeightを開いて、今日の体重を記録してください。";
"Display" = "表示";
"Show trend arrow" = "トレンド矢印を表示";
"Trending up" = "上昇傾向";
"Trending down" = "下降傾向";
"Weight stable" = "体重は安定";
"Cannot Delete Entry" = "記録を削除できません";
"OK" = "OK";
"Delete" = "削除";
Expand Down
5 changes: 0 additions & 5 deletions App/Shared/Resources/ko.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
"Open Settings" = "설정 열기";
"Log your weight" = "체중을 기록하세요";
"Open LogWeight to record today's weight." = "LogWeight를 열어 오늘의 체중을 기록하세요.";
"Display" = "표시";
"Show trend arrow" = "추세 화살표 표시";
"Trending up" = "상승 추세";
"Trending down" = "하락 추세";
"Weight stable" = "체중 안정";
"Cannot Delete Entry" = "기록을 삭제할 수 없음";
"OK" = "확인";
"Delete" = "삭제";
Expand Down
5 changes: 0 additions & 5 deletions App/Shared/Resources/nl.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
"Open Settings" = "Open Instellingen";
"Log your weight" = "Log je gewicht";
"Open LogWeight to record today's weight." = "Open LogWeight om het gewicht van vandaag vast te leggen.";
"Display" = "Weergave";
"Show trend arrow" = "Trendpijl tonen";
"Trending up" = "Stijgende trend";
"Trending down" = "Dalende trend";
"Weight stable" = "Gewicht stabiel";
"Cannot Delete Entry" = "Invoer kan niet worden verwijderd";
"OK" = "OK";
"Delete" = "Verwijderen";
Expand Down
5 changes: 0 additions & 5 deletions App/Shared/Resources/pt-BR.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
"Open Settings" = "Abrir Ajustes";
"Log your weight" = "Registre seu peso";
"Open LogWeight to record today's weight." = "Abra o LogWeight para registrar o peso de hoje.";
"Display" = "Exibição";
"Show trend arrow" = "Mostrar seta de tendência";
"Trending up" = "Em alta";
"Trending down" = "Em queda";
"Weight stable" = "Peso estável";
"Cannot Delete Entry" = "Não é possível excluir o registro";
"OK" = "OK";
"Delete" = "Excluir";
Expand Down
5 changes: 0 additions & 5 deletions App/Shared/Resources/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
"Open Settings" = "打开设置";
"Log your weight" = "记录体重";
"Open LogWeight to record today's weight." = "打开 LogWeight 记录今日体重。";
"Display" = "显示";
"Show trend arrow" = "显示趋势箭头";
"Trending up" = "上升趋势";
"Trending down" = "下降趋势";
"Weight stable" = "体重稳定";
"Cannot Delete Entry" = "无法删除记录";
"OK" = "好";
"Delete" = "删除";
Expand Down
5 changes: 0 additions & 5 deletions App/Shared/Resources/zh-Hant.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
"Open Settings" = "打開設定";
"Log your weight" = "記錄體重";
"Open LogWeight to record today's weight." = "打開 LogWeight 記錄今日體重。";
"Display" = "顯示";
"Show trend arrow" = "顯示趨勢箭頭";
"Trending up" = "上升趨勢";
"Trending down" = "下降趨勢";
"Weight stable" = "體重穩定";
"Cannot Delete Entry" = "無法刪除記錄";
"OK" = "好";
"Delete" = "刪除";
Expand Down
10 changes: 0 additions & 10 deletions App/Shared/Views/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ struct SettingsView: View {
@AppStorage(SettingsKey.unitPreference) private var unitPreferenceRaw: String = WeightUnit.kilograms.rawValue
@AppStorage(SettingsKey.defaultEntryMode) private var defaultEntryModeRaw: String = DefaultEntryMode.lastSaved.rawValue
@AppStorage(SettingsKey.hapticsEnabled) private var hapticsEnabled: Bool = true
@AppStorage(SettingsKey.trendArrowEnabled) private var trendArrowEnabled: Bool = true
@AppStorage(SettingsKey.reminderEnabled) private var reminderEnabled: Bool = false
@AppStorage(SettingsKey.reminderHour) private var reminderHour: Int = DailyReminderSettings.defaultHour
@AppStorage(SettingsKey.reminderMinute) private var reminderMinute: Int = DailyReminderSettings.defaultMinute
Expand Down Expand Up @@ -48,11 +47,6 @@ struct SettingsView: View {
.accessibilityIdentifier("settings.haptics")
}

Section("Display") {
Toggle("Show trend arrow", isOn: $trendArrowEnabled)
.accessibilityIdentifier("settings.trendArrow")
}

#if os(iOS)
Section("Reminders") {
Toggle("Daily reminder", isOn: reminderEnabledBinding)
Expand Down Expand Up @@ -126,10 +120,6 @@ struct SettingsView: View {
WeightDisplayPreferences.mirrorUnitPreferenceToAppGroup()
WidgetTimelineRefresh.reloadEntryAndChartWidgets()
}
.onChange(of: trendArrowEnabled) { _, _ in
TrendArrowPreferences.mirrorToAppGroup()
WidgetTimelineRefresh.reloadEntryAndChartWidgets()
}
#if os(iOS)
.task {
reminderAuthStatus = await reminderScheduler.authorizationStatus()
Expand Down
61 changes: 0 additions & 61 deletions App/Shared/Widget/WeightTrendArrow.swift

This file was deleted.

3 changes: 1 addition & 2 deletions App/Shared/Widget/WidgetTimelineRefresh.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ enum WidgetTimelineRefresh {

static func syncEntryStoreAndReloadWidgets(store: HealthKitStore) async {
#if os(iOS)
let weights = (try? await store.recentWeights(limit: WeightTrendCache.entryWidgetSampleLimit)) ?? []
let weights = (try? await store.recentWeights(limit: 1)) ?? []
SharedWeightEntryStore.syncFromLatestWeight(weights.first)
WeightTrendCache.update(from: weights)
reloadEntryAndChartWidgets()
#endif
}
Expand Down
9 changes: 0 additions & 9 deletions App/Watch/Views/WatchSettingsView.swift
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import SwiftUI
import WidgetKit
import LogWeightCore

/// Minimal watch settings (unit + haptics). Full settings remain on iPhone.
struct WatchSettingsView: View {

@AppStorage(SettingsKey.unitPreference) private var unitPreferenceRaw: String = WeightUnit.kilograms.rawValue
Comment thread
Juuro marked this conversation as resolved.
@AppStorage(SettingsKey.hapticsEnabled) private var hapticsEnabled: Bool = true
@AppStorage(SettingsKey.trendArrowEnabled) private var trendArrowEnabled: Bool = true
@Environment(\.dismiss) private var dismiss

var body: some View {
Expand All @@ -24,9 +22,6 @@ struct WatchSettingsView: View {
Section("Feedback") {
Toggle("Haptics on save", isOn: $hapticsEnabled)
}
Section("Display") {
Toggle("Show trend arrow", isOn: $trendArrowEnabled)
}
Section("About") {
Text("Made with 🩷🩵 by Juuronina GbR.")
.font(.footnote)
Expand All @@ -41,10 +36,6 @@ struct WatchSettingsView: View {
Button("Done") { dismiss() }
}
}
.onChange(of: trendArrowEnabled) { _, _ in
TrendArrowPreferences.mirrorToAppGroup()
WidgetCenter.shared.reloadTimelines(ofKind: LogWeightWidgetConstants.watchKind)
}
}
}
}
Expand Down

This file was deleted.

Loading
Loading