mirror of
https://github.com/tiennm99/WPlace-AutoBOT.git
synced 2026-10-13 14:15:48 +00:00
Added Color Converter for preview + Color Palette Selector + Preview Download Function
This commit is contained in:
1 parent
f2c7e06992
commit
fdcd90d2e6
1 file changed
+5
-2
+5
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user