diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-08-19 02:06:32 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-08-19 23:52:53 +0200 |
commit | 6858f1dd6294a93c1e1ec8007cb0434b53646488 (patch) | |
tree | 83656c5ff2ef9aa8d5bf7b2441727282751c78fc /application/Colors.h | |
parent | 9681f724e5ac0d859c575d093c6dd656a3b9e5c7 (diff) | |
download | PrismLauncher-6858f1dd6294a93c1e1ec8007cb0434b53646488.tar.gz PrismLauncher-6858f1dd6294a93c1e1ec8007cb0434b53646488.tar.bz2 PrismLauncher-6858f1dd6294a93c1e1ec8007cb0434b53646488.zip |
GH-1197 add console log color adaptation
rainbow library was part of KDE - KGuiAddons
Diffstat (limited to 'application/Colors.h')
-rw-r--r-- | application/Colors.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 <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); +} |