FullscreenUI: Bump animation time for theme change

This commit is contained in:
Stenzek 2025-06-22 00:42:51 +10:00
parent 68fa33e075
commit 5dd64c89c0
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -4172,7 +4172,7 @@ void FullscreenUI::DrawInterfaceSettingsPage()
DrawStringListSetting(bsi, FSUI_ICONVSTR(ICON_FA_PAINTBRUSH, "Theme"), DrawStringListSetting(bsi, FSUI_ICONVSTR(ICON_FA_PAINTBRUSH, "Theme"),
FSUI_VSTR("Selects the color style to be used for Big Picture UI."), "UI", "FullscreenUITheme", FSUI_VSTR("Selects the color style to be used for Big Picture UI."), "UI", "FullscreenUITheme",
"Dark", s_theme_names, s_theme_values, true, "Dark", s_theme_names, s_theme_values, true,
[](std::string_view) { BeginTransition(DEFAULT_TRANSITION_TIME, &FullscreenUI::SetTheme); }); [](std::string_view) { BeginTransition(LONG_TRANSITION_TIME, &FullscreenUI::SetTheme); });
if (const TinyString current_value = if (const TinyString current_value =
bsi->GetTinyStringValue("Main", "FullscreenUIBackground", DEFAULT_BACKGROUND_NAME); bsi->GetTinyStringValue("Main", "FullscreenUIBackground", DEFAULT_BACKGROUND_NAME);
@ -4192,7 +4192,7 @@ void FullscreenUI::DrawInterfaceSettingsPage()
SetSettingsChanged(bsi); SetSettingsChanged(bsi);
// Have to defer the reload, because we've already drawn the bg for this frame. // Have to defer the reload, because we've already drawn the bg for this frame.
BeginTransition(DEFAULT_TRANSITION_TIME, {}); BeginTransition(LONG_TRANSITION_TIME, {});
Host::RunOnCPUThread([]() { GPUThread::RunOnThread(&FullscreenUI::LoadBackground); }); Host::RunOnCPUThread([]() { GPUThread::RunOnThread(&FullscreenUI::LoadBackground); });
}); });
} }

View File

@ -51,6 +51,7 @@ void UpdateTransitionState();
static constexpr float SHORT_TRANSITION_TIME = 0.08f; static constexpr float SHORT_TRANSITION_TIME = 0.08f;
static constexpr float DEFAULT_TRANSITION_TIME = 0.15f; static constexpr float DEFAULT_TRANSITION_TIME = 0.15f;
static constexpr float LONG_TRANSITION_TIME = 0.3f;
enum class TransitionState : u8 enum class TransitionState : u8
{ {