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
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.
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.
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.
31 changes: 31 additions & 0 deletions src/apps/desktop/scripts/post-install-icons.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash
# post-install script: install multi-size icons to hicolor theme
# Tauri only installs 1024x1024; this adds smaller sizes for taskbar/dock/alt-tab

ICON_SRC="/usr/lib/BitFun/share/icons"
ICON_DST_BASE="/usr/share/icons/hicolor"

# Try multiple possible source locations
for src_dir in \
"/usr/lib/BitFun/share/icons" \
"/opt/bitfun/share/icons" \
"/usr/share/bitfun/icons"; do
if [ -d "$src_dir/hicolor" ]; then
ICON_SRC="$src_dir/hicolor"
break
fi
done

if [ ! -d "$ICON_SRC" ]; then
exit 0
fi

# Copy all icon sizes to system hicolor theme
cp -rn "$ICON_SRC"/* "$ICON_DST_BASE/" 2>/dev/null || true

# Update icon cache
if command -v gtk-update-icon-cache &>/dev/null; then
gtk-update-icon-cache -f "$ICON_DST_BASE" 2>/dev/null || true
fi

exit 0
16 changes: 15 additions & 1 deletion src/apps/desktop/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,21 @@
"depends": [
"libwebkit2gtk-4.1-0",
"libgtk-3-0"
]
],
"files": {
"icons/hicolor/16x16/apps/bitfun-desktop.png": "/usr/share/icons/hicolor/16x16/apps/bitfun-desktop.png",
"icons/hicolor/32x32/apps/bitfun-desktop.png": "/usr/share/icons/hicolor/32x32/apps/bitfun-desktop.png",
"icons/hicolor/48x48/apps/bitfun-desktop.png": "/usr/share/icons/hicolor/48x48/apps/bitfun-desktop.png",
"icons/hicolor/64x64/apps/bitfun-desktop.png": "/usr/share/icons/hicolor/64x64/apps/bitfun-desktop.png",
"icons/hicolor/96x96/apps/bitfun-desktop.png": "/usr/share/icons/hicolor/96x96/apps/bitfun-desktop.png",
"icons/hicolor/128x128/apps/bitfun-desktop.png": "/usr/share/icons/hicolor/128x128/apps/bitfun-desktop.png",
"icons/hicolor/256x256/apps/bitfun-desktop.png": "/usr/share/icons/hicolor/256x256/apps/bitfun-desktop.png",
"icons/hicolor/512x512/apps/bitfun-desktop.png": "/usr/share/icons/hicolor/512x512/apps/bitfun-desktop.png"
},
"postInstallScript": "scripts/post-install-icons.sh"
},
"appimage": {
"bundleMediaFramework": false
}
}
},
Expand Down
Binary file modified src/web-ui/public/Logo-ICON.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions src/web-ui/src/app/components/SplashScreen/SplashScreen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
display: flex;
align-items: center;
justify-content: center;
background: var(--color-bg-primary);
// Explicit dark background as fallback for Linux WebKitGTK
// where CSS variable might not load synchronously
background: var(--color-bg-primary, #121214);
pointer-events: none;

// ── Exit state ─────────────────────────────────────────────────────────────
Expand Down Expand Up @@ -45,6 +47,8 @@

.splash-screen__logo-wrap {
animation: splash-logo-idle 3.2s ease-in-out infinite;
// WebKit prefix for Linux WebKitGTK compatibility
-webkit-animation: splash-logo-idle 3.2s ease-in-out infinite;
}

.splash-screen__logo {
Expand All @@ -53,18 +57,20 @@
height: 112px;
border-radius: $size-radius-lg;
user-select: none;
// Ensure proper rendering on Linux
-webkit-user-select: none;
}

// ── Keyframes ─────────────────────────────────────────────────────────────────

// Idle logo: soft opacity pulse with a slight breathing scale
@keyframes splash-logo-idle {
0%, 100% {
opacity: 0.38;
opacity: 0.85;
transform: scale(0.98);
}
50% {
opacity: 0.98;
opacity: 1;
transform: scale(1);
}
}
Expand Down
Loading