| 44 | } |
| 45 | |
| 46 | static void dampColors(QColor& col) |
| 47 | { |
| 48 | //Reduce the colors that are less visible to the eye, because they are closer to black when it comes to contrast |
| 49 | //The most significant color to the eye is green. Then comes red, and then blue, with blue _much_ less significant. |
| 50 | |
| 51 | col.setBlue(0); |
| 52 | col.setRed(col.red() / 2); |
| 53 | } |
| 54 | |
| 55 | //A hack to compute more eye-focused contrast values |
| 56 | static double readabilityContrast(QColor foreground, QColor background) |
no outgoing calls
no test coverage detected