mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 08:48:40 +02:00
[ui] GraphEditor: improve dash pattern on edges
- Avoid variation in dash pattern when the stroke is hovered by compensating strokeWidth. - Use a dash pattern of [6,4] to get a stronger feeling of a dashed line (VS a dotted line).
This commit is contained in:
parent
3fe6c22bc2
commit
85044e50cb
1 changed files with 4 additions and 2 deletions
|
@ -42,9 +42,11 @@ Shape {
|
|||
fillColor: "transparent"
|
||||
strokeColor: "#3E3E3E"
|
||||
strokeStyle: edge != undefined && ((edge.src != undefined && edge.src.isOutput) || edge.dst == undefined) ? ShapePath.SolidLine : ShapePath.DashLine
|
||||
dashPattern: [4, 4]
|
||||
capStyle: ShapePath.RoundCap
|
||||
strokeWidth: 1
|
||||
// final visual width of this path (never below 1)
|
||||
readonly property real visualWidth: Math.max(strokeWidth, 1)
|
||||
dashPattern: [6/visualWidth, 4/visualWidth]
|
||||
capStyle: ShapePath.RoundCap
|
||||
|
||||
PathCubic {
|
||||
id: cubic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue