Stylesheet parser in RiuGuiTheme can now parse QPalette::$QColorRole[::$QColorGroup] and uses the application's default QPalette for color replacements.

Adjusted default style sheet accordingly to use QPalette::Base color as QwtPlots' background color.
This commit is contained in:
Ruben Thoms
2020-09-28 12:57:47 +02:00
committed by Magne Sjaastad
parent aaf357531f
commit c49e9ea1bc
2 changed files with 56 additions and 15 deletions

View File

@@ -24,16 +24,16 @@ $plotGridColor: #394046; // Plot grid color
$auxiliaryCurveColor: #000000; // Auxiliary curve color
$externalInputColor: #fff2a7; // Background color for external input fields
QwtPlot["*"]::grid["*"] {
color: $backgroundColor2;
}
QwtPlot {
background-color: white;
background-color: QPalette::Base;
}
QwtPlot > QWidget {
background-color: white;
background-color: QPalette::Base;
}
QwtPlot["*"]::grid["*"] {
color: $backgroundColor2;
}
QwtPlot["PvtPlot"]::curve["Auxiliary"] {
@@ -88,14 +88,6 @@ QwtPlot["PvtPlot"]::pointMarker["*"] {
color: $textColor;
}
QMainWindow {
background-color: #ffffff;
}
QToolBar {
background-color: #eeeeee;
}
QListView[state="ExternalInput"] {
background-color: $externalInputColor;
border: 2px solid $borderColor;