mirror of
https://github.com/tiennm99/WPlace-AutoBOT.git
synced 2026-10-19 04:15:25 +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 key = rgb.join(',');
|
||||||
const name = CONFIG.COLOR_NAMES[key] || `rgb(${key})`;
|
const name = CONFIG.COLOR_NAMES[key] || `rgb(${key})`;
|
||||||
const isPaid = CONFIG.PAID_COLORS.has(key);
|
const isPaid = CONFIG.PAID_COLORS.has(key);
|
||||||
|
|
||||||
const colorItem = Utils.createElement('div', { className: 'wplace-color-item' });
|
const colorItem = Utils.createElement('div', { className: 'wplace-color-item' });
|
||||||
const swatch = Utils.createElement('button', {
|
const swatch = Utils.createElement('button', {
|
||||||
className: `wplace-color-swatch ${isPaid ? 'paid' : ''}`,
|
className: `wplace-color-swatch ${isPaid ? 'paid' : ''}`,
|
||||||
@@ -1138,7 +1138,7 @@
|
|||||||
swatch.classList.toggle('active');
|
swatch.classList.toggle('active');
|
||||||
updateActiveColorPalette();
|
updateActiveColorPalette();
|
||||||
});
|
});
|
||||||
|
|
||||||
colorItem.appendChild(swatch);
|
colorItem.appendChild(swatch);
|
||||||
colorItem.appendChild(nameLabel);
|
colorItem.appendChild(nameLabel);
|
||||||
|
|
||||||
@@ -1778,6 +1778,9 @@
|
|||||||
.resize-preview {
|
.resize-preview {
|
||||||
max-width: none; /* Allow image to exceed wrapper for zoom */
|
max-width: none; /* Allow image to exceed wrapper for zoom */
|
||||||
transition: transform 0.1s ease;
|
transition: transform 0.1s ease;
|
||||||
|
image-rendering: pixelated;
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
image-rendering: crisp-edges;
|
||||||
}
|
}
|
||||||
|
|
||||||
.resize-controls {
|
.resize-controls {
|
||||||
|
|||||||
Reference in new issue
Block a user