mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-12 05:00:08 +00:00
FullscreenUI: Bump animation time for theme change
This commit is contained in:
parent
68fa33e075
commit
5dd64c89c0
@ -4172,7 +4172,7 @@ void FullscreenUI::DrawInterfaceSettingsPage()
|
||||
DrawStringListSetting(bsi, FSUI_ICONVSTR(ICON_FA_PAINTBRUSH, "Theme"),
|
||||
FSUI_VSTR("Selects the color style to be used for Big Picture UI."), "UI", "FullscreenUITheme",
|
||||
"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 =
|
||||
bsi->GetTinyStringValue("Main", "FullscreenUIBackground", DEFAULT_BACKGROUND_NAME);
|
||||
@ -4192,7 +4192,7 @@ void FullscreenUI::DrawInterfaceSettingsPage()
|
||||
SetSettingsChanged(bsi);
|
||||
|
||||
// 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); });
|
||||
});
|
||||
}
|
||||
|
@ -51,6 +51,7 @@ void UpdateTransitionState();
|
||||
|
||||
static constexpr float SHORT_TRANSITION_TIME = 0.08f;
|
||||
static constexpr float DEFAULT_TRANSITION_TIME = 0.15f;
|
||||
static constexpr float LONG_TRANSITION_TIME = 0.3f;
|
||||
|
||||
enum class TransitionState : u8
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user