Skip to content

Build your personal knowledge base with Trilium Notes

fix(desktop): enlarge splash art to survive HiDPI upscaling

Elian Dorand088d0b13ffa
diff --git a/apps/desktop/electron-forge/setup-icon/generate/README.md b/apps/desktop/electron-forge/setup-icon/generate/README.md
index 507584023c..c097db7e92 100644
--- a/apps/desktop/electron-forge/setup-icon/generate/README.md
+++ b/apps/desktop/electron-forge/setup-icon/generate/README.md
@@ -25,7 +25,11 @@ Run it on **Windows** so the wordmark renders in Segoe UI (the font is rasterize
## Output contract
- 640 × 480, opaque white background (GIF transparency is 1-bit and would leave ragged edges over
- the desktop), 36 frames at 100 ms (3.6 s loop), infinite loop, ≤ 128 colors per frame.
+ the desktop), 36 frames at 100 ms (3.6 s loop), infinite loop, ≤ 128 colors per frame, ~250 KiB.
+- The mark and wordmark are drawn larger than strictly needed: Squirrel's `Update.exe` is not
+ DPI-aware, so on a HiDPI display the window is bilinear-stretched by the display scale factor
+ (e.g. 1.5×) and there is no way to signal density through a GIF. Bolder artwork survives that
+ stretch better — it cannot be made pixel-sharp from our side.
- The leaf geometry and the nine stable fill colors are taken verbatim from the app icon
(`icon-color.svg`); the nightly variant remaps each leaf to a purple ramp.
- The dot pulse cycle (1.2 s) divides the loop length evenly so the pulse is continuous across the
diff --git a/apps/desktop/electron-forge/setup-icon/generate/splash.html b/apps/desktop/electron-forge/setup-icon/generate/splash.html
index 7cfeec0d32..06a0d5eadd 100644
--- a/apps/desktop/electron-forge/setup-icon/generate/splash.html
+++ b/apps/desktop/electron-forge/setup-icon/generate/splash.html
@@ -22,44 +22,44 @@
user-select: none;
}
svg.mark {
- width: 190px;
- height: 190px;
+ width: 236px;
+ height: 236px;
display: block;
}
.leaf { transform-origin: 128px 128px; }
.wordmark {
- margin-top: 26px;
- font-size: 30px;
+ margin-top: 30px;
+ font-size: 36px;
font-weight: 600;
letter-spacing: 0.01em;
color: #232920;
display: flex;
align-items: baseline;
- gap: 12px;
+ gap: 13px;
}
.word-notes { font-weight: 350; color: #6b7264; }
.nightly-badge {
display: none;
- font-size: 12.5px;
+ font-size: 14px;
font-weight: 700;
letter-spacing: 0.16em;
color: #ffffff;
background: #8146b8;
border-radius: 3px;
- padding: 3px 8px 4px;
- transform: translateY(-4px);
+ padding: 3px 9px 4px;
+ transform: translateY(-5px);
}
.variant-nightly .nightly-badge { display: block; }
.status {
- margin-top: 14px;
- font-size: 16px;
+ margin-top: 16px;
+ font-size: 18px;
color: #8a9082;
display: flex;
align-items: center;
- gap: 10px;
+ gap: 11px;
}
- .dots { display: flex; gap: 7px; }
- .dot { width: 8px; height: 8px; border-radius: 50%; }
+ .dots { display: flex; gap: 8px; }
+ .dot { width: 10px; height: 10px; border-radius: 50%; }
.variant-stable .dot.d1 { background: #4fa52b; }
.variant-stable .dot.d2 { background: #e47b19; }
.variant-stable .dot.d3 { background: #e33f3b; }
diff --git a/apps/desktop/electron-forge/setup-icon/setup-banner-dev.gif b/apps/desktop/electron-forge/setup-icon/setup-banner-dev.gif
index eec34c49fc..15cf270cfc 100644
Binary files a/apps/desktop/electron-forge/setup-icon/setup-banner-dev.gif and b/apps/desktop/electron-forge/setup-icon/setup-banner-dev.gif differ
diff --git a/apps/desktop/electron-forge/setup-icon/setup-banner.gif b/apps/desktop/electron-forge/setup-icon/setup-banner.gif
index 41c90f27d2..d41770ff42 100644
Binary files a/apps/desktop/electron-forge/setup-icon/setup-banner.gif and b/apps/desktop/electron-forge/setup-icon/setup-banner.gif differ