* Blending is used for non white (colorful?) colors to increase contrast (get a brighter color). * Inverting is not possible for non white/black colors and would just create a different color * not guaranteed to be brighter. */
| 122 | * not guaranteed to be brighter. |
| 123 | */ |
| 124 | bool canBlendForegroundColor(const QColor& color) |
| 125 | { |
| 126 | // a foreground color with other hsv values will give bad contrast against a dark background |
| 127 | return color.valueF() < 0.7; |
| 128 | } |
| 129 | |
| 130 | bool isBrightBackgroundColor(const QColor& color) |
| 131 | { |