Auto-Image.js

This commit is contained in:
Others...14 authored and GitHub committed 2025-09-13 11:30:00 +07:00
1 parent 30a79aa937
commit a50d86f536
1 file changed
+7 -46
+7 -46
View File
@@ -164,14 +164,14 @@ localStorage.removeItem("lp");
success: '#28a745',
error: '#dc3545',
warning: '#ffc107',
fontFamily: "'Noto Sans', Roboto, monospace",
fontFamily: "'Segoe UI', Roboto, sans-serif",
borderRadius: '12px',
borderStyle: 'solid',
borderWidth: '1px',
boxShadow: '0 8px 32px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.08)',
backdropFilter: 'blur(10px)',
animations: {
glow: true,
glow: false,
scanline: false,
'pixel-blink': false,
},
@@ -294,12 +294,12 @@ localStorage.removeItem("lp");
} else if (CONFIG.currentTheme === 'Classic Light') {
themeClass = 'wplace-theme-classic-light';
themeFileName = 'classic-light';
} else if (CONFIG.currentTheme === 'Acrylic') {
themeClass = 'wplace-theme-acrylic';
themeFileName = 'acrylic';
} else if (CONFIG.currentTheme === 'Neon Retro Cyan') {
themeClass = 'wplace-theme-neon-cyan';
themeFileName = 'neon-cyan';
} else if (CONFIG.currentTheme === 'Acrylic') {
themeClass = 'wplace-theme-acrylic';
themeFileName = 'acrylic';
}
document.documentElement.classList.add(themeClass);
@@ -3602,6 +3602,8 @@ localStorage.removeItem("lp");
let defaultTheme = 'classic'; // fallback
if (CONFIG.currentTheme === 'Neon Retro') {
defaultTheme = 'neon';
} else if (CONFIG.currentTheme === 'Neon Retro Cyan') {
defaultTheme = 'neon-cyan';
} else if (CONFIG.currentTheme === 'Classic Light') {
defaultTheme = 'classic-light';
} else if (CONFIG.currentTheme === 'Acrylic') {
@@ -3806,42 +3808,6 @@ localStorage.removeItem("lp");
: `linear-gradient(135deg, #667eea 0%, #764ba2 100%)`;
settingsContainer.className = 'wplace-settings-container-base';
// Define theme properties for each theme
const isNeon = settingsContainer.classList.contains('wplace-theme-neon');
const isNeonCyan = settingsContainer.classList.contains('wplace-theme-neon-cyan');
const neonTheme = {
primary: '#1a1a2e',
secondary: '#16213e',
text: 'green',
fontFamily: "'Segoe UI', Tahoma, Geneva, Verdana, sans-serif",
boxShadow: '0 20px 40px rgba(255, 0, 255, 0.7), 0 0 0 1px rgba(255, 0, 255, 0.2)',
backdropFilter: 'blur(10px)',
highlight: '#ff6b35',
animations: { glow: true }
};
const neonCyanTheme = {
primary: '#00ffff',
secondary: '#3C74AF',
text: 'cyan',
fontFamily: "'Segoe UI', Tahoma, Geneva, Verdana, sans-serif",
boxShadow: '0 20px 40px rgba(0, 255, 255, 0.7), 0 0 0 1px rgba(0, 255, 255, 0.2)',
backdropFilter: 'blur(10px)',
highlight: '#EA9C00',
animations: { glow: true }
};
const theme = isNeon ? neonTheme : isNeonCyan ? neonCyanTheme : null;
if (theme) {
const themeBackground = theme.primary
? `linear-gradient(135deg, ${theme.primary} 0%, ${theme.secondary || theme.primary} 100%)`
: `linear-gradient(135deg, #667eea 0%, #764ba2 100%)`;
settingsContainer.className = 'wplace-settings-container-base';
if (isNeon) settingsContainer.classList.add('wplace-theme-neon');
if (isNeonCyan) settingsContainer.classList.add('wplace-theme-neon-cyan');
// Apply theme-specific background
settingsContainer.style.background = themeBackground;
settingsContainer.style.cssText += `
@@ -8282,8 +8248,3 @@ localStorage.removeItem("lp");
});
});
})();