mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
#12790 Replaces transparency with opacity settings
Simplifies color handling by replacing transparency settings with opacity for curve and fill colors. This change provides a more intuitive user experience and ensures consistent behavior across the application. - Renames "ColorTransparency" to "ColorOpacity" for RimCurveSetAppearance. - Introduces "CurveColorOpacity" for RimPlotCurveAppearance. - Updates blending calculations to correctly use opacity. - Adjusts UI slider attributes for opacity settings, including minimum, maximum and decimals.
This commit is contained in:
1 parent
59f399ed54
commit
4d9a723e32
9 files changed
+145
-82
No files matched your search
@@ -477,6 +477,6 @@ void RimHistogramCurve::setAppearanceFromGraphType( RimHistogramPlot::GraphType
|
||||
{
|
||||
auto fillType = graphType == RimHistogramPlot::GraphType::BAR_GRAPH ? Qt::SolidPattern : Qt::NoBrush;
|
||||
setFillStyle( fillType );
|
||||
float transparency = graphType == RimHistogramPlot::GraphType::BAR_GRAPH ? 0.2 : 1.0;
|
||||
setFillColorTransparency( transparency );
|
||||
float opacity = graphType == RimHistogramPlot::GraphType::BAR_GRAPH ? 0.2 : 1.0;
|
||||
setFillColorOpacity( opacity );
|
||||
}
|
||||
Reference in new issue
Block a user