sneedmc/application/Colors.h
Petr Mrázek 6858f1dd62 GH-1197 add console log color adaptation
rainbow library was part of KDE - KGuiAddons
2015-08-19 23:52:53 +02:00

16 lines
334 B
C++

#pragma once
#include <QtGui/QColor>
#include <rainbow.h>
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);
}