Commit 7466e7ef authored by Dennis Nienhüser's avatar Dennis Nienhüser

Follow-up to 39b8938a

This is one of the reasons why I hate copy-and-paste programming.
parent 39b8938a
......@@ -37,10 +37,7 @@ const int PolylineAnnotation::selectedDim = 15;
const int PolylineAnnotation::mergedDim = 20;
const int PolylineAnnotation::hoveredDim = 20;
const QColor PolylineAnnotation::regularColor = Oxygen::aluminumGray3;
const QColor PolylineAnnotation::selectedColor = QApplication::palette().highlight().color();
const QColor PolylineAnnotation::mergedColor = Oxygen::emeraldGreen6;
const QColor PolylineAnnotation::hoveredColor = QApplication::palette().highlight().color();
PolylineAnnotation::PolylineAnnotation( GeoDataPlacemark *placemark ) :
SceneGraphicsItem( placemark ),
......@@ -146,6 +143,8 @@ void PolylineAnnotation::drawNodes( GeoPainter *painter )
QColor glowColor = QApplication::palette().highlightedText().color();
glowColor.setAlpha(120);
auto const selectedColor = QApplication::palette().highlight().color();
auto const hoveredColor = selectedColor;
for ( int i = 0; i < line.size(); ++i ) {
// The order here is important, because a merged node can be at the same time selected.
......
......@@ -203,9 +203,7 @@ private:
static const int mergedDim;
static const int hoveredDim;
static const QColor regularColor;
static const QColor selectedColor;
static const QColor mergedColor;
static const QColor hoveredColor;
const ViewportParams *m_viewport;
bool m_regionsInitialized;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment