only animate color filters, when the transition affects colors
This commit is contained in:
parent
736a28d02f
commit
6005336cf8
@ -515,20 +515,20 @@ void QskSkinTransition::process()
|
|||||||
|
|
||||||
if ( !candidates.isEmpty() )
|
if ( !candidates.isEmpty() )
|
||||||
{
|
{
|
||||||
bool firstWindow = true;
|
bool doGraphicFilter = m_mask & QskSkinTransition::Color;
|
||||||
|
|
||||||
const auto windows = qGuiApp->topLevelWindows();
|
const auto windows = qGuiApp->topLevelWindows();
|
||||||
for ( const auto window : windows )
|
for ( const auto window : windows )
|
||||||
{
|
{
|
||||||
if ( auto quickWindow = qobject_cast< QQuickWindow* >( window ) )
|
if ( auto quickWindow = qobject_cast< QQuickWindow* >( window ) )
|
||||||
{
|
{
|
||||||
if ( firstWindow )
|
if ( doGraphicFilter )
|
||||||
{
|
{
|
||||||
qskSkinAnimator->addGraphicFilterAnimators(
|
qskSkinAnimator->addGraphicFilterAnimators(
|
||||||
quickWindow, m_animationHint,
|
quickWindow, m_animationHint,
|
||||||
oldFilters, m_skins[1]->graphicFilters() );
|
oldFilters, m_skins[1]->graphicFilters() );
|
||||||
|
|
||||||
firstWindow = false;
|
doGraphicFilter = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user