Skip to content

Commit

Permalink
Setting "Smooth Transitions" for popup menu's
Browse files Browse the repository at this point in the history
The setting "Smooth Transitions" to enable or disable smooth transitions
with fade-out and fade-in when switching between menu pages is now extended
to enable or disable the popup menu animations.
The popup menu's typically have a fade-out and fade-in time of 100ms.
However, this can take sometimes much more time, for example on low-powered
ARM machines but also when using NVIDIA cards with the nouveau drvier.
See also commit 09f0865 where the
setting "Smooth Transitions" is introduced.
  • Loading branch information
kmdewaal committed Apr 10, 2023
1 parent 0b4b754 commit 3272910
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion mythtv/libs/libmythui/mythuianimation.cpp
@@ -1,6 +1,7 @@
#include "mythuianimation.h"
#include "mythuitype.h"
#include "mythmainwindow.h"
#include "libmythbase/mythcorecontext.h"

#include <QDomDocument>

Expand Down Expand Up @@ -48,7 +49,8 @@ QRect UIEffects::GetExtent(const QSize size) const

void MythUIAnimation::Activate(void)
{
m_active = true;
if (GetMythDB()->GetBoolSetting("SmoothTransitions", true))
m_active = true;
setCurrentTime(0);
}

Expand Down
4 changes: 2 additions & 2 deletions mythtv/programs/mythfrontend/globalsettings.cpp
Expand Up @@ -2630,8 +2630,8 @@ static HostCheckBoxSetting *SmoothTransitions()

gc->setValue(true);

gc->setHelpText(AppearanceSettings::tr("Enable smooth transitions with fade-in and fade-out of menu pages. "
"Disabling this can make the GUI respond faster."));
gc->setHelpText(AppearanceSettings::tr("Enable smooth transitions with fade-in and fade-out of menu pages and enable GUI animations. "
"Disabling this can make the GUI respond faster especially on low-powered machines."));
return gc;
}

Expand Down

0 comments on commit 3272910

Please sign in to comment.