Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make line width equal to point's stroke width #798

Merged
merged 9 commits into from
Jun 28, 2023
Prev Previous commit
Next Next commit
Enlarge default values for size, linewidth, stroke.
  • Loading branch information
OLarionova-HORIS committed Jun 26, 2023
commit 71c2fa9fd63817feaf970a774b7655dc5fc5595b
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ internal class DefaultGeomTheme private constructor(
var color = fixedColors.color
var fill = fixedColors.fill
var alpha = 1.0
var size = 0.5
var lineWidth = 0.5
var size = 0.6
var lineWidth = 0.6

when (geomKind) {
GeomKind.PATH,
Expand Down Expand Up @@ -106,7 +106,7 @@ internal class DefaultGeomTheme private constructor(
color = inheritedColors.lineColor()
fill = inheritedColors.lineColor()
alpha = 0.1
size = 0.2
size = 0.24
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extract the experimental multiplier (1.2) to a val .

}

GeomKind.CROSS_BAR,
Expand All @@ -121,20 +121,20 @@ internal class DefaultGeomTheme private constructor(
GeomKind.Q_Q_2 -> {
color = inheritedColors.lineColor()
fill = inheritedColors.backgroundFill()
size = 2.0
size = 2.4
}

GeomKind.POINT_RANGE -> {
color = inheritedColors.lineColor()
fill = inheritedColors.backgroundFill()
lineWidth = 1.0 // line width and stroke for point
lineWidth = 1.2 // line width and stroke for point
}

GeomKind.LOLLIPOP -> {
color = inheritedColors.lineColor()
fill = inheritedColors.backgroundFill()
size = 2.0
lineWidth = 1.0 // line width and stroke for point
lineWidth = 1.2 // line width and stroke for point
}

GeomKind.SMOOTH -> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is bad: alpha = 1.5


                GeomKind.SMOOTH -> {
                    color = Color.MAGENTA

We don't want to use constant values no longer. Should be a field in BASE (but still get rid of the BASE).

Expand Down