mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
parent
2d3b9f0929
commit
7a2d388097
@ -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;
|
||||
|
@ -92,3 +92,7 @@ QListView[state="ExternalInput"] {
|
||||
background-color: $externalInputColor;
|
||||
border: 2px solid $borderColor;
|
||||
}
|
||||
|
||||
RiuAbstractOverlayContentFrame, RiuDraggableOverlayFrame {
|
||||
background-color: rgba(255,255,255,0.4);
|
||||
}
|
||||
|
@ -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 );
|
||||
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user