UI: Space ChoiceGroups from their container instead of their own margins

ChoiceGroups no longer have hardcoded margins. A new ChoiceGroupList holds them,
with padding and spacing that give the same look as before. Settings tabs, developer
tools, the two-pane settings columns, the pause menu and the rest put their groups in
one, and a few screens adjust its padding and spacing to their layout.

Also add the two groups in the remote disc streaming settings that were created but
never added, and make the settings search look inside groups: it only checked a tab's
direct children, so with ChoiceGroups a filter hid everything.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-24 14:01:58 +02:00
1 parent 13ffe2873f
commit b54056685e
16 files changed
+112 -71

No files matched your search

+11 -11
View File
@@ -649,41 +649,41 @@ void DeveloperToolsScreen::CreateTabs() {
auto ms = GetI18NCategory(I18NCat::MAINSETTINGS);
AddTab("General", sy->T("General"), [this](UI::LinearLayout *parent) {
CreateGeneralTab(parent);
CreateGeneralTab(parent->Add(new UI::ChoiceGroupList()));
});
AddTab("TextureReplacement", dev->T("Texture Replacement"), [this](UI::LinearLayout *parent) {
CreateTextureReplacementTab(parent);
CreateTextureReplacementTab(parent->Add(new UI::ChoiceGroupList()));
});
AddTab("Graphics", ms->T("Graphics"), [this](UI::LinearLayout *parent) {
CreateGraphicsTab(parent);
CreateGraphicsTab(parent->Add(new UI::ChoiceGroupList()));
});
AddTab("Networking", ms->T("Networking"), [this](UI::LinearLayout *parent) {
CreateNetworkTab(parent);
CreateNetworkTab(parent->Add(new UI::ChoiceGroupList()));
});
AddTab("Audio", ms->T("Audio"), [this](UI::LinearLayout *parent) {
CreateAudioTab(parent);
CreateAudioTab(parent->Add(new UI::ChoiceGroupList()));
});
AddTab("Tests", dev->T("Tests"), [this](UI::LinearLayout *parent) {
CreateTestsTab(parent);
CreateTestsTab(parent->Add(new UI::ChoiceGroupList()));
});
AddTab("UI", dev->T("UI"), [this](UI::LinearLayout *parent) {
CreateUITab(parent);
CreateUITab(parent->Add(new UI::ChoiceGroupList()));
});
AddTab("DumpFiles", dev->T("Dump files"), [this](UI::LinearLayout *parent) {
CreateDumpFileTab(parent);
CreateDumpFileTab(parent->Add(new UI::ChoiceGroupList()));
});
AddTab("HLE", dev->T("HLE"), [this](UI::LinearLayout *parent) {
CreateHLETab(parent);
CreateHLETab(parent->Add(new UI::ChoiceGroupList()));
});
#if !PPSSPP_PLATFORM(ANDROID) && !PPSSPP_PLATFORM(IOS) && !PPSSPP_PLATFORM(SWITCH)
AddTab("MIPSTracer", dev->T("MIPSTracer"), [this](UI::LinearLayout *parent) {
CreateMIPSTracerTab(parent);
CreateMIPSTracerTab(parent->Add(new UI::ChoiceGroupList()));
});
#endif
//#if PPSSPP_PLATFORM(ANDROID)
if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 30) {
AddTab("Crash history", dev->T("Crash history"), [this](UI::LinearLayout *parent) {
CreateCrashHistoryTab(parent);
CreateCrashHistoryTab(parent->Add(new UI::ChoiceGroupList()));
});
}
//#endif