From e42c966110ef0409ffd289b10058066af26ed7e0 Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Mon, 22 May 2023 15:13:18 -0400 Subject: android: Settings UI tweaks New spacing and fonts for list items --- .../features/settings/ui/SettingsFragmentPresenter.kt | 2 +- .../app/src/main/res/layout/activity_settings.xml | 1 + .../app/src/main/res/layout/list_item_setting.xml | 14 ++++++-------- .../src/main/res/layout/list_item_setting_switch.xml | 19 ++++++++++--------- .../src/main/res/layout/list_item_settings_header.xml | 10 +++++----- src/android/app/src/main/res/values/strings.xml | 1 + 6 files changed, 24 insertions(+), 23 deletions(-) (limited to 'src') diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt index bd5bfca5e..5b4272a74 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt @@ -77,7 +77,7 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView) } private fun addConfigSettings(sl: ArrayList) { - settingsActivity.setToolbarTitle(settingsActivity.getString(R.string.preferences_settings)) + settingsActivity.setToolbarTitle(settingsActivity.getString(R.string.preferences_advanced_settings)) sl.apply { add( SubmenuSetting( diff --git a/src/android/app/src/main/res/layout/activity_settings.xml b/src/android/app/src/main/res/layout/activity_settings.xml index 6bb9ee9d2..14ae83b04 100644 --- a/src/android/app/src/main/res/layout/activity_settings.xml +++ b/src/android/app/src/main/res/layout/activity_settings.xml @@ -35,6 +35,7 @@ android:id="@+id/frame_content" android:layout_width="match_parent" android:layout_height="match_parent" + android:layout_marginHorizontal="12dp" app:layout_behavior="@string/appbar_scrolling_view_behavior" /> + android:padding="@dimen/spacing_large"> - + android:minHeight="72dp" + android:paddingStart="@dimen/spacing_large" + android:paddingEnd="24dp" + android:paddingVertical="@dimen/spacing_large"> + android:layout_centerVertical="true" /> - - diff --git a/src/android/app/src/main/res/layout/list_item_settings_header.xml b/src/android/app/src/main/res/layout/list_item_settings_header.xml index 9debb7ba5..abd24df6f 100644 --- a/src/android/app/src/main/res/layout/list_item_settings_header.xml +++ b/src/android/app/src/main/res/layout/list_item_settings_header.xml @@ -2,16 +2,16 @@ + android:layout_height="48dp" + android:paddingVertical="4dp" + android:paddingHorizontal="@dimen/spacing_large"> - Installing driver… + Advanced Settings Settings General System -- cgit v1.2.3