diff --git a/Lotus/Screens/SettingsScreen.swift b/Lotus/Screens/SettingsScreen.swift index b303b02..4aad7ae 100644 --- a/Lotus/Screens/SettingsScreen.swift +++ b/Lotus/Screens/SettingsScreen.swift @@ -25,11 +25,15 @@ struct SettingsScreen: View { } Section { + HStack { + Text("settings_SectionEditTypes_exampleID") + Text("settings_SectionEditTypes_exampleName") + Spacer() + Text("settings_SectionEditTypes_exampleCount") + }.foregroundColor(.gray) ForEach(vm.allTypes) { type in HStack { - Text(String(type.rawValue)).foregroundColor(.gray) - Image(systemName: "heart.rectangle.fill") - .foregroundColor(Color(hexString: type.color)) + typeView(type) Text(type.name) Spacer() Text(String(vm.getTilesCountForType(type: type))) @@ -74,4 +78,14 @@ struct SettingsScreen: View { EditEntrysScreen() } } + + func typeView(_ entry: Category) -> some View { + ZStack { + RoundedRectangle(cornerRadius: 8) + .fill(Color(hexString: entry.color)) + .frame(width: 35, height: 25) + Text(String(entry.rawValue)) + .frame(width: 35, height: 25) + } + } } diff --git a/Lotus/de.lproj/Localizable.strings b/Lotus/de.lproj/Localizable.strings index dd4b9b0..a8d58d4 100644 --- a/Lotus/de.lproj/Localizable.strings +++ b/Lotus/de.lproj/Localizable.strings @@ -10,6 +10,8 @@ "addEntry_type"="Typ auswählen"; "addEntry_addButtonTitle"="Hinzufügen"; +"settings_SectionEditTypes_exampleCount"="Anzahl"; +"settings_SectionEditTypes_exampleName"="Name"; "settings_SectionEditTypes_exampleID"="Typ ID"; "settings_SectionEditTypes_exampleDate"="Datum"; "settings_SectionEditTypes_title"="Typ bearbeiten"; diff --git a/Lotus/en.lproj/Localizable.strings b/Lotus/en.lproj/Localizable.strings index bcab87c..5054659 100644 --- a/Lotus/en.lproj/Localizable.strings +++ b/Lotus/en.lproj/Localizable.strings @@ -10,6 +10,8 @@ "addEntry_type"="Choose a type"; "addEntry_addButtonTitle"="Add"; +"settings_SectionEditTypes_exampleCount"="Count"; +"settings_SectionEditTypes_exampleName"="Name"; "settings_SectionEditTypes_exampleID"="Type ID"; "settings_SectionEditTypes_exampleDate"="Date"; "settings_SectionEditTypes_title"="Edit Type";