diff options
| author | 2023-05-11 17:51:27 -0400 | |
|---|---|---|
| committer | 2023-06-03 00:06:01 -0700 | |
| commit | 5213701e18128b6fa79037f8dc1d6324d38e09b2 (patch) | |
| tree | 577ae365399d6a9c6a450a45f1483c81f0f636a9 /src/android | |
| parent | android: Check if cached games are valid (diff) | |
| download | yuzu-5213701e18128b6fa79037f8dc1d6324d38e09b2.tar.gz yuzu-5213701e18128b6fa79037f8dc1d6324d38e09b2.tar.xz yuzu-5213701e18128b6fa79037f8dc1d6324d38e09b2.zip | |
android: Move theme options out of advanced settings
Diffstat (limited to 'src/android')
4 files changed, 17 insertions, 9 deletions
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 c2eb63dac..f6ab92294 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 | |||
| @@ -109,14 +109,6 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView) | |||
| 109 | Settings.SECTION_AUDIO | 109 | Settings.SECTION_AUDIO |
| 110 | ) | 110 | ) |
| 111 | ) | 111 | ) |
| 112 | add( | ||
| 113 | SubmenuSetting( | ||
| 114 | null, | ||
| 115 | R.string.preferences_theme, | ||
| 116 | 0, | ||
| 117 | Settings.SECTION_THEME | ||
| 118 | ) | ||
| 119 | ) | ||
| 120 | } | 112 | } |
| 121 | } | 113 | } |
| 122 | 114 | ||
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt index 7507d4635..09628634d 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt | |||
| @@ -34,6 +34,7 @@ import org.yuzu.yuzu_emu.R | |||
| 34 | import org.yuzu.yuzu_emu.adapters.HomeSettingAdapter | 34 | import org.yuzu.yuzu_emu.adapters.HomeSettingAdapter |
| 35 | import org.yuzu.yuzu_emu.databinding.FragmentHomeSettingsBinding | 35 | import org.yuzu.yuzu_emu.databinding.FragmentHomeSettingsBinding |
| 36 | import org.yuzu.yuzu_emu.features.DocumentProvider | 36 | import org.yuzu.yuzu_emu.features.DocumentProvider |
| 37 | import org.yuzu.yuzu_emu.features.settings.model.Settings | ||
| 37 | import org.yuzu.yuzu_emu.features.settings.ui.SettingsActivity | 38 | import org.yuzu.yuzu_emu.features.settings.ui.SettingsActivity |
| 38 | import org.yuzu.yuzu_emu.features.settings.utils.SettingsFile | 39 | import org.yuzu.yuzu_emu.features.settings.utils.SettingsFile |
| 39 | import org.yuzu.yuzu_emu.model.HomeSetting | 40 | import org.yuzu.yuzu_emu.model.HomeSetting |
| @@ -78,6 +79,11 @@ class HomeSettingsFragment : Fragment() { | |||
| 78 | R.drawable.ic_folder_open | 79 | R.drawable.ic_folder_open |
| 79 | ) { openFileManager() }, | 80 | ) { openFileManager() }, |
| 80 | HomeSetting( | 81 | HomeSetting( |
| 82 | R.string.preferences_theme, | ||
| 83 | R.string.theme_and_color_description, | ||
| 84 | R.drawable.ic_palette | ||
| 85 | ) { SettingsActivity.launch(requireContext(), Settings.SECTION_THEME, "") }, | ||
| 86 | HomeSetting( | ||
| 81 | R.string.install_gpu_driver, | 87 | R.string.install_gpu_driver, |
| 82 | R.string.install_gpu_driver_description, | 88 | R.string.install_gpu_driver_description, |
| 83 | R.drawable.ic_exit | 89 | R.drawable.ic_exit |
diff --git a/src/android/app/src/main/res/drawable/ic_palette.xml b/src/android/app/src/main/res/drawable/ic_palette.xml new file mode 100644 index 000000000..43daec1ff --- /dev/null +++ b/src/android/app/src/main/res/drawable/ic_palette.xml | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 2 | android:width="24dp" | ||
| 3 | android:height="24dp" | ||
| 4 | android:viewportWidth="24" | ||
| 5 | android:viewportHeight="24"> | ||
| 6 | <path | ||
| 7 | android:fillColor="?attr/colorControlNormal" | ||
| 8 | android:pathData="M12,2C6.49,2 2,6.49 2,12s4.49,10 10,10c1.38,0 2.5,-1.12 2.5,-2.5c0,-0.61 -0.23,-1.2 -0.64,-1.67c-0.08,-0.1 -0.13,-0.21 -0.13,-0.33c0,-0.28 0.22,-0.5 0.5,-0.5H16c3.31,0 6,-2.69 6,-6C22,6.04 17.51,2 12,2zM17.5,13c-0.83,0 -1.5,-0.67 -1.5,-1.5c0,-0.83 0.67,-1.5 1.5,-1.5s1.5,0.67 1.5,1.5C19,12.33 18.33,13 17.5,13zM14.5,9C13.67,9 13,8.33 13,7.5C13,6.67 13.67,6 14.5,6S16,6.67 16,7.5C16,8.33 15.33,9 14.5,9zM5,11.5C5,10.67 5.67,10 6.5,10S8,10.67 8,11.5C8,12.33 7.33,13 6.5,13S5,12.33 5,11.5zM11,7.5C11,8.33 10.33,9 9.5,9S8,8.33 8,7.5C8,6.67 8.67,6 9.5,6S11,6.67 11,7.5z" /> | ||
| 9 | </vector> | ||
diff --git a/src/android/app/src/main/res/values/strings.xml b/src/android/app/src/main/res/values/strings.xml index 8ee067ffd..c5f4483d1 100644 --- a/src/android/app/src/main/res/values/strings.xml +++ b/src/android/app/src/main/res/values/strings.xml | |||
| @@ -69,6 +69,7 @@ | |||
| 69 | <string name="search_homebrew">Homebrew</string> | 69 | <string name="search_homebrew">Homebrew</string> |
| 70 | <string name="open_user_folder">Open yuzu folder</string> | 70 | <string name="open_user_folder">Open yuzu folder</string> |
| 71 | <string name="open_user_folder_description">Manage yuzu\'s internal files</string> | 71 | <string name="open_user_folder_description">Manage yuzu\'s internal files</string> |
| 72 | <string name="theme_and_color_description">Modify the look of the app</string> | ||
| 72 | <string name="no_file_manager">No file manager found</string> | 73 | <string name="no_file_manager">No file manager found</string> |
| 73 | <string name="notification_no_directory_link">Couldn\'t open yuzu directory</string> | 74 | <string name="notification_no_directory_link">Couldn\'t open yuzu directory</string> |
| 74 | <string name="notification_no_directory_link_description">Please locate the user folder with the file manager\'s side panel manually.</string> | 75 | <string name="notification_no_directory_link_description">Please locate the user folder with the file manager\'s side panel manually.</string> |
| @@ -158,7 +159,7 @@ | |||
| 158 | <string name="preferences_system">System</string> | 159 | <string name="preferences_system">System</string> |
| 159 | <string name="preferences_graphics">Graphics</string> | 160 | <string name="preferences_graphics">Graphics</string> |
| 160 | <string name="preferences_audio">Audio</string> | 161 | <string name="preferences_audio">Audio</string> |
| 161 | <string name="preferences_theme">Theme and Color</string> | 162 | <string name="preferences_theme">Theme and color</string> |
| 162 | 163 | ||
| 163 | <!-- ROM loading errors --> | 164 | <!-- ROM loading errors --> |
| 164 | <string name="loader_error_encrypted">Your ROM is encrypted</string> | 165 | <string name="loader_error_encrypted">Your ROM is encrypted</string> |