Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

feat: Update all icons to unified ES logo with gold color scheme

esengine9365c32e108e
diff --git a/desktop/index.html b/desktop/index.html
index 807375f8d..2e9901f51 100644
--- a/desktop/index.html
+++ b/desktop/index.html
@@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg">
<title>ESEngine Editor</title>
<style>
* {
diff --git a/desktop/public/favicon.svg b/desktop/public/favicon.svg
new file mode 100644
index 000000000..406f0b66d
--- /dev/null
+++ b/desktop/public/favicon.svg
@@ -0,0 +1,24 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
+ <defs>
+ <linearGradient id="bgGrad" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:#2d2d2d"/>
+ <stop offset="100%" style="stop-color:#1a1a1a"/>
+ </linearGradient>
+ <linearGradient id="textGrad" x1="0%" y1="0%" x2="0%" y2="100%">
+ <stop offset="0%" style="stop-color:#e5c07b"/>
+ <stop offset="100%" style="stop-color:#d19a66"/>
+ </linearGradient>
+ </defs>
+
+ <rect width="512" height="512" fill="url(#bgGrad)"/>
+ <rect x="1" y="1" width="510" height="510" fill="none" stroke="#3d3d3d" stroke-width="2"/>
+
+ <g>
+ <polygon points="72,120 72,392 240,392 240,340 140,340 140,282 220,282 220,230 140,230 140,172 240,172 240,120"
+ fill="url(#textGrad)"/>
+ <path d="M 280 172 Q 280 120 340 120 L 420 120 Q 450 120 450 160 L 450 186 L 398 186 L 398 168 Q 398 158 384 158 L 350 158 Q 320 158 320 188 Q 320 218 350 218 L 400 218 Q 450 218 450 274 L 450 332 Q 450 392 390 392 L 310 392 Q 270 392 270 340 L 270 314 L 322 314 L 322 340 Q 322 354 340 354 L 384 354 Q 404 354 404 324 L 404 290 Q 404 260 380 260 L 330 260 Q 280 260 280 208 Z"
+ fill="url(#textGrad)"/>
+ </g>
+
+ <rect x="72" y="424" width="368" height="4" fill="#d19a66" opacity="0.6"/>
+</svg>
diff --git a/desktop/src-tauri/icons/128x128.png b/desktop/src-tauri/icons/128x128.png
index 1a335b210..69ade0fad 100644
Binary files a/desktop/src-tauri/icons/128x128.png and b/desktop/src-tauri/icons/128x128.png differ
diff --git a/desktop/src-tauri/icons/[email protected] b/desktop/src-tauri/icons/[email protected]
index bd30bc165..161ef8267 100644
Binary files a/desktop/src-tauri/icons/[email protected] and b/desktop/src-tauri/icons/[email protected] differ
diff --git a/desktop/src-tauri/icons/32x32.png b/desktop/src-tauri/icons/32x32.png
index c75336826..8b8e870fa 100644
Binary files a/desktop/src-tauri/icons/32x32.png and b/desktop/src-tauri/icons/32x32.png differ
diff --git a/desktop/src-tauri/icons/64x64.png b/desktop/src-tauri/icons/64x64.png
index ae130502f..899e91077 100644
Binary files a/desktop/src-tauri/icons/64x64.png and b/desktop/src-tauri/icons/64x64.png differ
diff --git a/desktop/src-tauri/icons/Square107x107Logo.png b/desktop/src-tauri/icons/Square107x107Logo.png
index 1c5728689..3174bee41 100644
Binary files a/desktop/src-tauri/icons/Square107x107Logo.png and b/desktop/src-tauri/icons/Square107x107Logo.png differ
diff --git a/desktop/src-tauri/icons/Square142x142Logo.png b/desktop/src-tauri/icons/Square142x142Logo.png
index c8ac69ce0..92cb2352e 100644
Binary files a/desktop/src-tauri/icons/Square142x142Logo.png and b/desktop/src-tauri/icons/Square142x142Logo.png differ
diff --git a/desktop/src-tauri/icons/Square150x150Logo.png b/desktop/src-tauri/icons/Square150x150Logo.png
index 52b386dba..3fc31f268 100644
Binary files a/desktop/src-tauri/icons/Square150x150Logo.png and b/desktop/src-tauri/icons/Square150x150Logo.png differ
diff --git a/desktop/src-tauri/icons/Square284x284Logo.png b/desktop/src-tauri/icons/Square284x284Logo.png
index 1c4b06df5..1612f2493 100644
Binary files a/desktop/src-tauri/icons/Square284x284Logo.png and b/desktop/src-tauri/icons/Square284x284Logo.png differ
diff --git a/desktop/src-tauri/icons/Square30x30Logo.png b/desktop/src-tauri/icons/Square30x30Logo.png
index e082dc9b2..19e22f643 100644
Binary files a/desktop/src-tauri/icons/Square30x30Logo.png and b/desktop/src-tauri/icons/Square30x30Logo.png differ
diff --git a/desktop/src-tauri/icons/Square310x310Logo.png b/desktop/src-tauri/icons/Square310x310Logo.png
index dbda4cebd..4b4b60ca2 100644
Binary files a/desktop/src-tauri/icons/Square310x310Logo.png and b/desktop/src-tauri/icons/Square310x310Logo.png differ
diff --git a/desktop/src-tauri/icons/Square44x44Logo.png b/desktop/src-tauri/icons/Square44x44Logo.png
index 6140a02fb..589bd5036 100644
Binary files a/desktop/src-tauri/icons/Square44x44Logo.png and b/desktop/src-tauri/icons/Square44x44Logo.png differ
diff --git a/desktop/src-tauri/icons/Square71x71Logo.png b/desktop/src-tauri/icons/Square71x71Logo.png
index f7faa404d..ca8aa99bb 100644
Binary files a/desktop/src-tauri/icons/Square71x71Logo.png and b/desktop/src-tauri/icons/Square71x71Logo.png differ
diff --git a/desktop/src-tauri/icons/Square89x89Logo.png b/desktop/src-tauri/icons/Square89x89Logo.png
index 92d090a42..3a080463d 100644
Binary files a/desktop/src-tauri/icons/Square89x89Logo.png and b/desktop/src-tauri/icons/Square89x89Logo.png differ
diff --git a/desktop/src-tauri/icons/StoreLogo.png b/desktop/src-tauri/icons/StoreLogo.png
index 10f835d27..9981a0949 100644
Binary files a/desktop/src-tauri/icons/StoreLogo.png and b/desktop/src-tauri/icons/StoreLogo.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png b/desktop/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png
index 21ee25d37..f3f60b08a 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png and b/desktop/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png b/desktop/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png
index dcae77f32..5260a1797 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png and b/desktop/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png b/desktop/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png
index 113d5a186..d577a8c32 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png and b/desktop/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png b/desktop/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png
index 12058997b..573e71360 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png and b/desktop/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png b/desktop/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png
index e443b1ba5..4ea4a6bf4 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png and b/desktop/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png b/desktop/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png
index 9b5ca6ccc..4299618b8 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png and b/desktop/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png b/desktop/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png
index 668e40f79..50264e60c 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png and b/desktop/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png b/desktop/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png
index 768d61eb7..182655088 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png and b/desktop/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png b/desktop/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png
index d501c34dd..67148a852 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png and b/desktop/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png b/desktop/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png
index 7e5bfc3e6..2417c16c6 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png and b/desktop/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png b/desktop/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png
index 3a69fae45..43d19086a 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png and b/desktop/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png b/desktop/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png
index f8f02d74c..3dee651d7 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png and b/desktop/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png b/desktop/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png
index 2dfea317f..e6ec25354 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png and b/desktop/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png b/desktop/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png
index a770b47e8..cab1b13f5 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png and b/desktop/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/desktop/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png b/desktop/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png
index 5de60cfda..fef566986 100644
Binary files a/desktop/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png and b/desktop/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/desktop/src-tauri/icons/app-icon.svg b/desktop/src-tauri/icons/app-icon.svg
index 4bfdad66c..406f0b66d 100644
--- a/desktop/src-tauri/icons/app-icon.svg
+++ b/desktop/src-tauri/icons/app-icon.svg
@@ -1,4 +1,24 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
- <rect width="512" height="512" rx="64" fill="#2563eb"/>
- <text x="256" y="340" font-family="Arial, sans-serif" font-size="280" font-weight="bold" fill="white" text-anchor="middle">E</text>
+ <defs>
+ <linearGradient id="bgGrad" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:#2d2d2d"/>
+ <stop offset="100%" style="stop-color:#1a1a1a"/>
+ </linearGradient>
+ <linearGradient id="textGrad" x1="0%" y1="0%" x2="0%" y2="100%">
+ <stop offset="0%" style="stop-color:#e5c07b"/>
+ <stop offset="100%" style="stop-color:#d19a66"/>
+ </linearGradient>
+ </defs>
+
+ <rect width="512" height="512" fill="url(#bgGrad)"/>
+ <rect x="1" y="1" width="510" height="510" fill="none" stroke="#3d3d3d" stroke-width="2"/>
+
+ <g>
+ <polygon points="72,120 72,392 240,392 240,340 140,340 140,282 220,282 220,230 140,230 140,172 240,172 240,120"
+ fill="url(#textGrad)"/>
+ <path d="M 280 172 Q 280 120 340 120 L 420 120 Q 450 120 450 160 L 450 186 L 398 186 L 398 168 Q 398 158 384 158 L 350 158 Q 320 158 320 188 Q 320 218 350 218 L 400 218 Q 450 218 450 274 L 450 332 Q 450 392 390 392 L 310 392 Q 270 392 270 340 L 270 314 L 322 314 L 322 340 Q 322 354 340 354 L 384 354 Q 404 354 404 324 L 404 290 Q 404 260 380 260 L 330 260 Q 280 260 280 208 Z"
+ fill="url(#textGrad)"/>
+ </g>
+
+ <rect x="72" y="424" width="368" height="4" fill="#d19a66" opacity="0.6"/>
</svg>
diff --git a/desktop/src-tauri/icons/icon.icns b/desktop/src-tauri/icons/icon.icns
index fb6e8da24..d4f57ce35 100644
Binary files a/desktop/src-tauri/icons/icon.icns and b/desktop/src-tauri/icons/icon.icns differ
diff --git a/desktop/src-tauri/icons/icon.ico b/desktop/src-tauri/icons/icon.ico
index e08b0e96f..c51bec7cd 100644
Binary files a/desktop/src-tauri/icons/icon.ico and b/desktop/src-tauri/icons/icon.ico differ
diff --git a/desktop/src-tauri/icons/icon.png b/desktop/src-tauri/icons/icon.png
index 40edcde05..5fc3199f1 100644
Binary files a/desktop/src-tauri/icons/icon.png and b/desktop/src-tauri/icons/icon.png differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index d1853dc55..96228bc20 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index a9efd260c..97a9dd889 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index a9efd260c..97a9dd889 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index 719677da5..a1cd38b45 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index ef836e74d..b83213137 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index fe99942aa..52e498e56 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index fe99942aa..52e498e56 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index 5cd3b6613..96e99e0e8 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index a9efd260c..97a9dd889 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index 34da50814..85c58d851 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index 34da50814..85c58d851 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index 4844aff85..2e7a8f0e1 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index 5530bca48..da4f49b1d 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index 4844aff85..2e7a8f0e1 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index a865f9eee..869776fe9 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index 8221e3fe1..64b7673aa 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index 5a5b61468..2df1e2b41 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/desktop/src-tauri/icons/ios/[email protected] b/desktop/src-tauri/icons/ios/[email protected]
index 30ca23a4e..ba4a28f41 100644
Binary files a/desktop/src-tauri/icons/ios/[email protected] and b/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/editor/src/launcher/ProjectLauncher.ts b/editor/src/launcher/ProjectLauncher.ts
index 1bd8f6528..96df98568 100644
--- a/editor/src/launcher/ProjectLauncher.ts
+++ b/editor/src/launcher/ProjectLauncher.ts
@@ -11,6 +11,7 @@ import {
openProjectDialog,
} from './ProjectService';
import { NewProjectDialog } from './NewProjectDialog';
+import { icons } from '../utils/icons';
// =============================================================================
// Types
@@ -48,7 +49,7 @@ export class ProjectLauncher {
<div class="es-launcher-content">
<div class="es-launcher-header">
<div class="es-launcher-logo">
- <div class="es-launcher-logo-icon">ES</div>
+ <div class="es-launcher-logo-icon">${icons.logo}</div>
<div class="es-launcher-logo-text">
<span class="es-launcher-title">ESEngine</span>
<span class="es-launcher-subtitle">Editor</span>
@@ -58,11 +59,11 @@ export class ProjectLauncher {
<div class="es-launcher-actions">
<button class="es-launcher-btn es-launcher-btn-primary" data-action="new">
- <span class="es-launcher-btn-icon">+</span>
+ <span class="es-launcher-btn-icon">${icons.plus}</span>
<span>New Project</span>
</button>
<button class="es-launcher-btn" data-action="open">
- <span class="es-launcher-btn-icon">📂</span>
+ <span class="es-launcher-btn-icon">${icons.folderOpen}</span>
<span>Open Project</span>
</button>
</div>
@@ -122,7 +123,7 @@ export class ProjectLauncher {
return `
<div class="es-launcher-recent-item">
- <div class="es-launcher-recent-icon">📁</div>
+ <div class="es-launcher-recent-icon">${icons.folder}</div>
<div class="es-launcher-recent-info">
<div class="es-launcher-recent-name">${this.escapeHtml(project.name)}</div>
<div class="es-launcher-recent-path">${this.escapeHtml(shortPath)}</div>
diff --git a/editor/src/styles/editor.css b/editor/src/styles/editor.css
index 0c6328dc8..576a6f901 100644
--- a/editor/src/styles/editor.css
+++ b/editor/src/styles/editor.css
@@ -677,6 +677,26 @@ svg {
background: #1a1a1a;
}
+.es-sceneview-webgl {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ display: block;
+ pointer-events: none;
+}
+
+.es-sceneview-overlay {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ display: block;
+ pointer-events: auto;
+}
+
.es-sceneview-canvas {
display: block;
}
@@ -718,6 +738,109 @@ svg {
margin: 0 4px;
}
+/* Gizmo Settings Dropdown */
+.es-gizmo-settings-wrapper {
+ position: relative;
+}
+
+.es-gizmo-settings-dropdown {
+ position: absolute;
+ top: 100%;
+ right: 0;
+ margin-top: 4px;
+ min-width: 180px;
+ background: var(--es-bg-secondary);
+ border: 1px solid var(--es-border);
+ border-radius: 4px;
+ padding: 8px;
+ z-index: 1000;
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
+}
+
+.es-settings-row {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 4px 0;
+ gap: 8px;
+}
+
+.es-settings-label {
+ font-size: 11px;
+ color: var(--es-text-secondary);
+ white-space: nowrap;
+}
+
+.es-settings-checkbox {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ font-size: 11px;
+ color: var(--es-text-primary);
+ cursor: pointer;
+}
+
+.es-settings-checkbox input[type="checkbox"] {
+ width: 14px;
+ height: 14px;
+ cursor: pointer;
+ accent-color: var(--es-accent);
+}
+
+.es-settings-divider {
+ height: 1px;
+ background: var(--es-border);
+ margin: 6px 0;
+}
+
+.es-color-input {
+ width: 32px;
+ height: 22px;
+ padding: 0;
+ border: 1px solid var(--es-border);
+ border-radius: 3px;
+ background: transparent;
+ cursor: pointer;
+}
+
+.es-color-input::-webkit-color-swatch-wrapper {
+ padding: 2px;
+}
+
+.es-color-input::-webkit-color-swatch {
+ border: none;
+ border-radius: 2px;
+}
+
+.es-slider-input {
+ width: 80px;
+ height: 4px;
+ -webkit-appearance: none;
+ appearance: none;
+ background: var(--es-bg-tertiary);
+ border-radius: 2px;
+ cursor: pointer;
+}
+
+.es-slider-input::-webkit-slider-thumb {
+ -webkit-appearance: none;
+ appearance: none;
+ width: 12px;
+ height: 12px;
+ border-radius: 50%;
+ background: var(--es-accent);
+ cursor: pointer;
+}
+
+.es-slider-input::-moz-range-thumb {
+ width: 12px;
+ height: 12px;
+ border-radius: 50%;
+ background: var(--es-accent);
+ border: none;
+ cursor: pointer;
+}
+
/* =============================================================================
* Common Elements
* ============================================================================= */
@@ -773,6 +896,13 @@ svg {
.es-input-number {
width: 100%;
+ -moz-appearance: textfield;
+}
+
+.es-input-number::-webkit-outer-spin-button,
+.es-input-number::-webkit-inner-spin-button {
+ -webkit-appearance: none;
+ margin: 0;
}
.es-input-checkbox {
@@ -1403,14 +1533,15 @@ svg {
.es-launcher-logo-icon {
width: 64px;
height: 64px;
- background: linear-gradient(135deg, #d19a66, #e5c07b);
- border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
- font-size: 24px;
- font-weight: bold;
- color: #1e1e1e;
+}
+
+.es-launcher-logo-icon svg {
+ width: 64px;
+ height: 64px;
+ border-radius: 12px;
}
.es-launcher-logo-text {
@@ -1470,6 +1601,15 @@ svg {
.es-launcher-btn-icon {
font-size: 18px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.es-launcher-btn-icon svg {
+ width: 18px;
+ height: 18px;
+ stroke: currentColor;
}
.es-launcher-recent {
@@ -1511,8 +1651,18 @@ svg {
}
.es-launcher-recent-icon {
- font-size: 20px;
+ width: 20px;
+ height: 20px;
flex-shrink: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.es-launcher-recent-icon svg {
+ width: 20px;
+ height: 20px;
+ stroke: var(--es-text-secondary);
}
.es-launcher-recent-info {
@@ -1949,3 +2099,157 @@ svg {
color: var(--es-text-secondary);
font-size: 13px;
}
+
+/* =============================================================================
+ * Nine-Slice Editor
+ * ============================================================================= */
+
+.es-nine-slice-editor {
+ margin-bottom: 12px;
+}
+
+.es-nine-slice-preview {
+ position: relative;
+ width: 100%;
+ background: repeating-conic-gradient(#333 0% 25%, #444 0% 50%) 50% / 16px 16px;
+ border: 1px solid var(--es-border);
+ overflow: hidden;
+}
+
+.es-nine-slice-image {
+ display: block;
+ width: 100%;
+ height: auto;
+ image-rendering: pixelated;
+}
+
+.es-nine-slice-line {
+ position: absolute;
+ background: #00ff00;
+ z-index: 10;
+}
+
+.es-nine-slice-left,
+.es-nine-slice-right {
+ top: 0;
+ bottom: 0;
+ width: 2px;
+ cursor: ew-resize;
+}
+
+.es-nine-slice-left {
+ left: 0;
+}
+
+.es-nine-slice-right {
+ right: 0;
+}
+
+.es-nine-slice-top,
+.es-nine-slice-bottom {
+ left: 0;
+ right: 0;
+ height: 2px;
+ cursor: ns-resize;
+}
+
+.es-nine-slice-top {
+ top: 0;
+}
+
+.es-nine-slice-bottom {
+ bottom: 0;
+}
+
+.es-nine-slice-line:hover {
+ background: #00ff88;
+}
+
+.es-nine-slice-line::before {
+ content: '';
+ position: absolute;
+ background: transparent;
+}
+
+.es-nine-slice-left::before,
+.es-nine-slice-right::before {
+ top: 0;
+ bottom: 0;
+ left: -4px;
+ right: -4px;
+}
+
+.es-nine-slice-top::before,
+.es-nine-slice-bottom::before {
+ left: 0;
+ right: 0;
+ top: -4px;
+ bottom: -4px;
+}
+
+.es-nine-slice-inputs {
+ margin-top: 8px;
+}
+
+/* =============================================================================
+ * Texture Editor
+ * ============================================================================= */
+
+.es-texture-editor {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
+
+.es-texture-preview {
+ width: 64px;
+ height: 64px;
+ background: repeating-conic-gradient(#333 0% 25%, #444 0% 50%) 50% / 8px 8px;
+ border: 1px solid var(--es-border);
+ border-radius: 4px;
+ overflow: hidden;
+ cursor: pointer;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ transition: border-color 0.15s;
+}
+
+.es-texture-preview:hover {
+ border-color: var(--es-accent);
+}
+
+.es-texture-preview.es-has-preview:hover {
+ opacity: 0.9;
+}
+
+.es-texture-preview-img {
+ max-width: 100%;
+ max-height: 100%;
+ object-fit: contain;
+ display: none;
+ image-rendering: pixelated;
+}
+
+.es-texture-preview::before {
+ content: '';
+ display: block;
+}
+
+.es-texture-preview.es-has-preview::before {
+ display: none;
+}
+
+.es-texture-input-row {
+ display: flex;
+ gap: 4px;
+}
+
+.es-texture-input-row .es-input-texture {
+ flex: 1;
+ min-width: 0;
+}
+
+.es-btn-locate {
+ flex-shrink: 0;
+}
diff --git a/editor/src/utils/icons.ts b/editor/src/utils/icons.ts
index 2331d3e60..aff901abb 100644
--- a/editor/src/utils/icons.ts
+++ b/editor/src/utils/icons.ts
@@ -44,6 +44,7 @@ import {
Cog,
Play,
Square,
+ Grid3X3,
} from 'lucide';
// =============================================================================
@@ -58,6 +59,25 @@ type IconNode = [string, Record<string, string | number>][];
const DEFAULT_SIZE = 14;
+const ES_LOGO_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
+ <defs>
+ <linearGradient id="bgGrad" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:#2d2d2d"/>
+ <stop offset="100%" style="stop-color:#1a1a1a"/>
+ </linearGradient>
+ <linearGradient id="textGrad" x1="0%" y1="0%" x2="0%" y2="100%">
+ <stop offset="0%" style="stop-color:#e5c07b"/>
+ <stop offset="100%" style="stop-color:#d19a66"/>
+ </linearGradient>
+ </defs>
+ <rect width="512" height="512" rx="64" fill="url(#bgGrad)"/>
+ <g>
+ <polygon points="72,120 72,392 240,392 240,340 140,340 140,282 220,282 220,230 140,230 140,172 240,172 240,120" fill="url(#textGrad)"/>
+ <path d="M 280 172 Q 280 120 340 120 L 420 120 Q 450 120 450 160 L 450 186 L 398 186 L 398 168 Q 398 158 384 158 L 350 158 Q 320 158 320 188 Q 320 218 350 218 L 400 218 Q 450 218 450 274 L 450 332 Q 450 392 390 392 L 310 392 Q 270 392 270 340 L 270 314 L 322 314 L 322 340 Q 322 354 340 354 L 384 354 Q 404 354 404 324 L 404 290 Q 404 260 380 260 L 330 260 Q 280 260 280 208 Z" fill="url(#textGrad)"/>
+ </g>
+ <rect x="72" y="424" width="368" height="4" fill="#d19a66" opacity="0.6"/>
+</svg>`;
+
function renderIcon(iconNode: IconNode, size = DEFAULT_SIZE): string {
const children = iconNode
.map(([tag, attrs]) => {
@@ -76,6 +96,7 @@ function renderIcon(iconNode: IconNode, size = DEFAULT_SIZE): string {
// =============================================================================
export const icons = {
+ logo: (size = 64) => ES_LOGO_SVG.replace('viewBox="0 0 512 512"', `viewBox="0 0 512 512" width="${size}" height="${size}"`),
menu: (size?: number) => renderIcon(Menu as IconNode, size),
plus: (size?: number) => renderIcon(Plus as IconNode, size),
copy: (size?: number) => renderIcon(Copy as IconNode, size),
@@ -118,6 +139,7 @@ export const icons = {
cog: (size?: number) => renderIcon(Cog as IconNode, size),
play: (size?: number) => renderIcon(Play as IconNode, size),
stop: (size?: number) => renderIcon(Square as IconNode, size),
+ grid: (size?: number) => renderIcon(Grid3X3 as IconNode, size),
};
export type IconName = keyof typeof icons;