Skip to content

Commit

Permalink
Ticket_17 : Renamed "Appearance" section of the settings page to "Gen…
Browse files Browse the repository at this point in the history
…eral"
  • Loading branch information
hojat72elect committed Feb 16, 2023
1 parent 609998a commit 36b0a70
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ internal class SettingsUiModelMapperImpl @Inject constructor(

override fun mapToUiModels(settings: Settings): List<SettingsSectionUiModel> {
return listOf(
createAppearanceSection(settings),
createGeneralSection(settings),
createAboutSection(),
)
}

/**
* The "Appearance" section of the settings page.
* The "General" section of the settings page.
*/
private fun createAppearanceSection(settings: Settings): SettingsSectionUiModel {
private fun createGeneralSection(settings: Settings): SettingsSectionUiModel {
return SettingsSectionUiModel(
id = SettingSection.APPEARANCE.id,
title = stringProvider.getString(R.string.settings_section_appearance_title),
id = SettingSection.GENERAL.id,
title = stringProvider.getString(R.string.settings_section_general_title),
items = listOf(
SettingsSectionItemUiModel(
id = SettingItem.THEME.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ internal data class SettingsSectionItemUiModel(
)

internal enum class SettingSection(val id: Int) {
APPEARANCE(id = 1),
GENERAL(id = 1),
ABOUT(id = 2),
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-fa/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<!-- feature settings -->
<string name="settings_toolbar_title">تنظیمات</string>
<string name="settings_section_appearance_title">تنظیمات ظاهری</string>
<string name="settings_section_general_title">تنظیمات کلی</string>
<string name="settings_item_theme_title">تم</string>
<string name="settings_item_theme_option_light">روشن</string>
<string name="settings_item_theme_option_dark">تاریک</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

<!-- feature settings -->
<string name="settings_toolbar_title">Settings</string>
<string name="settings_section_appearance_title">Appearance</string>
<string name="settings_section_general_title">General</string>
<string name="settings_item_theme_title">Theme</string>
<string name="settings_item_theme_option_light">Light</string>
<string name="settings_item_theme_option_dark">Dark</string>
Expand Down

0 comments on commit 36b0a70

Please sign in to comment.