Skip to content

Commit c43a621

Browse files
authored
chore(examples): polish business-report + refresh showcase/README renders for SVG icons (#213)
Polish BusinessReportExample (heavier gold hero stroke, larger hero scene, asymmetric soft-panel corners) and refresh the committed README + web/showcase renders (PDF + thumbnail) for the templates whose output changed with the SVG-icon migration: cv-mint-editorial / monogram-sidebar / sidebar-portrait / timeline-minimal, the timeline-minimal cover letter, and business-report. Scoped to changed renders only.
1 parent c00ecc8 commit c43a621

15 files changed

Lines changed: 7 additions & 11 deletions

File tree

-158 Bytes
Binary file not shown.
-15.2 KB
Binary file not shown.

examples/src/main/java/com/demcha/examples/flagships/BusinessReportExample.java

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
import com.demcha.compose.document.node.DocumentNode;
99
import com.demcha.compose.document.node.LayerAlign;
1010
import com.demcha.compose.document.node.TextAlign;
11-
import com.demcha.compose.document.style.ClipPolicy;
12-
import com.demcha.compose.document.style.DocumentColor;
13-
import com.demcha.compose.document.style.DocumentInsets;
14-
import com.demcha.compose.document.style.DocumentStroke;
15-
import com.demcha.compose.document.style.DocumentTextStyle;
11+
import com.demcha.compose.document.style.*;
1612
import com.demcha.compose.document.table.DocumentTableColumn;
1713
import com.demcha.compose.document.table.DocumentTableStyle;
1814
import com.demcha.compose.document.theme.BusinessTheme;
@@ -152,9 +148,9 @@ public static Path generate() throws Exception {
152148
.name("HeroFrame")
153149
.roundedRect(210, 110, 12)
154150
.fillColor(NAVY_DARK)
155-
.stroke(DocumentStroke.of(GOLD, 0.6))
151+
.stroke(DocumentStroke.of(GOLD, 1.5))
156152
.clipPolicy(ClipPolicy.CLIP_PATH)
157-
.center(buildHeroScene(204, 104)))))
153+
.center(buildHeroScene(212, 112)))))
158154

159155
// Three KPI cards
160156
.addRow("KpiRow", row -> row
@@ -175,7 +171,7 @@ public static Path generate() throws Exception {
175171
.spacing(18)
176172
.weights(8, 12)
177173
.addSection("Highlights", section -> section
178-
.softPanel(DocumentColor.WHITE, 10, 16)
174+
.softPanel(DocumentColor.WHITE, DocumentCornerRadius.right(10), 16)
179175
.stroke(DocumentStroke.of(CARD_RING, 0.5))
180176
.accentLeft(NAVY, 3)
181177
.spacing(8)
@@ -199,7 +195,7 @@ public static Path generate() throws Exception {
199195
.lineSpacing(1.45)
200196
.margin(DocumentInsets.zero())))
201197
.addSection("Chart", section -> section
202-
.softPanel(DocumentColor.WHITE, 10, 14)
198+
.softPanel(DocumentColor.WHITE, DocumentCornerRadius.right(10), 14)
203199
.stroke(DocumentStroke.of(CARD_RING, 0.5))
204200
.accentLeft(GOLD, 3)
205201
.spacing(6)
@@ -225,7 +221,7 @@ public static Path generate() throws Exception {
225221
// accent strip so the table reads as a distinct
226222
// dashboard card rather than a bare grid.
227223
.addSection("MetricsCard", card -> card
228-
.softPanel(DocumentColor.WHITE, 10, 12)
224+
.softPanel(DocumentColor.WHITE, DocumentCornerRadius.bottom(10), 12)
229225
.stroke(DocumentStroke.of(CARD_RING, 0.5))
230226
.accentTop(GOLD, 1.5)
231227
.spacing(4)
@@ -305,7 +301,7 @@ private static void kpiCard(SectionBuilder section,
305301
// RowBuilder, so we keep the layout column-only inside the
306302
// outer KpiRow row.
307303
section
308-
.softPanel(DocumentColor.WHITE, 8, 14)
304+
.softPanel(DocumentColor.WHITE, DocumentCornerRadius.bottom(8), 14)
309305
.stroke(DocumentStroke.of(CARD_RING, 0.6))
310306
.accentTop(GOLD, 1.5)
311307
.spacing(2)
-8.69 KB
Binary file not shown.
Binary file not shown.
-5.43 KB
Binary file not shown.
-4.2 KB
Binary file not shown.
-396 KB
Binary file not shown.
-15.1 KB
Binary file not shown.
3.86 KB
Loading

0 commit comments

Comments
 (0)