comparison view/Pane.cpp @ 1269:f2894944c6b8

Make the overlays at either end translucent, so they don't completely crop out any underlying text or necessary info (e.g. selection extents)
author Chris Cannam
date Thu, 19 Apr 2018 14:35:59 +0100
parents a34a2a25907c
children 7527701c8076
comparison
equal deleted inserted replaced
1268:05d12869043e 1269:f2894944c6b8
821 paint.save(); 821 paint.save();
822 822
823 QBrush brush; 823 QBrush brush;
824 824
825 if (hasLightBackground()) { 825 if (hasLightBackground()) {
826 brush = QBrush(QColor("#f8f8f8")); 826 brush = QBrush(QColor("#aaf8f8f8"));
827 paint.setPen(Qt::black); 827 paint.setPen(Qt::black);
828 } else { 828 } else {
829 brush = QBrush(QColor("#101010")); 829 brush = QBrush(QColor("#aa101010"));
830 paint.setPen(Qt::white); 830 paint.setPen(Qt::white);
831 } 831 }
832 832
833 if (x0 > r.x()) { 833 if (x0 > r.x()) {
834 paint.fillRect(0, 0, x0, height(), brush); 834 paint.fillRect(0, 0, x0, height(), brush);