Overlay opacity (#7171)

* #7165 Ensemble RFT : Use theme color for marker text
* #7165 Ensemble RFT : Make overlay items semi-transparent
This commit is contained in:
Magne Sjaastad 2021-01-07 07:35:27 +01:00 committed by GitHub
parent 2d3b9f0929
commit 7a2d388097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 5 deletions

View File

@ -176,6 +176,10 @@ QLabel {
selection-background-color: $primaryColor;
}
RiuAbstractOverlayContentFrame, RiuDraggableOverlayFrame {
background-color: rgba(36,41,46,0.3);
}
QProgressBar {
border-color: $borderColor;
text-align: center;

View File

@ -92,3 +92,7 @@ QListView[state="ExternalInput"] {
background-color: $externalInputColor;
border: 2px solid $borderColor;
}
RiuAbstractOverlayContentFrame, RiuDraggableOverlayFrame {
background-color: rgba(255,255,255,0.4);
}

View File

@ -33,11 +33,8 @@ RiuDraggableOverlayFrame::RiuDraggableOverlayFrame( QWidget* parent, const int s
{
m_widgetDragger = new RiuWidgetDragger( this, snapMargins );
QPalette pal = this->palette();
pal.setColor( QPalette::Window, backgroundColor );
setAutoFillBackground( true );
setPalette( pal );
setFrameShape( QFrame::Box );
QGraphicsDropShadowEffect* dropShadowEffect = new QGraphicsDropShadowEffect( this );
dropShadowEffect->setOffset( 1.0, 1.0 );
dropShadowEffect->setBlurRadius( 3.0 );

View File

@ -23,6 +23,7 @@
#include "RimWellLogExtractionCurve.h"
#include "RimWellLogTrack.h"
#include "RiuGuiTheme.h"
#include "RiuQwtCurvePointTracker.h"
#include "RiuRimQwtPlotCurve.h"
@ -73,6 +74,9 @@ protected:
updateClosestCurvePointMarker( closestPoint, relatedXAxis, relatedYAxis );
}
auto color = RiuGuiTheme::getColorByVariableName( "markerColor" );
txt.setColor( color );
return txt;
}
};