mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
android: Reorganize settings tab
This commit is contained in:
parent
bf16289d77
commit
2b6edd3efd
@ -84,28 +84,6 @@ class HomeSettingsFragment : Fragment() {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
add(
|
|
||||||
HomeSetting(
|
|
||||||
R.string.open_user_folder,
|
|
||||||
R.string.open_user_folder_description,
|
|
||||||
R.drawable.ic_folder_open,
|
|
||||||
{ openFileManager() }
|
|
||||||
)
|
|
||||||
)
|
|
||||||
add(
|
|
||||||
HomeSetting(
|
|
||||||
R.string.preferences_theme,
|
|
||||||
R.string.theme_and_color_description,
|
|
||||||
R.drawable.ic_palette,
|
|
||||||
{
|
|
||||||
val action = HomeNavigationDirections.actionGlobalSettingsActivity(
|
|
||||||
null,
|
|
||||||
Settings.MenuTag.SECTION_THEME
|
|
||||||
)
|
|
||||||
binding.root.findNavController().navigate(action)
|
|
||||||
}
|
|
||||||
)
|
|
||||||
)
|
|
||||||
add(
|
add(
|
||||||
HomeSetting(
|
HomeSetting(
|
||||||
R.string.gpu_driver_manager,
|
R.string.gpu_driver_manager,
|
||||||
@ -121,17 +99,6 @@ class HomeSettingsFragment : Fragment() {
|
|||||||
driverViewModel.selectedDriverMetadata
|
driverViewModel.selectedDriverMetadata
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
add(
|
|
||||||
HomeSetting(
|
|
||||||
R.string.manage_yuzu_data,
|
|
||||||
R.string.manage_yuzu_data_description,
|
|
||||||
R.drawable.ic_install,
|
|
||||||
{
|
|
||||||
binding.root.findNavController()
|
|
||||||
.navigate(R.id.action_homeSettingsFragment_to_installableFragment)
|
|
||||||
}
|
|
||||||
)
|
|
||||||
)
|
|
||||||
add(
|
add(
|
||||||
HomeSetting(
|
HomeSetting(
|
||||||
R.string.applets,
|
R.string.applets,
|
||||||
@ -146,6 +113,17 @@ class HomeSettingsFragment : Fragment() {
|
|||||||
R.string.applets_error_description
|
R.string.applets_error_description
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
add(
|
||||||
|
HomeSetting(
|
||||||
|
R.string.manage_yuzu_data,
|
||||||
|
R.string.manage_yuzu_data_description,
|
||||||
|
R.drawable.ic_install,
|
||||||
|
{
|
||||||
|
binding.root.findNavController()
|
||||||
|
.navigate(R.id.action_homeSettingsFragment_to_installableFragment)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
add(
|
add(
|
||||||
HomeSetting(
|
HomeSetting(
|
||||||
R.string.select_games_folder,
|
R.string.select_games_folder,
|
||||||
@ -170,6 +148,28 @@ class HomeSettingsFragment : Fragment() {
|
|||||||
{ shareLog() }
|
{ shareLog() }
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
add(
|
||||||
|
HomeSetting(
|
||||||
|
R.string.open_user_folder,
|
||||||
|
R.string.open_user_folder_description,
|
||||||
|
R.drawable.ic_folder_open,
|
||||||
|
{ openFileManager() }
|
||||||
|
)
|
||||||
|
)
|
||||||
|
add(
|
||||||
|
HomeSetting(
|
||||||
|
R.string.preferences_theme,
|
||||||
|
R.string.theme_and_color_description,
|
||||||
|
R.drawable.ic_palette,
|
||||||
|
{
|
||||||
|
val action = HomeNavigationDirections.actionGlobalSettingsActivity(
|
||||||
|
null,
|
||||||
|
Settings.MenuTag.SECTION_THEME
|
||||||
|
)
|
||||||
|
binding.root.findNavController().navigate(action)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
add(
|
add(
|
||||||
HomeSetting(
|
HomeSetting(
|
||||||
R.string.about,
|
R.string.about,
|
||||||
|
Loading…
Reference in New Issue
Block a user