diff options
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); +} |