mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-26 08:26:51 +00:00
Support 1.18 (experimental) snapshots (#158)
* Half support 1.18-experimental-snapshot-1 * Fetch 1.18 presets and improve rendering of lists * Noise preview with deepslate * Biome preview with deepslate * Generalize canvas logic in one hook * Simplify useCanvas * Use mcschema for 1.18 * Improve noise settings preview controls * Fix build * Update deepslate and improve preview caching * Cleanup, remove old preview code * Couple seed between model and preview * Limit output to improve performance + copy feedback For the vanilla overworld dimension (200K lines), it took 2+ seconds to write the output to the textarea Now capped at 10K chars * Add surface_relative_threshold to decorator preview * Improve fixed list errors
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
--text-1: #ffffff;
|
||||
--text-2: #dcdcdc;
|
||||
--text-3: #c3c3c3;
|
||||
--accent-blue: #50baf9;
|
||||
--accent-red: #f1453f;
|
||||
--accent-primary: #50baf9;
|
||||
--accent-success: #3eb84f;
|
||||
--nav: #91908f;
|
||||
--nav-hover: #b4b3b0;
|
||||
--nav-faded: #4d4c4c;
|
||||
@@ -27,8 +27,8 @@
|
||||
--text-1: #000000;
|
||||
--text-2: #505050;
|
||||
--text-3: #6a6a6a;
|
||||
--accent-blue: #088cdb;
|
||||
--accent-red: #cc312c;
|
||||
--accent-primary: #088cdb;
|
||||
--accent-success: #1a7f37;
|
||||
--nav: #343a40;
|
||||
--nav-hover: #565d64;
|
||||
--nav-faded: #9fa2a7;
|
||||
@@ -48,8 +48,8 @@
|
||||
--text-1: #000000;
|
||||
--text-2: #505050;
|
||||
--text-3: #6a6a6a;
|
||||
--accent-blue: #088cdb;
|
||||
--accent-red: #cc312c;
|
||||
--accent-primary: #088cdb;
|
||||
--accent-success: #1a7f37;
|
||||
--nav: #343a40;
|
||||
--nav-hover: #565d64;
|
||||
--nav-faded: #9fa2a7;
|
||||
@@ -331,8 +331,8 @@ main.has-preview {
|
||||
}
|
||||
|
||||
.btn.active {
|
||||
color: var(--accent-blue);
|
||||
fill: var(--accent-blue);
|
||||
color: var(--accent-primary);
|
||||
fill: var(--accent-primary);
|
||||
}
|
||||
|
||||
.btn:not(.btn-input):hover {
|
||||
@@ -462,7 +462,11 @@ main.has-preview {
|
||||
}
|
||||
|
||||
.popup-action.action-preview {
|
||||
fill: var(--accent-blue);
|
||||
fill: var(--accent-primary);
|
||||
}
|
||||
|
||||
.popup-action.action-copy.active {
|
||||
fill: var(--accent-success);
|
||||
}
|
||||
|
||||
.error {
|
||||
@@ -648,7 +652,7 @@ hr {
|
||||
}
|
||||
|
||||
.ea-content strong {
|
||||
color: var(--accent-blue) !important;
|
||||
color: var(--accent-primary) !important;
|
||||
}
|
||||
|
||||
.ea-callout {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
--node-background-label: #1b1b1b;
|
||||
--node-background-input: #272727;
|
||||
--node-text: #dadada;
|
||||
--node-text-dimmed: #b4b4b4;
|
||||
--node-selected: #ad9715;
|
||||
--node-selected-border: #8d7a0d;
|
||||
--node-add: #487c13;
|
||||
@@ -29,6 +30,7 @@
|
||||
--node-background-label: #e4e4e4;
|
||||
--node-background-input: #ffffff;
|
||||
--node-text: #000000;
|
||||
--node-text-dimmed: #2c2c2c;
|
||||
--node-selected: #f0e65e;
|
||||
--node-selected-border: #b9a327;
|
||||
--node-add: #9bd464;
|
||||
@@ -56,6 +58,7 @@
|
||||
--node-background-label: #e4e4e4;
|
||||
--node-background-input: #ffffff;
|
||||
--node-text: #000000;
|
||||
--node-text-dimmed: #2c2c2c;
|
||||
--node-selected: #f0e65e;
|
||||
--node-selected-border: #b9a327;
|
||||
--node-add: #9bd464;
|
||||
@@ -144,7 +147,8 @@
|
||||
|
||||
.node-error ~ select:last-child,
|
||||
.node-error ~ input:last-child,
|
||||
.node-error ~ input[list]:nth-last-child(2) {
|
||||
.node-error ~ input[list]:nth-last-child(2),
|
||||
.node-error + .fixed-list ~ input {
|
||||
border-color: var(--node-remove) !important;
|
||||
}
|
||||
|
||||
@@ -339,6 +343,11 @@ span.menu-item {
|
||||
color: var(--node-popup-text-dimmed);
|
||||
}
|
||||
|
||||
.node-message {
|
||||
color: var(--node-text-dimmed);
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
/* Node body and list entry */
|
||||
|
||||
.node {
|
||||
@@ -421,8 +430,13 @@ span.menu-item {
|
||||
width: 25px;
|
||||
}
|
||||
|
||||
.fixed-list {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.number-node input,
|
||||
.range-node input {
|
||||
.range-node input,
|
||||
.fixed-list ~ input {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user