Added Color Converter for preview + Color Palette Selector + Preview Download Function

This commit is contained in:
MiraclePatrickLumowa authored and GitHub committed 2025-08-16 17:50:49 +08:00
1 parent f2c7e06992
commit fdcd90d2e6
1 file changed
+5 -2
+5 -2
View File
@@ -1118,7 +1118,7 @@
const key = rgb.join(',');
const name = CONFIG.COLOR_NAMES[key] || `rgb(${key})`;
const isPaid = CONFIG.PAID_COLORS.has(key);
const colorItem = Utils.createElement('div', { className: 'wplace-color-item' });
const swatch = Utils.createElement('button', {
className: `wplace-color-swatch ${isPaid ? 'paid' : ''}`,
@@ -1138,7 +1138,7 @@
swatch.classList.toggle('active');
updateActiveColorPalette();
});
colorItem.appendChild(swatch);
colorItem.appendChild(nameLabel);
@@ -1778,6 +1778,9 @@
.resize-preview {
max-width: none; /* Allow image to exceed wrapper for zoom */
transition: transform 0.1s ease;
image-rendering: pixelated;
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
}
.resize-controls {