Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified assets/readme/examples/business-report.pdf
Binary file not shown.
Binary file modified assets/readme/examples/cv-timeline-minimal.pdf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
import com.demcha.compose.document.node.DocumentNode;
import com.demcha.compose.document.node.LayerAlign;
import com.demcha.compose.document.node.TextAlign;
import com.demcha.compose.document.style.ClipPolicy;
import com.demcha.compose.document.style.DocumentColor;
import com.demcha.compose.document.style.DocumentInsets;
import com.demcha.compose.document.style.DocumentStroke;
import com.demcha.compose.document.style.DocumentTextStyle;
import com.demcha.compose.document.style.*;
import com.demcha.compose.document.table.DocumentTableColumn;
import com.demcha.compose.document.table.DocumentTableStyle;
import com.demcha.compose.document.theme.BusinessTheme;
Expand Down Expand Up @@ -152,9 +148,9 @@ public static Path generate() throws Exception {
.name("HeroFrame")
.roundedRect(210, 110, 12)
.fillColor(NAVY_DARK)
.stroke(DocumentStroke.of(GOLD, 0.6))
.stroke(DocumentStroke.of(GOLD, 1.5))
.clipPolicy(ClipPolicy.CLIP_PATH)
.center(buildHeroScene(204, 104)))))
.center(buildHeroScene(212, 112)))))

// Three KPI cards
.addRow("KpiRow", row -> row
Expand All @@ -175,7 +171,7 @@ public static Path generate() throws Exception {
.spacing(18)
.weights(8, 12)
.addSection("Highlights", section -> section
.softPanel(DocumentColor.WHITE, 10, 16)
.softPanel(DocumentColor.WHITE, DocumentCornerRadius.right(10), 16)
.stroke(DocumentStroke.of(CARD_RING, 0.5))
.accentLeft(NAVY, 3)
.spacing(8)
Expand All @@ -199,7 +195,7 @@ public static Path generate() throws Exception {
.lineSpacing(1.45)
.margin(DocumentInsets.zero())))
.addSection("Chart", section -> section
.softPanel(DocumentColor.WHITE, 10, 14)
.softPanel(DocumentColor.WHITE, DocumentCornerRadius.right(10), 14)
.stroke(DocumentStroke.of(CARD_RING, 0.5))
.accentLeft(GOLD, 3)
.spacing(6)
Expand All @@ -225,7 +221,7 @@ public static Path generate() throws Exception {
// accent strip so the table reads as a distinct
// dashboard card rather than a bare grid.
.addSection("MetricsCard", card -> card
.softPanel(DocumentColor.WHITE, 10, 12)
.softPanel(DocumentColor.WHITE, DocumentCornerRadius.bottom(10), 12)
.stroke(DocumentStroke.of(CARD_RING, 0.5))
.accentTop(GOLD, 1.5)
.spacing(4)
Expand Down Expand Up @@ -305,7 +301,7 @@ private static void kpiCard(SectionBuilder section,
// RowBuilder, so we keep the layout column-only inside the
// outer KpiRow row.
section
.softPanel(DocumentColor.WHITE, 8, 14)
.softPanel(DocumentColor.WHITE, DocumentCornerRadius.bottom(8), 14)
.stroke(DocumentStroke.of(CARD_RING, 0.6))
.accentTop(GOLD, 1.5)
.spacing(2)
Expand Down
Binary file modified web/showcase/pdf/flagships/default/business-report.pdf
Binary file not shown.
Binary file not shown.
Binary file modified web/showcase/pdf/templates/cv/cv-mint-editorial-v2.pdf
Binary file not shown.
Binary file modified web/showcase/pdf/templates/cv/cv-monogram-sidebar-v2.pdf
Binary file not shown.
Binary file modified web/showcase/pdf/templates/cv/cv-sidebar-portrait-v2.pdf
Binary file not shown.
Binary file modified web/showcase/pdf/templates/cv/cv-timeline-minimal-v2.pdf
Binary file not shown.
Binary file modified web/showcase/screenshots/flagships/default/business-report.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/showcase/screenshots/templates/cv/cv-mint-editorial-v2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/showcase/screenshots/templates/cv/cv-monogram-sidebar-v2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.