making code more readable

This commit is contained in:
Uwe Rathmann 2022-03-27 19:05:40 +02:00
parent 48a8a10b62
commit f68095a0d1

View File

@ -172,8 +172,14 @@ QskBoxBorderColors QskBoxBorderColors::interpolated(
for ( size_t i = 0; i < 4; i++ ) for ( size_t i = 0; i < 4; i++ )
{ {
colors.m_gradients[ i ] = colors.m_gradients[ i ].interpolated( #if 1
to.m_gradients[ i ], ratio ); /*
When one border has a width of 0 we would prefer to ignore
the color and use always use the other color. TODO ...
*/
#endif
auto& gradient = colors.m_gradients[ i ];
gradient = gradient.interpolated( to.m_gradients[ i ], ratio );
} }
return colors; return colors;