mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Set the triband legend pixmap to more muted colors.
git-svn-id: http://svn.osgeo.org/qgis/trunk@723 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
2c3abab958
commit
385eb89cc4
@ -1859,13 +1859,13 @@ QPixmap QgsRasterLayer::getLegendQPixmap(bool theWithNameFlag)
|
||||
myLegendQPixmap = QPixmap(3,1);
|
||||
myQPainter.begin(&myLegendQPixmap);
|
||||
//draw legend red part
|
||||
myQPainter.setPen( QPen( QColor(127,0,0, QColor::Rgb), 0) );
|
||||
myQPainter.setPen( QPen( QColor(224,103,103, QColor::Rgb), 0) );
|
||||
myQPainter.drawPoint( 0,0);
|
||||
//draw legend green part
|
||||
myQPainter.setPen( QPen( QColor(0,127,0, QColor::Rgb), 0) );
|
||||
myQPainter.setPen( QPen( QColor(132,224,127, QColor::Rgb), 0) );
|
||||
myQPainter.drawPoint( 1,0);
|
||||
//draw legend blue part
|
||||
myQPainter.setPen( QPen( QColor(0,0,127, QColor::Rgb), 0) );
|
||||
myQPainter.setPen( QPen( QColor(127,160,224, QColor::Rgb), 0) );
|
||||
myQPainter.drawPoint( 2,0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user