-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
None
-
8165d896a (dev)
It should be possible to set colorScheme and individual properties at the same time. For example:
theme: GraphsTheme {
colorScheme: Qt.Dark
backgroundColor: "#ff0000"
}
Should result dark theme with red background. Currently if QML engine decides to evaluate colorScheme after backgroundColor, it overrides the backgroundColor. Old 2D graphs implementation used m_customFlags for this (https://codereview.qt-project.org/c/qt/qtgraphs/+/557624/9/src/graphs2d/themes/qgraphtheme.cpp#b223)
Same thing with theme, this:
theme: GraphsTheme { theme: GraphsTheme.Theme.MixSeries seriesColors: ["#444444", "#555555", "#666666", "#777777"] }
Should use seriesColors, although it doesn't make much sense currently unless theme starts to define also seriesGradients, borderColors or something.
For Gerrit Dashboard: QTBUG-125028 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
559693,3 | Do not override custom user input theme | dev | qt/qtgraphs | Status: MERGED | +2 | 0 |