mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Stereo: min and max disparity parameters are now float. ImageView: adjusted background color of info boxes.
This commit is contained in:
@@ -111,7 +111,14 @@ private:
|
||||
{
|
||||
_placeHolder = new QGraphicsRectItem (this);
|
||||
_placeHolder->setVisible(false);
|
||||
_placeHolder->setBrush(QBrush(QColor ( 0, 0, 0, 170 ))); // Black transparent background
|
||||
if(qGray(pen().color().rgb() > 255/2))
|
||||
{
|
||||
_placeHolder->setBrush(QBrush(QColor ( 0,0,0, 170 )));
|
||||
}
|
||||
else
|
||||
{
|
||||
_placeHolder->setBrush(QBrush(QColor ( 255, 255, 255, 170 )));
|
||||
}
|
||||
QGraphicsTextItem * text = new QGraphicsTextItem(_placeHolder);
|
||||
text->setDefaultTextColor(this->pen().color().rgb());
|
||||
text->setPlainText(_text);
|
||||
|
||||
Reference in New Issue
Block a user