From 6858f1dd6294a93c1e1ec8007cb0434b53646488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 19 Aug 2015 02:06:32 +0200 Subject: GH-1197 add console log color adaptation rainbow library was part of KDE - KGuiAddons --- application/Colors.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 application/Colors.h (limited to 'application/Colors.h') diff --git a/application/Colors.h b/application/Colors.h new file mode 100644 index 00000000..8825f39f --- /dev/null +++ b/application/Colors.h @@ -0,0 +1,15 @@ +#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); +} -- cgit v1.2.3