QmlDesigner: Use Theme::DScontrolBackground instead of BackgroundColorDarkAlternate

The color role qmlDesignerBackgroundColorDarkAlternate is deprecated.

Change-Id: Ic6ab5883c980b83c3d47830ab51b805936007547
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2021-03-09 15:59:09 +01:00
parent 3ab93592c3
commit 38756f1c7a

View File

@@ -73,7 +73,7 @@ CurveEditorStyle CurveEditorModel::style() const
out.timeAxisHeight = 60; out.timeAxisHeight = 60;
out.timeOffsetLeft = 10; out.timeOffsetLeft = 10;
out.timeOffsetRight = 10; out.timeOffsetRight = 10;
out.rangeBarColor = QmlDesigner::Theme::instance()->qmlDesignerBackgroundColorDarkAlternate(); out.rangeBarColor = QmlDesigner::Theme::getColor(Theme::DScontrolBackground);
out.rangeBarCapsColor = QmlDesigner::Theme::getColor( out.rangeBarCapsColor = QmlDesigner::Theme::getColor(
QmlDesigner::Theme::QmlDesigner_HighlightColor); QmlDesigner::Theme::QmlDesigner_HighlightColor);
out.valueAxisWidth = 60; out.valueAxisWidth = 60;