Skip to content

Commit

Permalink
Remove constant padding around geometry area, update default margins …
Browse files Browse the repository at this point in the history
…for some elements.
  • Loading branch information
OLarionova-HORIS authored and RYangazov committed Mar 29, 2024
1 parent 431914a commit 018ef8d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,20 @@ internal open class ThemeValuesBase : ThemeValues(VALUES) {
Elem.Margin.LEFT to 0.0
),
PLOT_TITLE to mapOf(
Elem.SIZE to Defaults.FONT_LARGE
Elem.SIZE to Defaults.FONT_LARGE,
Elem.Margin.TOP to 0.0,
Elem.Margin.BOTTOM to 10.0
),
PLOT_SUBTITLE to mapOf(
Elem.SIZE to Defaults.FONT_MEDIUM
Elem.SIZE to Defaults.FONT_MEDIUM,
Elem.Margin.TOP to 0.0,
Elem.Margin.BOTTOM to 10.0
),
PLOT_CAPTION to mapOf(
Elem.HJUST to 1.0,
Elem.SIZE to Defaults.FONT_SMALL
Elem.SIZE to Defaults.FONT_SMALL,
Elem.Margin.TOP to 10.0,
Elem.Margin.BOTTOM to 0.0
),
// TEXT_WIDTH_FACTOR to 1.0,
PANEL_BORDER_RECT to ELEMENT_BLANK,
Expand Down Expand Up @@ -156,10 +162,10 @@ internal open class ThemeValuesBase : ThemeValues(VALUES) {
),

PLOT_MARGIN to mapOf(
Elem.Margin.TOP to 0.0,
Elem.Margin.RIGHT to 0.0,
Elem.Margin.BOTTOM to 0.0,
Elem.Margin.LEFT to 0.0
Elem.Margin.TOP to 6.5,
Elem.Margin.RIGHT to 6.5,
Elem.Margin.BOTTOM to 6.5,
Elem.Margin.LEFT to 6.5
),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.jetbrains.letsPlot.core.plot.builder.layout.util.Insets
internal object LayoutConstants {
val GEOM_MIN_SIZE = DoubleVector(50.0, 50.0)

const val GEOM_AREA_PADDING = 10.0
const val GEOM_AREA_PADDING = 0.0

// Horizontal axis labels
const val H_AXIS_LABELS_EXPAND = 10.0 // Value by which labels can go beyond the axis bounds (px).
Expand Down

0 comments on commit 018ef8d

Please sign in to comment.