Marble: Adjust highlight colors for the Edit Maps feature.
completed by: Ilya Kowalewski
mentors: Dennis Nienhüser, Torsten Rahn, Sanjiban Bairagya, shentey
This task is an introduction task for later refactoring of the annotation plugin.
Display the Atlas map and enter "Marblehead" in Marble's Search panel query. The click "Marblehead (US)". Notice how the placemark "Marblehead" is centered with a (blueish) background color. This is the preferred way to display selected items in Marble.
This selected appearance is implemented inside:
void VisiblePlacemark::drawLabelText(QPainter &labelPainter, const QString &text,
const QFont &labelFont, LabelStyle labelStyle, const QColor &color )
Now go to Settings->Panel->Edit Map and enable the Edit Map panel.
- Use the "Add Placemark" button. Note how a focused Placemark can't be distinguished from others. Please add a filled rectangle with the QApplication's highlight palette color and adjust the highlightedText color of the text accordingly.
- Use the "Add GroundOverlay" button. Note how the selected GroundOverlay is covered by a cyan tinted rectangle. Please adjust the color so that the QApplication's highlight palette color is used instead.
- Use the "Add Polygon Tool". Note how a non-oxygen color is used for filling by default. Instead an Oxygen Palette color should be used. Select a node of the Polygon. Note how the selected node appears with a cyan glow. Instead the QApplication's highlight palette color should be used.
- Use the "Add Path" tool. Do the same adjustments as for the Polygon (i.e. adjust the selected node color).
That's all :)