mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 23:04:03 +02:00
improve contrast by changing plotperf opacity
This commit is contained in:
parent
6cee473376
commit
c391c26805
4 changed files with 7 additions and 3 deletions
|
@ -27,7 +27,7 @@ ColumnLayout {
|
||||||
source1: maxWindow
|
source1: maxWindow
|
||||||
source2: avgWindow
|
source2: avgWindow
|
||||||
color1: "red"
|
color1: "red"
|
||||||
color2: "dimgrey"
|
color2: "darkslategrey"
|
||||||
showGraphs: jitter.showGraphs
|
showGraphs: jitter.showGraphs
|
||||||
}
|
}
|
||||||
MovingValuePair {
|
MovingValuePair {
|
||||||
|
@ -37,7 +37,7 @@ ColumnLayout {
|
||||||
source1: max
|
source1: max
|
||||||
source2: avg
|
source2: avg
|
||||||
color1: "firebrick"
|
color1: "firebrick"
|
||||||
color2: "dimgrey"
|
color2: "darkslategrey"
|
||||||
showGraphs: jitter.showGraphs
|
showGraphs: jitter.showGraphs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,7 @@ RowLayout {
|
||||||
|
|
||||||
valueUnit: value.unit
|
valueUnit: value.unit
|
||||||
valueNumDigits: 0
|
valueNumDigits: 0
|
||||||
|
backgroundOpacity: 0.2
|
||||||
|
|
||||||
plots: [{ binding: "source", color: value.color }]
|
plots: [{ binding: "source", color: value.color }]
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,6 +71,7 @@ RowLayout {
|
||||||
|
|
||||||
valueUnit: value.unit
|
valueUnit: value.unit
|
||||||
valueNumDigits: 0
|
valueNumDigits: 0
|
||||||
|
backgroundOpacity: 0.2
|
||||||
|
|
||||||
plots: [{ binding: "source1", color: value.color1 }, { binding: "source2", color: value.color2 }]
|
plots: [{ binding: "source1", color: value.color1 }, { binding: "source2", color: value.color2 }]
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,8 @@ Item {
|
||||||
// The object used as the default source object for the prop plots
|
// The object used as the default source object for the prop plots
|
||||||
property var object
|
property var object
|
||||||
|
|
||||||
|
property var backgroundOpacity: 0.6
|
||||||
|
|
||||||
// Plots is an array of plot descriptor
|
// Plots is an array of plot descriptor
|
||||||
// a default plot descriptor expects the following object:
|
// a default plot descriptor expects the following object:
|
||||||
// prop: [ {
|
// prop: [ {
|
||||||
|
@ -185,7 +187,7 @@ Item {
|
||||||
ctx.fillText(text, 0, lineHeight);
|
ctx.fillText(text, 0, lineHeight);
|
||||||
}
|
}
|
||||||
function displayBackground(ctx) {
|
function displayBackground(ctx) {
|
||||||
ctx.fillStyle = Qt.rgba(0, 0, 0, 0.6);
|
ctx.fillStyle = Qt.rgba(0, 0, 0, root.backgroundOpacity);
|
||||||
ctx.fillRect(0, 0, width, height);
|
ctx.fillRect(0, 0, width, height);
|
||||||
|
|
||||||
ctx.strokeStyle= "grey";
|
ctx.strokeStyle= "grey";
|
||||||
|
|
Loading…
Reference in a new issue