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
File renamed without changes.
5 changes: 3 additions & 2 deletions scripts/update_seti_icons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ set -euo pipefail

ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
ASSET_DIR="$ROOT_DIR/src/browser/assets/file-icons"
FONT_PATH="$ROOT_DIR/public/seti.woff"

mkdir -p "$ASSET_DIR"

curl -sSL "https://raw.githubusercontent.com/microsoft/vscode/main/extensions/theme-seti/icons/seti.woff" \
-o "$ASSET_DIR/seti.woff"
-o "$FONT_PATH"

curl -sSL "https://raw.githubusercontent.com/microsoft/vscode/main/extensions/theme-seti/icons/vs-seti-icon-theme.json" \
-o "$ASSET_DIR/seti-icon-theme.json"

echo "Updated Seti icon assets in $ASSET_DIR"
echo "Updated Seti icon assets in $ASSET_DIR and font at $FONT_PATH"
2 changes: 1 addition & 1 deletion src/browser/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@font-face {
font-family: "Seti";
src: url("../assets/file-icons/seti.woff") format("woff");
src: url("/seti.woff") format("woff");
font-weight: normal;
Comment on lines 13 to 16

Choose a reason for hiding this comment

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

P1 Badge Avoid absolute Seti font URL in packaged builds

@font-face now references the font as /seti.woff. That works while the dev server runs on http://localhost, but the packaged app uses Vite’s base: "./" and loads HTML via BrowserWindow.loadFile, so URLs starting with / resolve to file:///seti.woff (the filesystem root) rather than the bundled dist/seti.woff. Consequently the Seti icon font won’t load in production and file icons disappear. Use a path relative to the CSS file (e.g. ./seti.woff) or prefix with import.meta.env.BASE_URL so the asset resolves under both file and http protocols.

Useful? React with 👍 / 👎.

font-style: normal;
font-display: swap;
Expand Down