Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
开屏问题
DESKTOP-ZTS2NQJNAd129ebe05f79
diff --git a/electron/main/splash.ts b/electron/main/splash.tsindex 68c458a6..974b342a 100644--- a/electron/main/splash.ts+++ b/electron/main/splash.ts@@ -14,7 +14,7 @@ export class SplashWindow {alwaysOnTop: true,skipTaskbar: true,center: true,- backgroundColor: '#ffffff', // 添加背景色+ // backgroundColor: '#ffffff', // 添加背景色webPreferences: {nodeIntegration: true,contextIsolation: falsediff --git a/public/assets/splash.png b/public/assets/splash.pngindex 84cbad3c..c1af481a 100644Binary files a/public/assets/splash.png and b/public/assets/splash.png differdiff --git a/public/splash.html b/public/splash.htmlindex 3d775132..c4b8898a 100644--- a/public/splash.html+++ b/public/splash.html@@ -9,23 +9,30 @@justify-content: center;align-items: center;height: 100vh;- background: #ffffff;+ /* background: #ffffff; */overflow: hidden;}.splash-container {- width: 300px;- height: 300px;- position: relative;display: flex;- justify-content: center;+ flex-direction: column;align-items: center;+ justify-content: center;}.splash-image {- width: 100%;- height: 100%;+ width: 300px;+ height: 300px;object-fit: contain;animation: fadeInAndScale 1.5s ease-out;}+ .splash-title {+ margin-top: 20px;+ font-size: 24px;+ font-weight: 600;+ background: linear-gradient(135deg, #C367EF 0%, #64C9ED 100%);+ -webkit-background-clip: text;+ -webkit-text-fill-color: transparent;+ animation: fadeIn 1.5s ease-out;+ }@keyframes fadeInAndScale {0% {opacity: 0;@@ -40,6 +47,16 @@transform: scale(1);}}+ @keyframes fadeIn {+ from {+ opacity: 0;+ transform: translateY(10px);+ }+ to {+ opacity: 1;+ transform: translateY(0);+ }+ }</style></head><body>@@ -50,6 +67,7 @@alt="启动图"onerror="console.error('Failed to load splash image')"/>+ <div class="splash-title">爱团团</div></div><script>console.log('Splash HTML loaded');