Skip to content

Commit 009613b

Browse files
committed
OriginCross cosmetic.
Signed-off-by: cneben <[email protected]>
1 parent 75e4536 commit 009613b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/GraphView.qml

+5-1
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,14 @@ Qan.AbstractGraphView {
6363
//! Shortcut to set scrollbar policy or visibility (default to always visible).
6464
property alias hScrollBar: hbar
6565

66+
//! Shortcut to set origin cross visibility (default to visible).
67+
property alias originCross: _originCross
68+
6669
// PRIVATE ////////////////////////////////////////////////////////////////
6770
OriginCross {
71+
id: _originCross
6872
parent: containerItem
69-
crossColor: graphView.gridThickColor
73+
//crossColor: Qt.rgba(1,1,1,0.8)
7074
}
7175

7276
ScrollBar {

src/OriginCross.qml

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ Shape {
5151
startY: -crossSize
5252
capStyle: ShapePath.RoundCap
5353
strokeWidth: 2
54-
strokeColor: Qt.rgba(1,1,1,1)
55-
fillColor: Qt.rgba(0,0,0,0)
54+
strokeColor: Qt.rgba(0, 0, 0, 0.9)
55+
fillColor: Qt.rgba(0, 0, 0, 0.9)
5656
PathLine {
5757
x: 0
5858
y: crossSize

0 commit comments

Comments
 (0)