#pragma once #include #include namespace Color { /** * Blend the color with the front color, adapting to the back color */ QColor blend(QColor front, QColor back, QColor color, uchar ratio); /** * Blend the color with the back color */ QColor blendBackground(QColor back, QColor color, uchar ratio); }